diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-04-27 20:53:24 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-04-27 20:53:26 -0700 |
commit | 9907d45e4f54fe70e8e062f47f75197a3ae1b58e (patch) | |
tree | d5654721d401a9b96e7ce803b0039e0d140b1cb4 /fatcat_scholar/templates/work.html | |
parent | e35e99bceff3277afaac8f2d5519aa4f07aabe49 (diff) | |
download | fatcat-scholar-9907d45e4f54fe70e8e062f47f75197a3ae1b58e.tar.gz fatcat-scholar-9907d45e4f54fe70e8e062f47f75197a3ae1b58e.zip |
iterate on access redirects and landing page implementation
Small code refactors and minimal test coverage
Diffstat (limited to 'fatcat_scholar/templates/work.html')
-rw-r--r-- | fatcat_scholar/templates/work.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/fatcat_scholar/templates/work.html b/fatcat_scholar/templates/work.html index 92e334e..067d23c 100644 --- a/fatcat_scholar/templates/work.html +++ b/fatcat_scholar/templates/work.html @@ -2,39 +2,39 @@ {% extends "base.html" %} {% block title %} -{{ doc.title }} +{{ work.title }} {% endblock %} {% block extra_head %} - <link rel="canonical" href="/work/{{ doc.work_ident }}"> + <link rel="canonical" href="/work/{{ work.work_ident }}"> - <meta name="citation_title" content="{{ doc.biblio.title }}"> -{% for contrib in doc.biblio.contrib_names %} + <meta name="citation_title" content="{{ work.biblio.title }}"> +{% for contrib in work.biblio.contrib_names %} <meta name="citation_author" content="{{ contrib }}"> {% endfor %} -{% if doc.biblio.release_date or doc.biblio.release_year %} - <meta name="citation_publication_date" content="{{ doc.biblio.release_date or doc.biblio.release_year }}"> +{% if work.biblio.release_date or work.biblio.release_year %} + <meta name="citation_publication_date" content="{{ work.biblio.release_date or work.biblio.release_year }}"> {% endif %} -{% if doc.biblio.container_name %} - <meta name="citation_journal_title" content="{{ doc.biblio.container_name }}"> +{% if work.biblio.container_name %} + <meta name="citation_journal_title" content="{{ work.biblio.container_name }}"> {% endif %} -{% if doc.biblio.volume %} - <meta name="citation_volume" content="{{ doc.biblio.volume }}"> +{% if work.biblio.volume %} + <meta name="citation_volume" content="{{ work.biblio.volume }}"> {% endif %} -{% if doc.biblio.issue %} - <meta name="citation_issue" content="{{ doc.biblio.issue }}"> +{% if work.biblio.issue %} + <meta name="citation_issue" content="{{ work.biblio.issue }}"> {% endif %} -{% if doc.biblio.pages %} - <meta name="citation_first_page" content="{{ doc.biblio.pages }}"> +{% if work.biblio.pages %} + <meta name="citation_first_page" content="{{ work.biblio.pages }}"> {% endif %} -{% if doc.biblio.doi %} - <meta name="citation_doi" content="{{ doc.biblio.doi }}"> +{% if work.biblio.doi %} + <meta name="citation_doi" content="{{ work.biblio.doi }}"> {% endif %} -{% if doc.fulltext.access_url and doc.biblio.release_ident == doc.fulltext.release_ident and doc.fulltext.access_type in ['wayback', 'ia_file'] and doc.fulltext.file_mimetype == "application/pdf" and doc.fulltext.file_sha1 %} +{% 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/{{ doc.fulltext.file_sha1 }}.pdf"> -<!-- <meta name="citation_pdf_url" content="{{ doc.fulltext.access_url }}"> --> +<meta name="citation_pdf_url" content="/access-redirect/{{ work.fulltext.file_sha1 }}.pdf"> +<!-- <meta name="citation_pdf_url" content="{{ work.fulltext.access_url }}"> --> {% endif %} {% endblock %} |