camping summer

This commit is contained in:
ackman678
2021-09-18 15:46:10 -07:00
parent 3cb839de7a
commit 2c2f3bdf77
6 changed files with 17 additions and 37 deletions

View File

@@ -6,9 +6,6 @@ if [ "$1" == "-h" ] ; then
spmid.sh '12345678'
spmid.sh '12345678' download.pdf
depends:
sdoi.sh
"
exit 0
fi
@@ -55,14 +52,13 @@ fetchBib_doiDotOrg() {
extract_name() {
#extract some strings to make a nice filename for the pdf
key="LastName";
author=$(grep $key --max-count=1 $tmpBib.xml | sed -E "s|\W*<$key>(.+)</$key>\W*|\1|" | tr -d " ")
author=$(xmllint --xpath "string(//$key)" $tmpBib.xml)
key="MedlineTA";
journal=$(grep $key --max-count=1 $tmpBib.xml | sed -E "s|\W*<$key>(.+)</$key>\W*|\1|" | tr -d " ")
key1="PubDate";
key2="Year"; year=$(awk "/<$key1>/,/<\/$key1>/" $tmpBib.xml | grep $key2 | sed -E "s|\W*<$key2>(.+)</$key2>\W*|\1|")
journal=$(xmllint --xpath "string(//$key)" $tmpBib.xml)
key="Year";
year=$(xmllint --xpath "string(//$key)" $tmpBib.xml)
}
append_bibfile() {