{% macro tag_label(tag) -%} {% if tag == "oa" %} OA {% elif tag == "jstor" %} JSTOR {% elif tag == "scielo" %} SciELO {% elif tag == "ojs" %} OJS {% elif tag == "wordpress" %} Wordpress {% elif tag == "road" %} {# skip for now; no curration? #} {# ROAD #} {% elif tag == "szczepanski" %} Szczepanski {% elif tag == "doaj" %} DOAJ {% elif tag.startswith("lang:") %} {{ tag }} {% else %} {# disabling "other" tags for now #} {# {{ _(tag) }} #} {% endif %} {% endmacro %} {% macro external_identifiers(biblio) -%} {# NOTE: should be able to call with paper.biblio or any paper.release[] #} {% if biblio.doi %} doi:{{ biblio.doi }} {% endif %} {% if biblio.pmid %} pmid:{{ biblio.pmid }} {% endif %} {% if biblio.pmcid %} pmcid:{{ biblio.pmcid }} {% endif %} {% if biblio.arxiv_id %} arXiv:{{ biblio.arxiv_id }} {% endif %} {% if biblio.dblp_id %} dblp:{{ biblio.dblp_id }} {% endif %} {% if biblio.doaj_id %} doaj:{{ biblio.doaj_id }} {% endif %} {% if biblio.release_ident %} fatcat:{{ biblio.release_ident}} {% endif %} {% endmacro %} {% macro journal_row(biblio, paper) -%} {# NOTE: should be able to call with paper.biblio or any paper.release[] #} {% if biblio.release_year %} {{ biblio.release_year }} {% endif %} {% if biblio.container_name %} {% if biblio.container_ident %} {{ biblio.container_name }} {% elif paper.doc_type == "sim_page" %} {{ biblio.container_name }} {% else %} {{ biblio.container_name }} {% endif %} {% endif %} {% if biblio.release_stage == "submitted" %} pre-print {% elif biblio.release_stage and biblio.release_stage != "published" %} {{ biblio.release_stage }} {% elif not biblio.release_stage %} unpublished {% endif %} {% if biblio.withdrawn_status %} {{ biblio.withdrawn_status }} {% endif %} {% endmacro %} {% macro fulltext_search_result_row(paper, locale=None, debug_mode=False) -%}