From da08afd0b8c9848162cd1bf0dff0a9fc1c4ff4d8 Mon Sep 17 00:00:00 2001 From: Andromeda Yelton Date: Wed, 24 Jul 2013 14:52:01 -0400 Subject: [PATCH] now users can select the MARC records they want and get as single download --- frontend/templates/marc.html | 86 +++++++++++++++++++++-------- frontend/templates/marc_config.html | 2 +- frontend/urls.py | 4 +- frontend/views.py | 73 +++++++++++++++++++++++- 4 files changed, 138 insertions(+), 27 deletions(-) diff --git a/frontend/templates/marc.html b/frontend/templates/marc.html index c1b42086..396fa342 100644 --- a/frontend/templates/marc.html +++ b/frontend/templates/marc.html @@ -2,6 +2,19 @@ {% block title %} MARC records{% endblock %} +{% block extra_js %} +{{ block.super }} + +{% endblock %} + {% block extra_extra_head %} {% endblock %} @@ -32,32 +53,53 @@ ul.local li {

Go ahead: add unglued ebooks to your library catalog!

-

Your preference for the links in the 856 field is:

- - -

The options are:

- - -

You can change your preferences here.

- {% if request.user.is_staff %}

Hi, {{ request.user.username }}. Unglue.it staffers can also add new records.

{% endif %} +{% if messages %} + +{% endif %} +
- {% for record in records %} -
- Download MARCXML - Download .mrc - {{ record.edition.work.title }} -
-
- {% endfor %} +
+ {% csrf_token %} + Record format: + +

+ {% for record in records %} + + +
+ {% endfor %} + + +
+
+ +
+
+

Your preference for the links in the 856 field is:

+ + +

The options are:

+ + +

You can change your preferences here.

{% endblock %} \ No newline at end of file diff --git a/frontend/templates/marc_config.html b/frontend/templates/marc_config.html index b7eba4fa..f85d1318 100644 --- a/frontend/templates/marc_config.html +++ b/frontend/templates/marc_config.html @@ -14,7 +14,7 @@ {% block ce_content %} {% if messages %} -