summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/reference_match.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-07-27 17:58:11 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-07-27 17:58:11 -0700
commitdb88516724e3e0afc4f1c88356c0ee7f39fbb38c (patch)
treeda9cc98152379eeee634a45a7a0228f0eb825d3c /python/fatcat_web/templates/reference_match.html
parentd0ca0f9d70858218c5fc5625ca08c349ec06121c (diff)
downloadfatcat-db88516724e3e0afc4f1c88356c0ee7f39fbb38c.tar.gz
fatcat-db88516724e3e0afc4f1c88356c0ee7f39fbb38c.zip
refs: slightly better match form (will change)
Diffstat (limited to 'python/fatcat_web/templates/reference_match.html')
-rw-r--r--python/fatcat_web/templates/reference_match.html88
1 files changed, 46 insertions, 42 deletions
diff --git a/python/fatcat_web/templates/reference_match.html b/python/fatcat_web/templates/reference_match.html
index ae6a239c..f2335f52 100644
--- a/python/fatcat_web/templates/reference_match.html
+++ b/python/fatcat_web/templates/reference_match.html
@@ -9,63 +9,69 @@
<form class="ui form" id="reference_match" method="POST" action="/reference/match">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
- <h3>Parse Citation</h3>
+ <div class="ui segment">
+ <h3>Parse Citation</h3>
- <p>Enter a citation string here and we will try to parse it (using GROBID)
- into a structured format, then match against the catalog.
+ <p>Enter a citation string here and we will try to parse it (using GROBID)
+ into a structured format, then match against the catalog.
- {{ edit_macros.form_field_basic(form.raw_citation) }}
+ {{ edit_macros.form_field_basic(form.raw_citation) }}
- <button class="ui primary submit button right floated" type="submit" name="submit_type" value="parse">
- Parse
- </button>
+ <button class="ui primary submit button right floated" type="submit" name="submit_type" value="parse">
+ Parse
+ </button>
+ <br clear="all">
+ </div>
- <br clear="all">
{% if grobid_status == "success" and grobid_dict %}
<div class="ui positive message">
- <div class="header">Parsed successfully! See match results below</div>
+ <div class="header">Parsed Citation String</div>
{{ entity_macros.extra_metadata(grobid_dict) }}
+ <p><i>See below for fuzzy match results</i>
</div>
{% endif %}
- <br>
- <hr>
- <h3>Fuzzy Match Metadata</h3>
+ <div class="ui segment">
+ <h3>Fuzzy Match Metadata</h3>
- <p>Enter whatever bibliographic metadata fields you know, and we will try to
- match to catalog entries.
+ <p>Enter whatever bibliographic metadata fields you know, and we will try to
+ match to catalog entries.
- <p><b>NOTE:</b> if you already know a persistent identifier (like a DOI), you
- should use the <a href="/release/lookup">lookup tool</a> instead.
+ <p><b>NOTE:</b> if you already know a persistent identifier (like a DOI), you
+ should use the <a href="/release/lookup">lookup tool</a> instead.
- <br>
- <div class="ui equal width fields">
- {{ edit_macros.form_field_basic(form.title) }}
- </div>
- <div class="ui equal width fields">
- {{ edit_macros.form_field_basic(form.first_author) }}
- </div>
- <div class="ui equal width fields">
- {{ edit_macros.form_field_basic(form.journal) }}
- </div>
- <div class="ui equal width fields">
- {{ edit_macros.form_field_basic(form.year) }}
- {{ edit_macros.form_field_basic(form.volume) }}
- {{ edit_macros.form_field_basic(form.issue) }}
- {{ edit_macros.form_field_basic(form.pages) }}
- </div>
+ <br>
+ <div class="ui equal width fields">
+ {{ edit_macros.form_field_basic(form.title) }}
+ </div>
+ <div class="ui equal width fields">
+ {{ edit_macros.form_field_basic(form.first_author) }}
+ </div>
+ <div class="ui equal width fields">
+ {{ edit_macros.form_field_basic(form.journal) }}
+ </div>
+ <div class="ui equal width fields">
+ {{ edit_macros.form_field_basic(form.year) }}
+ {{ edit_macros.form_field_basic(form.volume) }}
+ {{ edit_macros.form_field_basic(form.issue) }}
+ {{ edit_macros.form_field_basic(form.pages) }}
+ </div>
- <button class="ui primary submit button right floated" type="submit" name="submit_type" value="match">
- Match
- </button>
- <br clear="all">
+ <button class="ui primary submit button right floated" type="submit" name="submit_type" value="match">
+ Match
+ </button>
+ <br clear="all">
+ </div>
</form>
{% if matches is defined %}
- <br>
- <hr>
- <h3>Match Results</h3>
+ <h3>Matched Releases</h3>
+
+ {% if not matches %}
+ <p><i>No matches found</i>
+ {% endif %}
+
<table class="ui very basic celled table">
<tbody>
{% for match in matches %}
@@ -81,9 +87,7 @@
{% endfor %}
</tbody>
</table>
- {% if not matches %}
- <p><i>None!</i>
- {% endif %}
+
{% endif %}
{% endblock %}