dedupe fixes

This commit is contained in:
ackman678
2021-10-19 00:34:23 -07:00
parent 2c2f3bdf77
commit 0790cf9c4a
3 changed files with 26 additions and 14 deletions

View File

@@ -45,17 +45,17 @@ fetchBib_pubmed() {
fetchBib_doiDotOrg() {
echo "pubmed id not found, trying doi.org.."
curl -LH 'Accept: application/x-bibtex' "http//dx.doi.org/"$doi >> $tmpBib
curl -LH 'Accept: application/x-bibtex' "https//dx.doi.org/"$doi >> $tmpBib
echo -e "\n" >> $tmpBib
}
extract_name() {
#extract some strings to make a nice filename for the pdf
key="LastName";
author=$(xmllint --xpath "string(//$key)" $tmpBib.xml)
author=$(xmllint --xpath "string(//$key)" $tmpBib.xml | tr -d ' ')
key="MedlineTA";
journal=$(xmllint --xpath "string(//$key)" $tmpBib.xml)
journal=$(xmllint --xpath "string(//$key)" $tmpBib.xml | tr -d ' ')
key="Year";
year=$(xmllint --xpath "string(//$key)" $tmpBib.xml)