diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-12 20:04:48 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-13 16:21:30 -0700 |
commit | 178047b3a8795609f2eae21c1bd5848c9a0b43b6 (patch) | |
tree | 653ea55e632db0530955cb8ff10dc0609392e057 /python/fatcat_web/routes.py | |
parent | aeedc23706cd66ae2e753a0ad5603a66049e757c (diff) | |
download | fatcat-178047b3a8795609f2eae21c1bd5848c9a0b43b6.tar.gz fatcat-178047b3a8795609f2eae21c1bd5848c9a0b43b6.zip |
web: implement new schema changes
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r-- | python/fatcat_web/routes.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index ab060c45..71dadfa1 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -179,7 +179,7 @@ def release_lookup(): 'release', 'release_lookup.html', ('doi', 'wikidata_qid', 'pmid', 'pmcid', 'isbn13', 'jstor', 'arxiv', - 'core', 'ark', 'mag'), + 'core', 'ark', 'mag', 'oai', 'hdl'), lambda p: api.lookup_release(**p)) @app.route('/work/lookup', methods=['GET']) @@ -672,7 +672,9 @@ def release_save(ident): elif release.ext_ids.arxiv: form.base_url.data = "https://arxiv.org/pdf/{}.pdf".format(release.ext_ids.arxiv) elif release.ext_ids.pmcid: - form.base_url.data = "http://europepmc.org/backend/ptpmcrender.fcgi?accid={}&blobtype=pdf".format(release.ext_ids.pmcid) + form.base_url.data = "https://europepmc.org/backend/ptpmcrender.fcgi?accid={}&blobtype=pdf".format(release.ext_ids.pmcid) + elif release.ext_ids.hdl: + form.base_url.data = "https://hdl.handle.net/{}".format(release.ext_ids.hdl) return render_template('release_save.html', entity=release, form=form), 200 ### Search ################################################################## |