From 5096b0b7407aadfb97093615696f951829dc3506 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 Jan 2021 18:25:23 -0800 Subject: move a bit more CSS out of HTML --- fatcat_scholar/templates/search_macros.html | 30 +++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'fatcat_scholar/templates') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 66f8ebe..f580cee 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -28,28 +28,30 @@ {% endmacro %} {% macro external_identifiers(biblio) -%} - {# NOTE: should be able to call with paper.biblio or any paper.release[] #} +{# NOTE: should be able to call with paper.biblio or any paper.release[] #} + {% if biblio.doi %} - doi:{{ biblio.doi }}   + doi:{{ biblio.doi }}   {% endif %} {% if biblio.pmid %} - pmid:{{ biblio.pmid }}   + pmid:{{ biblio.pmid }}   {% endif %} {% if biblio.pmcid %} - pmcid:{{ biblio.pmcid }}   + pmcid:{{ biblio.pmcid }}   {% endif %} {% if biblio.arxiv_id %} - arXiv:{{ biblio.arxiv_id }}   + arXiv:{{ biblio.arxiv_id }}   {% endif %} {% if biblio.dblp_id %} - dblp:{{ biblio.dblp_id }}   + dblp:{{ biblio.dblp_id }}   {% endif %} {% if biblio.doaj_id %} - doaj:{{ biblio.doaj_id }}   + doaj:{{ biblio.doaj_id }}   {% endif %} {% if biblio.release_ident or biblio.ident %} - fatcat:{{ biblio.release_ident or biblio.ident }}   + fatcat:{{ biblio.release_ident or biblio.ident }}   {% endif %} + {% endmacro %} {% macro ia_access_button(access, show_thumbnail=False, other_version=False) -%} @@ -65,7 +67,7 @@ {% endif %}