Skip to content

Commit

Permalink
Add script to get lobid-organisations labels map (#1903)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Nov 27, 2023
1 parent 4cba302 commit eec7dd4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/resources/getLobidOrganisationsMapping.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# description: get cron scheduled lobid-organisations labels map. See #1903.
# checks whether lines > 18k before overriding tsv
# author: dr0i
# date: 2023-11-27

FNAME="lobidOrganisationsMapping.tsv"
curl "https://lobid.org/organisations/search?q=_exists_%3Aisil+OR+type%3ACollection&format=tsv:id,isil,sigel,name&size=25000" > ${FNAME}.tmp
if [ $(wc -l ${FNAME}.tmp|cut -d ' ' -f1) -gt 18000 ]; then
mv ${FNAME}.tmp alma/maps/$FNAME
fi

0 comments on commit eec7dd4

Please sign in to comment.