Skip to content

Commit acc8a22

Browse files
committed
Fix getting subject.componenList.id (#646)
1 parent 0e0266c commit acc8a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/beacon/makeSubjectsBeacon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ echo "#FORMAT: BEACON
2323
#EXAMPLES: 118515470
2424
" > $NWBIB_SUBJECTS
2525

26-
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
26+
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 commit comments

Comments
 (0)