summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-04-12 16:19:13 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-04-12 17:35:53 -0700
commit0e4f84d9938c6cf226fac8d2b0d34284a661a071 (patch)
tree617d76f620558b3aac44d6b3073bc918e9432175
parentb28547df2025afb7b5d8941e5553865ff5dc29a6 (diff)
downloadfatcat-0e4f84d9938c6cf226fac8d2b0d34284a661a071.tar.gz
fatcat-0e4f84d9938c6cf226fac8d2b0d34284a661a071.zip
web: include DOI in share-your-paper URL, when possible
-rw-r--r--python/fatcat_web/templates/release_save.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/release_save.html b/python/fatcat_web/templates/release_save.html
index 7dd01fc0..c78d0066 100644
--- a/python/fatcat_web/templates/release_save.html
+++ b/python/fatcat_web/templates/release_save.html
@@ -46,11 +46,17 @@
we will attempt to crawl, process, and verify the content and add it to the
catalog.
+ {% if release and release.ext_ids.doi %}
+ {% set syp_suffix = release.ext_ids.doi %}
+ {% else %}
+ {% set syp_suffix = "" %}
+ {% endif %}
+
<p style="margin-top: 1em; margin-bottom: 1em;">If you are the author of this
work, and the published version is not publicly available, another option is
to upload an version to an institutional or discipline repository. The
- <a href="https://shareyourpaper.org/">Share Your Paper</a> tool can help with
- this process.
+ <a href="https://shareyourpaper.org/{{ syp_suffix }}">Share Your Paper</a>
+ tool can help with this process.
<p style="margin-top: 1em; margin-bottom: 1em;"><b>Important:</b>
double-check the publication stage of the file you are submitting. We