summaryrefslogtreecommitdiff
path: root/getbib
diff options
context:
space:
mode:
Diffstat (limited to 'getbib')
-rwxr-xr-xgetbib5
1 files changed, 4 insertions, 1 deletions
diff --git a/getbib b/getbib
index 47887f6..2efe91d 100755
--- a/getbib
+++ b/getbib
@@ -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"