tfixup! Directly download pdfs from The Cryosphere - scholarref - tools for DOI and BiBTeX reference extraction, fetching, and parsing
 (HTM) git clone git://src.adamsgaard.dk/scholarref
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 17a5cd4595e739ba3f6d544c4c92600c007beeb5
 (DIR) parent 62fa6286f3333be87b6e2b89c92d83504e60a076
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Mon,  6 Jul 2020 10:48:23 +0200
       
       fixup! Directly download pdfs from The Cryosphere
       
       Diffstat:
         M shdl                                |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/shdl b/shdl
       t@@ -85,6 +85,7 @@ handle_doi() {
                        volume="$(printf '%s' "$1" | sed 's,.*/tc-\([0-9][0-9]*\)-.*,\1,')"
                        page="$(printf '%s' "$1" | sed 's,.*/tc-[0-9][0-9]*-\([0-9][0-9]*\).*,\1,')"
                        curl -O "https://tc.copernicus.org/articles/${volume}/${page}/${year}/tc-${volume}-${page}-${year}.pdf"
       +                return
                fi
            if [ "$browser" = 1 ]; then
                shurl="$shhost/$1"