From e5d0d98d0377c5833dc4fedb6d8df14f5489edb5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 12 Dec 2019 17:47:12 -0800 Subject: initial 'Save Paper Now' web form --- python/fatcat_web/templates/release_save.html | 73 +++++++++++++++++++++++++++ python/fatcat_web/templates/release_view.html | 26 +++++++++- 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 python/fatcat_web/templates/release_save.html (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/release_save.html b/python/fatcat_web/templates/release_save.html new file mode 100644 index 00000000..29875d3d --- /dev/null +++ b/python/fatcat_web/templates/release_save.html @@ -0,0 +1,73 @@ +{% set release = entity %} +{% set entity_view = "save" %} +{% set entity_type = "release" %} +{% import "entity_macros.html" as entity_macros %} +{% import "edit_macros.html" as edit_macros %} +{% extends "entity_base.html" %} + +{% block entity_main %} + +
+
+

"Save Paper Now"

+ +{% if spn_status == "not-configured" %} + +
+
Error
+

Save Paper Now feature isn't configured, sorry about that. +

+ +{% elif spn_status == "kafka-error" %} + +
+
Error
+

Whoops, something went wrong and we couldn't enqueue your request. This + didn't have anything to do with the URL you supplied; please try again later. +

+ +{% elif spn_status == "success" %} + +
+
Success
+

URL has been submitted to the bot queue for crawling. If fulltext content + is found, it will be imported into the catalog for review. Keep an eye on the + reviewable editgroups list (can take 5-10 minutes + depending on throughput and batch sizes). +

+ +{% else %} +
+ + +
+

Know of a legit fulltext copy of this publication on the public web? + Tell us the URL and we will crawl it and provide free perpetual access. + + {{ edit_macros.form_field_basic(form.base_url) }} + +

Important: check the publication stage of the file you are + submitting. We distinguish between pre-prints, manuscripts, and the + published version of record (if applicable). + +

+ {{ edit_macros.form_field_basic(form.release_stage) }} + {{ edit_macros.form_field_basic(form.ingest_type) }} +
+ +
+ +
+ Your request will automatically be enqueued for our bots to crawl and + process. All new files will be reviewed before being included in the + catalog + +
+ +
+{% endif %} + +
+
+ +{% endblock %} diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 11b67148..b4e0ba25 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -257,7 +257,31 @@ {% elif entity.state == 'active' and entity.webcaptures != [] and entity.webcaptures[0].archive_urls != [] and entity.webcaptures[0].archive_urls[0].rel == "wayback" %} View Web Archive {% elif entity.state == 'active' %} -No Full Text Available +No Full Text Available + + + "Save Paper Now" +
+ Know of a fulltext copy of on the public web? Submit a URL and we will archive it +
+
+ +{# alternative SPN +
+
+ Save Paper Now +
+

Know of a fulltext copy on the public web? Submit a URL and we'll archive it +

+#} + +{# alternative SPN +
+ Save Paper Now +
know of a fulltext copy on the public web? submit a URL and we'll archive it +
+#} + {% endif %} {% if release.release_type or release.release_stage or release.release_year %} -- cgit v1.2.3