diff options
Diffstat (limited to 'getbib')
| -rwxr-xr-x | getbib | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,7 @@ #!/bin/bash +# usage: getbib file.pdf +# result: prints the bibtex entry (entries) for the DOI(s) in the document +# TODO: automatically add doi to the .bib file if [ -z "$1" ]; then echo "Provide a pdf." @@ -25,7 +28,7 @@ fi # 4. Get Crossref-BibTeX for every DOI for DOI in $DOIS; do - echo "Gefundene DOI: $DOI" + echo "Found DOI: $DOI" ENCODED_DOI=$(printf "%s" "$DOI" | sed 's/\//%2F/g') URL="https://api.crossref.org/works/$ENCODED_DOI/transform" |
