From 9907d45e4f54fe70e8e062f47f75197a3ae1b58e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 27 Apr 2021 20:53:24 -0700 Subject: iterate on access redirects and landing page implementation Small code refactors and minimal test coverage --- fatcat_scholar/templates/work.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'fatcat_scholar/templates') 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 %} - + - -{% for contrib in doc.biblio.contrib_names %} + +{% for contrib in work.biblio.contrib_names %} {% endfor %} -{% if doc.biblio.release_date or doc.biblio.release_year %} - +{% if work.biblio.release_date or work.biblio.release_year %} + {% endif %} -{% if doc.biblio.container_name %} - +{% if work.biblio.container_name %} + {% endif %} -{% if doc.biblio.volume %} - +{% if work.biblio.volume %} + {% endif %} -{% if doc.biblio.issue %} - +{% if work.biblio.issue %} + {% endif %} -{% if doc.biblio.pages %} - +{% if work.biblio.pages %} + {% endif %} -{% if doc.biblio.doi %} - +{% if 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 %} - - + + {% endif %} {% endblock %} -- cgit v1.2.3