From e35e99bceff3277afaac8f2d5519aa4f07aabe49 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 23 Apr 2021 19:01:22 -0700 Subject: web: initial implementation of work landing page and citation_pdf_url access redirect The initial intent is to have something that can be used by indexing services to pull the citation_pdf_url meta tag and bounce to a direct IA PDF access URL. For now the landing page stubs are just formatted as SERP results. Presumbably these will get re-styled at some point and include citation graph links, etc. --- fatcat_scholar/templates/work.html | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 fatcat_scholar/templates/work.html (limited to 'fatcat_scholar/templates/work.html') diff --git a/fatcat_scholar/templates/work.html b/fatcat_scholar/templates/work.html new file mode 100644 index 0000000..92e334e --- /dev/null +++ b/fatcat_scholar/templates/work.html @@ -0,0 +1,48 @@ +{% import "search_macros.html" as search_macros %} +{% extends "base.html" %} + +{% block title %} +{{ doc.title }} +{% endblock %} + +{% block extra_head %} + + + +{% for contrib in doc.biblio.contrib_names %} + +{% endfor %} +{% if doc.biblio.release_date or doc.biblio.release_year %} + +{% endif %} +{% if doc.biblio.container_name %} + +{% endif %} + +{% if doc.biblio.volume %} + +{% endif %} +{% if doc.biblio.issue %} + +{% endif %} +{% if doc.biblio.pages %} + +{% endif %} +{% if doc.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 %} + + + +{% endif %} + +{% endblock %} + +{% block fullmain %} +
+
+ {{ search_macros.fulltext_search_result_row(doc, locale=locale, debug_mode=False, expand=True) }} +
+
+{% endblock %} -- cgit v1.2.3