summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/work.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-04-30 14:18:18 -0700
committerBryan Newbold <bnewbold@archive.org>2021-04-30 14:18:18 -0700
commit2e75c11c093a690297c323e869e2edb9e53b3564 (patch)
treed199c0b00b714357ec41d5d637ca43d4a2c4ceb6 /fatcat_scholar/templates/work.html
parentc367d54fe47cf71ada73fa9ad16495824e07abfc (diff)
downloadfatcat-scholar-2e75c11c093a690297c323e869e2edb9e53b3564.tar.gz
fatcat-scholar-2e75c11c093a690297c323e869e2edb9e53b3564.zip
web: use absolute URLs to sitemaps and in citation_pdf_url
Diffstat (limited to 'fatcat_scholar/templates/work.html')
-rw-r--r--fatcat_scholar/templates/work.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/fatcat_scholar/templates/work.html b/fatcat_scholar/templates/work.html
index 067d23c..8829ec2 100644
--- a/fatcat_scholar/templates/work.html
+++ b/fatcat_scholar/templates/work.html
@@ -18,7 +18,6 @@
{% if work.biblio.container_name %}
<meta name="citation_journal_title" content="{{ work.biblio.container_name }}">
{% endif %}
-
{% if work.biblio.volume %}
<meta name="citation_volume" content="{{ work.biblio.volume }}">
{% endif %}
@@ -32,9 +31,9 @@
<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 == "application/pdf" and work.fulltext.file_sha1 %}
-<!-- PDF access redirect URL, as requested by, eg, scholar.google.com -->
-<meta name="citation_pdf_url" content="/access-redirect/{{ work.fulltext.file_sha1 }}.pdf">
-<!-- <meta name="citation_pdf_url" content="{{ work.fulltext.access_url }}"> -->
+ <!-- PDF access redirect URL, as requested by, eg, scholar.google.com -->
+ <meta name="citation_pdf_url" content="https://scholar.archive.org/access-redirect/{{ work.fulltext.file_sha1 }}.pdf">
+ <!-- Multiple URLs allowed? <meta name="citation_pdf_url" content="{{ work.fulltext.access_url }}"> -->
{% endif %}
{% endblock %}