diff options
| author | Marcel Screm <marcel@marcelscrem.com> | 2026-01-03 16:53:24 +0100 |
|---|---|---|
| committer | Marcel Screm <marcel@marcelscrem.com> | 2026-01-03 16:53:24 +0100 |
| commit | 9b9c0259cabcef3e16037ed14d86f4c1abb465c1 (patch) | |
| tree | 39a895f4f7c74bb757b484bf9392acb3842ea1f6 /getbib | |
| parent | 0f8b8e41d8f928fe14047e1eda017df7e7587f81 (diff) | |
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" |
