From 316b25455a6fc96023ac8457ec53fad3777d79af Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 13 Oct 2021 16:46:02 -0700 Subject: web: container lookup and display features --- python/fatcat_web/routes.py | 2 +- python/fatcat_web/templates/container_lookup.html | 14 ++++++++++---- python/fatcat_web/templates/container_view.html | 4 ++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 71dadfa1..41027710 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -146,7 +146,7 @@ def container_lookup(): return generic_lookup_view( 'container', 'container_lookup.html', - ('issnl', 'wikidata_qid'), + ('issn', 'issne', 'issnp', 'issnl', 'wikidata_qid'), lambda p: api.lookup_container(**p)) @app.route('/creator/lookup', methods=['GET']) diff --git a/python/fatcat_web/templates/container_lookup.html b/python/fatcat_web/templates/container_lookup.html index 798e5587..8a3d4bdf 100644 --- a/python/fatcat_web/templates/container_lookup.html +++ b/python/fatcat_web/templates/container_lookup.html @@ -18,11 +18,9 @@ Couldn't find a container with that identifier ({{ lookup_key }}:{{ lookup_value }}). If you think it should be in the catalog, you could search for an existing record missing that identifier, or create a new container entity. -{% if lookup_key == "issnl" %} -

You can check if it is a registered ISSN-L by visiting: +{% if lookup_key == "issnl" or lookup_key == "issn" or lookup_key == "issne" or lookup_key == "issnp" %} +

You can check if it is a registered ISSN by visiting: https://portal.issn.org/api/search?search[]=MUST=allissnbis={{ lookup_value }}. -If this is a valid electronic or print ISSN, but not the ISSN-L for the -container, you need to use the indicated "linking" ISSN. {% elif lookup_key == "wikidata_qid" %}

You can check if it is a real Wikidata entity by visiting: https://www.wikidata.org/wiki/{{ lookup_value }} @@ -32,6 +30,14 @@ container, you need to use the indicated "linking" ISSN.

+

ISSN

+

Lookup container with the given ISSN as any of the ISSN-L, ISSN-E (electronic) or ISSN-P (print) ISSNs. +{{ entity_macros.lookup_form("container", "issn", "1234-567X", lookup_key, lookup_value, lookup_error) }} +  Must include the dash + +

+
+

ISSN-L

The "linking" ISSN for a journal or other publication is one of the "print" or "electronic" diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index ddad07ae..e1c49197 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -89,8 +89,8 @@ {% endif %}

- Type  {{ container.container_type or 'Unknown' }} - Status  {{ container.publication_status or 'Unknown' }} + Type  {{ container.container_type or 'unknown' }}
+ Status  {{ container.publication_status or 'Unknown' }}
{% if container.issnl != None or container.issne != None or container.issnp != None or container.wikidata_qid != None %} -- cgit v1.2.3