regluit/frontend/templates/marc.html

92 lines
2.9 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'basedocumentation.html' %}
2016-05-11 14:41:50 +00:00
2013-07-08 15:14:09 +00:00
{% block title %} MARC records{% endblock %}
2013-07-15 12:38:20 +00:00
{% block extra_extra_head %}
<style type="text/css">
.marc {
margin-top: 20px;
}
.marc div a.fakeinput {
clear: both;
}
.marc div a.title {
vertical-align: middle;
padding-left: 5px;
}
ul.local li {
list-style-type: disc;
list-style-position: inside;
}
/* need to do a hide/show instead of a .replaceWith() on the submit button
because the image takes long enough to load that it's preempted by the
redirect for quick downloads, and users never see it
*/
#unsubmit {
display: none;
}
#unsubmit img {
vertical-align: middle;
}
2013-07-15 12:38:20 +00:00
</style>
{% endblock %}
2013-07-08 15:14:09 +00:00
{% block topsection %}
{% endblock %}
{% block doccontent %}
<h2>MARC records at Unglue.it</h2>
<p>Go ahead: add unglued ebooks to your library catalog!</p>
{% if messages %}
<ul class="errors">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
2014-11-03 20:22:53 +00:00
<p>You can download all our full records:</p>
2013-07-15 12:38:20 +00:00
<div class="marc">
2015-04-28 03:24:02 +00:00
<form method="POST" id="record_form" action="{% url 'marc_all' %}">
2014-10-27 15:55:46 +00:00
{% include 'marc_form.html' %}
2014-10-21 03:30:20 +00:00
<input type="submit" name="submit" value="Download All Records" id="submit">
<span id="unsubmit"><img src="/static/images/loading.gif" alt="spinning wheel" /> Fetching record(s)...</span>
</form>
2014-10-27 15:55:46 +00:00
<br />
{% if request.user.is_authenticated %}
2014-11-03 20:22:53 +00:00
<p>...or you can get records (both stub and full) for ebooks on your fave list.</p>
2014-10-27 15:55:46 +00:00
<div class="marc">
2015-04-28 03:24:02 +00:00
<form method="POST" id="record_form" action="{% url 'user_marc' request.user.username %}">
2014-10-27 15:55:46 +00:00
{% include 'marc_form.html' %}
<input type="submit" name="submit" value="Download {{request.user.username}}'s Records" id="submit">
<span id="unsubmit"><img src="/static/images/loading.gif" alt="spinning wheel" /> Fetching record(s)...</span>
</form>
2014-10-21 03:30:20 +00:00
<br /><hr>
2014-10-27 15:55:46 +00:00
{% endif %}
2014-10-21 03:30:20 +00:00
<p>The 856 link options are:</p>
<ul class="local">
<li> Download page link. MARC records link through Unglue.it download page ( library user authentication, context sensitive help for getting files onto user's device)</li>
<li> Links to each file type if available. MARC records link directly to files ( less help, not available for "Buy-to-unglue" titles) </li>
</ul>
2014-11-03 20:22:53 +00:00
<p>"Stub" records are automatically generated using information in our database.</p>
</div>
2014-10-21 03:30:20 +00:00
2013-07-26 20:12:10 +00:00
{% if request.user.is_authenticated %}
<div>
2014-10-27 15:55:46 +00:00
{% if request.user.libpref %}
2015-04-28 03:24:02 +00:00
<p>You have enabled librarian tools. You can <a href="{% url 'marc_config' %}">change your librarian status here</a>.</p>
2014-10-27 15:55:46 +00:00
{% else %}
2015-04-28 03:24:02 +00:00
<p>You have not enabled librarian tools. You can <a href="{% url 'marc_config' %}">change your librarian status here</a>.</p>
2014-10-27 15:55:46 +00:00
{% endif %}
2015-04-28 03:24:02 +00:00
<p>If you enable librarian tools, you can also <a href="{% url 'upload_marc' %}">add new records</a>.</p>
2013-07-08 19:54:36 +00:00
</div>
2013-07-26 20:12:10 +00:00
{% endif %}
2013-07-08 15:14:09 +00:00
{% endblock %}