Skip to content

Commit

Permalink
Fix getting subject.componenList.id (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Apr 15, 2024
1 parent 0e0266c commit acc8a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/beacon/makeSubjectsBeacon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ echo "#FORMAT: BEACON
#EXAMPLES: 118515470
" > $NWBIB_SUBJECTS

cat $NWBIB_DUMP | jq -r '. | select(.subject[].componentList != null) | .subject[].componentList[].id' 2>/dev/null |grep -v 'null\|_:b' | sort | uniq -c | sort -n -r | sed 's#\(.*\)https://d-nb.info/gnd/\(.*\)#\2|\1#g' | tr -d ' ' >> $NWBIB_SUBJECTS
cat $NWBIB_DUMP | jq -r '.|.subject[].componentList' |grep -v null | jq .[].gndIdentifier | sort |grep -v null | uniq -c | sort -n -r | tr -d ' ' | sed 's#\([0-9].*\)"\(.*\)"#\2|\1#g' >> $NWBIB_SUBJECTS

0 comments on commit acc8a22

Please sign in to comment.