diff options
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/templates/base.html | 20 | ||||
-rw-r--r-- | fatcat_scholar/templates/home.html | 8 | ||||
-rw-r--r-- | fatcat_scholar/templates/search.html | 8 | ||||
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 24 |
4 files changed, 30 insertions, 30 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index b530c26..e8969d0 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -194,12 +194,12 @@ <h3>Internet Archive</h3> <p style="color: rgba(255, 255, 255, 0.5);"> {% trans trimmed %}We are a 501(c)(3) non-profit, building a digital library of Internet sites and other cultural artifacts in digital form.{% endtrans %} - Other projects include <a href="https://web.archive.org">The Wayback Machine</a>, <a href="https://archive.org">archive.org</a> <a href="https://openlibrary.org">openlibrary.org</a> and <a href="https://archive-it.org">archive-it.org</a> + Other projects include <a target="_blank" href="https://web.archive.org">The Wayback Machine</a>, <a target="_blank" href="https://archive.org">archive.org</a> <a target="_blank" href="https://openlibrary.org">openlibrary.org</a> and <a target="_blank" href="https://archive-it.org">archive-it.org</a> <div class="ui horizontal inverted link list"> - <a class="item" href="https://archive.org/about/">{{ _("About Us") }}</a> - <a class="item" href="https://archive.org/about/contact.php">{{ _("Contact Us") }}</a> - <a class="item" href="https://archive.org/about/terms.php">{{ _("Policies") }}</a> - <a class="item" href="https://archive.org/donate">{{ _("Donate") }}</a> + <a class="item" target="_blank" href="https://archive.org/about/">{{ _("About Us") }}</a> + <a class="item" target="_blank" href="https://archive.org/about/contact.php">{{ _("Contact Us") }}</a> + <a class="item" target="_blank" href="https://archive.org/about/terms.php">{{ _("Policies") }}</a> + <a class="item" target="_blank" href="https://archive.org/donate">{{ _("Donate") }}</a> </div> </div> </div> @@ -218,11 +218,11 @@ <div class="three wide column"> <h4 class="ui inverted header">Open Infrastructure</h4> <div class="ui inverted link list"> - <a href="https://fatcat.wiki" class="item">Editable Catalog (Fatcat)</a> - <a href="https://guide.fatcat.wiki" class="item">Contribute</a> - <a href="/api/redoc" class="item">Search API</a> - <a href="https://status.fatcat.wiki" class="item">{{ _("Service Status") }}</a> - <a href="https://github.com/internetarchive/fatcat-scholar" class="item">{{ _("Source Code") }}</a> + <a target="_blank" href="https://fatcat.wiki" class="item">Editable Catalog (Fatcat)</a> + <a target="_blank" href="https://guide.fatcat.wiki" class="item">Contribute</a> + <a target="_blank" href="/api/redoc" class="item">Search API</a> + <a target="_blank" href="https://status.fatcat.wiki" class="item">{{ _("Service Status") }}</a> + <a target="_blank" href="https://github.com/internetarchive/fatcat-scholar" class="item">{{ _("Source Code") }}</a> </div> </div> </div> diff --git a/fatcat_scholar/templates/home.html b/fatcat_scholar/templates/home.html index 875c055..26cbea3 100644 --- a/fatcat_scholar/templates/home.html +++ b/fatcat_scholar/templates/home.html @@ -32,7 +32,7 @@ <div class="ui four doubling cards"> <div class="ui card"> - <a class="image" href="https://web.archive.org/web/20171006225602/https://burnstrauma.biomedcentral.com/track/pdf/10.1186/s41038-017-0090-z?site=burnstrauma.biomedcentral.com"> + <a class="image" href="https://web.archive.org/web/20171006225602/https://burnstrauma.biomedcentral.com/track/pdf/10.1186/s41038-017-0090-z?site=burnstrauma.biomedcentral.com" target="_blank"> <img src="https://covid19.fatcat.wiki/fulltext_web//thumbnail/c9/c9e87f843b3cf7dc47881fa3d3ccb4693d7d9521.png"> </a> <div class="content"> @@ -46,7 +46,7 @@ </div> <div class="ui card"> - <a class="image" href="https://web.archive.org/web/20200328205104/http://europepmc.org/backend/ptpmcrender.fcgi?accid=PMC5180799&blobtype=pdf"> + <a class="image" href="https://web.archive.org/web/20200328205104/http://europepmc.org/backend/ptpmcrender.fcgi?accid=PMC5180799&blobtype=pdf" target="_blank"> <img src="https://covid19.fatcat.wiki/fulltext_web//thumbnail/1e/1e13eaf1d0fe6682b7759d40c49f9bf35b6eef68.png"> </a> <div class="content"> @@ -60,7 +60,7 @@ </div> <div class="ui card tablet-hide"> - <a class="image" href="https://web.archive.org/web/2017/http://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0032486&type=printable"> + <a class="image" href="https://web.archive.org/web/2017/http://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0032486&type=printable" target="_blank"> <img src="https://covid19.fatcat.wiki/fulltext_web//thumbnail/6e/6ea1978890ab099e90e61ddf078b6d983e60b07f.png"> </a> <div class="content"> @@ -74,7 +74,7 @@ </div> <div class="ui card mobile-hide"> - <a class="image" href="https://web.archive.org/web/2017/http://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0010071&type=printable"> + <a class="image" href="https://web.archive.org/web/2017/http://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0010071&type=printable" target="_blank"> <img src="https://covid19.fatcat.wiki/fulltext_web//thumbnail/60/60cd26dae93a4048b5aceb66c68bec325392fdf0.png"> </a> <div class="content"> diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index 02e169b..cfa4b74 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -78,10 +78,10 @@ {% trans %}We didn't find any documents matching your query{% endtrans %} </div> <div class="inline"> - <a href="https://archive.org/search.php?sin=TXT&query={{ query.q|urlencode }}" class="ui button" style="margin: 0.5em;">Try archive.org</a> - <a href="https://fatcat.wiki/search&q={{ query.q|urlencode }}" class="ui button" style="margin: 0.5em;">Try fatcat.wiki</a> - <a href="https://www.semanticscholar.org/search?q={{ query.q|urlencode }}" class="ui button" style="margin: 0.5em;">Try Semantic Scholar</a> - <a href="https://scholar.google.com/scholar?q={{ query.q|urlencode }}" class="ui button" style="margin: 0.5em;">Try Google Scholar</a> + <a href="https://archive.org/search.php?sin=TXT&query={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try archive.org</a> + <a href="https://fatcat.wiki/search&q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try fatcat.wiki</a> + <a href="https://www.semanticscholar.org/search?q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try Semantic Scholar</a> + <a href="https://scholar.google.com/scholar?q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try Google Scholar</a> </div> </div> {% else %} diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 4b29f01..15748d8 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -18,7 +18,7 @@ {% else %} <a href="https://fatcat.wiki/release/{{ paper.biblio.release_ident }}" {% endif %} - style="color: #2224c7;"> + style="color: #2224c7;" target="_blank"> {% if paper.biblio.title %} {{ paper.biblio.title[:512] }} {% if paper.biblio.title|length > 512 %}...{% endif %} @@ -48,7 +48,7 @@ {% endif %} {% elif paper.doc_type == "sim_page" %} - <a href="https://archive.org/details/{{ paper.ia_sim.issue_item }}/page/{{ paper.ia_sim.first_page }}" style="color: #2224c7;">Page {{ paper.ia_sim.first_page }}</a> of <a href="https://archive.org/details/{{ paper.ia_sim.issue_item }}" style="color: #2224c7;">{{ paper.biblio.container_name }}</a> (<a href="https://archive.org/details/{{ paper.ia_sim.issue_item }}" style="color: #2224c7;">Vol. {{ paper.biblio.volume }}, Issue {{ paper.biblio.issue }}</a>) + <a target="_blank" href="https://archive.org/details/{{ paper.ia_sim.issue_item }}/page/{{ paper.ia_sim.first_page }}" style="color: #2224c7;">Page {{ paper.ia_sim.first_page }}</a> of <a target="_blank" href="https://archive.org/details/{{ paper.ia_sim.issue_item }}" style="color: #2224c7;">{{ paper.biblio.container_name }}</a> (<a target="_blank" href="https://archive.org/details/{{ paper.ia_sim.issue_item }}" style="color: #2224c7;">Vol. {{ paper.biblio.volume }}, Issue {{ paper.biblio.issue }}</a>) {% endif %} </div> @@ -72,9 +72,9 @@ {% if paper.biblio.container_name %} <i> {% if paper.biblio.container_id %} - <a href="https://fatcat.wiki/container/{{ paper.biblio.container_id }}" style="color: black;">{{ paper.biblio.container_name }}</a> + <a target="_blank" href="https://fatcat.wiki/container/{{ paper.biblio.container_id }}" style="color: black;">{{ paper.biblio.container_name }}</a> {% elif paper.doc_type == "sim_page" %} - <a href="https://archive.org/details/{{ paper.ia_sim.pub_collection }}" style="color: black;">{{ paper.biblio.container_name }}</a> + <a target="_blank" href="https://archive.org/details/{{ paper.ia_sim.pub_collection }}" style="color: black;">{{ paper.biblio.container_name }}</a> {% else %} {{ paper.biblio.container_name }} {% endif %} @@ -113,19 +113,19 @@ {# ### IDENTIFIERS #} {% if paper.biblio.doi %} - <a href="https://doi.org/{{paper.biblio.doi }}" style="color: green;">doi:{{ paper.biblio.doi }}</a> + <a target="_blank" href="https://doi.org/{{paper.biblio.doi }}" style="color: green;">doi:{{ paper.biblio.doi }}</a> {% endif %} {% if paper.biblio.pmid %} - <a href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.biblio.pmid }}" style="color: green;">pmid:{{ paper.biblio.pmid }}</a> + <a target="_blank" href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.biblio.pmid }}" style="color: green;">pmid:{{ paper.biblio.pmid }}</a> {% endif %} {% if paper.biblio.pmcid %} - <a href="https://pubmed.ncbi.nlm.nih.gov/{{paper.biblio.pmcid }}/" style="color: green;">pmcid:{{ paper.biblio.pmcid }}</a> + <a target="_blank" href="https://pubmed.ncbi.nlm.nih.gov/{{paper.biblio.pmcid }}/" style="color: green;">pmcid:{{ paper.biblio.pmcid }}</a> {% endif %} {% if paper.biblio.arxiv_id %} - <a href="https://arxiv.org/abs/{{paper.biblio.arxiv_id }}" style="color: green;">arXiv:{{ paper.biblio.arxiv_id }}</a> + <a target="_blank" href="https://arxiv.org/abs/{{paper.biblio.arxiv_id }}" style="color: green;">arXiv:{{ paper.biblio.arxiv_id }}</a> {% endif %} {% if paper.biblio.release_ident %} - <a href="https://fatcat.wiki/release/{{paper.biblio.release_ident}}" style="color: green;">fatcat:{{ paper.biblio.release_ident}}</a> + <a target="_blank" href="https://fatcat.wiki/release/{{paper.biblio.release_ident}}" style="color: green;">fatcat:{{ paper.biblio.release_ident}}</a> {% endif %} {# ### SOURCE TAGS #} @@ -135,7 +135,7 @@ <span class="ui label small">{{ _(tag) }}</span> {% endfor %} {# TODO: remove doc for ES 7.x-style lack of type #} - <a href="{{ settings.ELASTICSEARCH_BACKEND }}/{{ settings.ELASTICSEARCH_FULLTEXT_INDEX }}/_doc/{{ paper.key }}"> + <a target="_blank" href="{{ settings.ELASTICSEARCH_BACKEND }}/{{ settings.ELASTICSEARCH_FULLTEXT_INDEX }}/_doc/{{ paper.key }}"> <span class="ui label small">indexed</span> </a> </div> @@ -146,12 +146,12 @@ {# <img src="{{ settings.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.thumbnail_url }}" style="border: 1px solid grey; max-height: 12em; max-width: 100%;"> #} {% if paper.fulltext.thumbnail_url %} <div class="ui card" style="margin-bottom: 0.2em;"> - <a class="image" href="{{ paper.fulltext.access_url}}"> + <a class="image" target="_blank" href="{{ paper.fulltext.access_url}}"> <img src="{{ paper.fulltext.thumbnail_url }}"> </a> </div> {% endif %} - <a href="{{ paper.fulltext.access_url}}"> + <a target="_blank" href="{{ paper.fulltext.access_url}}"> <div style="width: 100%; opacity: 0.65; text-align: center;"> {# TODO: could have other hover info, like mimetype icon and file size? #} <span> |