display available MARC records
parent
2ea00389b3
commit
214467e8f1
|
@ -0,0 +1,16 @@
|
|||
{% extends "basedocumentation.html" %}
|
||||
|
||||
{% block title %} MARC records{% endblock %}
|
||||
|
||||
{% block topsection %}
|
||||
{% endblock %}
|
||||
|
||||
{% block doccontent %}
|
||||
<h2>MARC records at Unglue.it</h2>
|
||||
|
||||
<p>Go ahead: add unglued ebooks to your library catalog!</p>
|
||||
|
||||
{% for record in records %}
|
||||
{{ record.edition.work.title }}<br /><br />
|
||||
{% endfor %}
|
||||
{% endblock %}
|
|
@ -131,6 +131,7 @@ urlpatterns = patterns(
|
|||
url(r"^accounts/edit/kindle_config/(?P<kindle_ebook_id>\d+)/$", "kindle_config", name="kindle_config_download"),
|
||||
url(r"^send_to_kindle/(?P<kindle_ebook_id>\d+)/(?P<javascript>\d)/$", "send_to_kindle", name="send_to_kindle"),
|
||||
url(r"^send_to_kindle/result/(?P<message>\d)/$", "send_to_kindle_graceful", name="send_to_kindle_graceful"),
|
||||
url(r"^marc/$", "marc", name="marc"),
|
||||
)
|
||||
|
||||
if settings.DEBUG:
|
||||
|
|
|
@ -2603,3 +2603,11 @@ def send_to_kindle_graceful(request, message):
|
|||
'kindle_response_graceful_degradation.html',
|
||||
{'message': int(message)}
|
||||
)
|
||||
|
||||
def marc(request):
|
||||
records = models.MARCRecord.objects.all()
|
||||
return render(
|
||||
request,
|
||||
'marc.html',
|
||||
{'records': records}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue