From c40e9bc039b425b385a478cbbbc46df934c98961 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 14 Oct 2020 02:01:18 -0700 Subject: web: rel=noopener for outlinks Via Lighthouse. Apparently destination pages can reach-back to the opening window via JS API. Weird! Note that instead of noreferrer, we have a meta tag to have off-domain (off-origin) links only include the origin name (eg, hostname) instead of full URL with query paths. So we don't forward user queries to non-archive.org domains. --- fatcat_scholar/templates/search_macros.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'fatcat_scholar/templates/search_macros.html') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 3f2826f..3899144 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -31,7 +31,7 @@
{% if paper.doc_type == "work" %} - + {% if paper.biblio.title %} {{ paper.biblio.title[:512] }} {% if paper.biblio.title|length > 512 %}...{% endif %} @@ -61,7 +61,7 @@ {% endif %} {% elif paper.doc_type == "sim_page" %} - Page {{ paper.ia_sim.first_page }} of {{ paper.biblio.container_name }} Vol. {{ paper.biblio.volume }}, Issue {{ paper.biblio.issue }} + Page {{ paper.ia_sim.first_page }} of {{ paper.biblio.container_name }} Vol. {{ paper.biblio.volume }}, Issue {{ paper.biblio.issue }} [{{ _("page") }}] {% endif %} @@ -83,9 +83,9 @@ {% if paper.biblio.container_name %} {% if paper.biblio.container_ident %} - {{ paper.biblio.container_name }} + {{ paper.biblio.container_name }} {% elif paper.doc_type == "sim_page" %} - {{ paper.biblio.container_name }} + {{ paper.biblio.container_name }} {% else %} {{ paper.biblio.container_name }} {% endif %} @@ -130,19 +130,19 @@ {# ### IDENTIFIERS #} {% if paper.biblio.doi %} - doi:{{ paper.biblio.doi }}   + doi:{{ paper.biblio.doi }}   {% endif %} {% if paper.biblio.pmid %} - pmid:{{ paper.biblio.pmid }}   + pmid:{{ paper.biblio.pmid }}   {% endif %} {% if paper.biblio.pmcid %} - pmcid:{{ paper.biblio.pmcid }}   + pmcid:{{ paper.biblio.pmcid }}   {% endif %} {% if paper.biblio.arxiv_id %} - arXiv:{{ paper.biblio.arxiv_id }}   + arXiv:{{ paper.biblio.arxiv_id }}   {% endif %} {% if paper.biblio.release_ident %} - fatcat:{{ paper.biblio.release_ident}}   + fatcat:{{ paper.biblio.release_ident}}   {% endif %}
@@ -151,7 +151,7 @@ {# TODO: remove doc for ES 7.x-style lack of type #} {# TODO: only show 'json' link if from cluster? #} {% if debug_mode %} - + json {% endif %} @@ -260,19 +260,19 @@ {% if paper.fulltext and paper.fulltext.access_url %} {% if paper.fulltext.thumbnail_url %} {% else %} {% endif %}