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/base.html | 20 ++++++++++---------- fatcat_scholar/templates/home.html | 8 ++++---- fatcat_scholar/templates/search.html | 8 ++++---- fatcat_scholar/templates/search_macros.html | 26 +++++++++++++------------- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 8577b18..55a0082 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -220,12 +220,12 @@

{% trans %}We are a US 501(c)(3) non-profit library, building a global archive of Internet sites and other cultural artifacts in digital form.{% endtrans %} - {% trans %}Other projects include{% endtrans %} The Wayback Machine, archive.org, Open Library and Archive-It + {% trans %}Other projects include{% endtrans %} The Wayback Machine, archive.org, Open Library and Archive-It

@@ -242,11 +242,11 @@

{% trans %}Open Infrastructure{% endtrans %}

diff --git a/fatcat_scholar/templates/home.html b/fatcat_scholar/templates/home.html index dbf7531..7c430fe 100644 --- a/fatcat_scholar/templates/home.html +++ b/fatcat_scholar/templates/home.html @@ -45,7 +45,7 @@
- + PDF thumbnail
@@ -59,7 +59,7 @@
- + PDF thumbnail
@@ -73,7 +73,7 @@
- + PDF thumbnail
@@ -87,7 +87,7 @@
- + PDF thumbnail
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index 21d209f..dd7fcd6 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -124,10 +124,10 @@ {{ _("Start Over") }}
{% else %} 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 %}