display available MARC records

pull/1/head
Andromeda Yelton 2013-07-08 11:14:09 -04:00
parent 2ea00389b3
commit 214467e8f1
3 changed files with 25 additions and 0 deletions

View File

@ -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 %}

View File

@ -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:

View File

@ -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}
)