summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-06-11 15:13:17 -0700
committerBryan Newbold <bnewbold@archive.org>2021-06-11 15:13:17 -0700
commit388eeaf4fa137522ec90c96e57581ced33205e57 (patch)
treeea6832c4fe8026373e9c3b712e1b68687d7e8eb6 /fatcat_scholar/templates
parent3bae05c4a4cd7d6d9b892b952b7ca35454319479 (diff)
downloadfatcat-scholar-388eeaf4fa137522ec90c96e57581ced33205e57.tar.gz
fatcat-scholar-388eeaf4fa137522ec90c96e57581ced33205e57.zip
update citation_pdf_url HTML meta tag to new access URL style
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/work.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/templates/work.html b/fatcat_scholar/templates/work.html
index 67c87e0..693b1a6 100644
--- a/fatcat_scholar/templates/work.html
+++ b/fatcat_scholar/templates/work.html
@@ -30,9 +30,9 @@
{% if work.biblio.doi %}
<meta name="citation_doi" content="{{ work.biblio.doi }}">
{% endif %}
-{% if work.fulltext.access_url and work.biblio.release_ident == work.fulltext.release_ident and work.fulltext.access_type in ['wayback', 'ia_file'] and work.fulltext.file_mimetype in ["application/pdf", None] and work.fulltext.file_sha1 %}
+{% if work.work_ident and work.fulltext.access_url and work.biblio.release_ident == work.fulltext.release_ident and work.fulltext.access_type in ['wayback', 'ia_file'] and work.fulltext.file_mimetype in ["application/pdf", None] and work.fulltext.file_sha1 %}
<!-- single PDF access redirect URL -->
- <meta name="citation_pdf_url" content="{{ make_access_redirect_url(work.fulltext.access_type, work.fulltext.access_url) }}">
+ <meta name="citation_pdf_url" content="{{ make_access_redirect_url(work.work_ident, work.fulltext.access_type, work.fulltext.access_url) }}">
<!-- direct URL: {{ work.fulltext.access_url | safe }} -->
{% endif %}