diff --git a/frontend/templates/work.html b/frontend/templates/work.html
index cbac75b8..13758af0 100644
--- a/frontend/templates/work.html
+++ b/frontend/templates/work.html
@@ -378,9 +378,13 @@
Edit this edition
{% endif %}
{% if edition.googlebooks_id %}
- See this edition on Google Books
+ See this edition on Google Books
{% endif %}
+ {% for record in edition.MARCrecords.all %}
+ Download {{record.link_target}} MARC record for this edition: (XML) (mrc)
+ {% endfor %}
+
{% if edition.ebook_form %}
{% ifnotequal status 'ACTIVE' %}
diff --git a/frontend/views.py b/frontend/views.py
index 044ddf99..08b5e7ef 100755
--- a/frontend/views.py
+++ b/frontend/views.py
@@ -2672,7 +2672,6 @@ class MARCConfigView(FormView):
else:
return super(MARCConfigView, self).form_valid(form)
-@require_POST
def marc_concatenate(request):
"""
options for future work...
@@ -2680,12 +2679,20 @@ def marc_concatenate(request):
dispatch as background process, email when done?
if not caching, delete files on s3 after a while?
make the control flow suck less during file write
- """
- format = request.POST['format']
- # extract the user-selected records from the POST QueryDict
+ Can be used as a GET URL
+ """
+ if request.method == 'POST':
+ params=request.POST
+ elif request.method == 'GET':
+ params=request.GET
+ else:
+ return HttpResponseNotFound
+ format = params['format']
+
+ # extract the user-selected records from the params QueryDict
selected_records = list(
- k for k in request.POST if request.POST[k] == u'on'
+ k for k in params if params[k] == u'on'
)
if not selected_records:
messages.error(