bm

bibliography manager for latex
git clone git://git.ckyln.com/bm.git
Log | Files | Refs | README | LICENSE

commit 71aae5c856e11707052c2382aa951d93c9a82132
parent 904fb66015c6e5364dd45899fa26a288dc30f18f
Author: Cem Keylan <cem@ckyln.com>
Date:   Sun, 20 Oct 2019 23:18:45 +0300

change tmpfile location

Diffstat:
Mbm | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bm b/bm @@ -76,7 +76,8 @@ EOF search() { jq --version >/dev/null 2>&1 || error "You must install jq for search functionality" QUERY="$(echo $1 | sed 's/ /%20/g')" - tmpfile=$(mktemp) + mkdir -p /tmp/bm/ + tmpfile=$(mktemp /tmp/bm/search-XXXXXXXX) curl -A "$agent" -s https://api.crossref.org/works\?query\="$QUERY" | jq ".message.items[] | select(.author | length >=1) | select(.title | length >=1) | select(.DOI | length >=1) | [.DOI, .author[].given, .author[].family, .title[]] | @csv" > $tmpfile while IFS=, read -r doi authorfirst authorlast title; do printf "DOI: $doi\nTitle: $title\nFirst Name: $authorfirst\nLast Name: $authorlast\n\n"