aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_save.html
blob: 7dd01fc0d3eaec4a765751fed27f8d78e460e67e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{% 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 %}

<div class="ui container text" style="margin-top: 2em;">
<div class="ui segment" style="padding: 3em;">
<h1 class="ui header">"Save Paper Now"</h1>

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

<div class="ui error message" style="margin-top: 2em;">
  <div class="header">Not Available</div>
  <p>Save Paper Now feature isn't configured, sorry about that.
</div>

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

<div class="ui error message" style="margin-top: 2em;">
  <div class="header">Error</div>
  <p>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.
</div>

{% elif spn_status == "success" %}

<div class="ui positive message" style="margin-top: 2em;">
  <div class="header">Success</div>
  <p>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
  <a href="/reviewable">reviewable editgroups</a> list (can take 5-10 minutes
  depending on throughput and batch sizes).
</div>

{% else %}
<form class="ui form" id="save_release_form" method="POST" action="/release/{{ release.ident }}/save">
  <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>

  <p>If you know of a legitimate public web access option for this work, you
  can help us preserve it by filling out the form below. Using the Wayback
  Machine's <a href="https://web.archive.org/save">"Save Page Now"</a> feature,
  we will attempt to crawl, process, and verify the content and add it to the
  catalog.

  <p style="margin-top: 1em; margin-bottom: 1em;">If you are the author of this
  work, and the published version is not publicly available, another option is
  to upload an version to an institutional or discipline repository. The
  <a href="https://shareyourpaper.org/">Share Your Paper</a> tool can help with
  this process.

  <p style="margin-top: 1em; margin-bottom: 1em;"><b>Important:</b>
  double-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.base_url) }}

  <div class="ui equal width fields">
    {{ edit_macros.form_field_basic(form.release_stage) }}
    {{ edit_macros.form_field_basic(form.ingest_type) }}
  </div>

  <br>
  <input class="ui primary submit button big left floated" type="submit" value="Submit URL" style="margin-right: 1em;">
  <div>
    <i>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
    </i>
  </div>

</form>
{% endif %}

</div>
</div>

{% endblock %}