export of records as marcxml does not provide file to downlaod

Bug #1760223 reported by Angela Kilsdonk on 2018-03-30
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Low
Unassigned
3.1
Low
Unassigned

Bug Description

Exporting MARCXML records in MARC Batch Import/Export>Export Records displays the records within the Evergreen client, instead of generating a file of records to download.

Tested in 3.0.5 web client and xul client and 2.12 xul client.

1. Go to Cataloging>MARC Batch Import/Export>Export Records.
2. Indicate the record(s) you want to export.
3. Select MARC XML as the Record Format.
4. Click Retrieve Records.

The records will display in the client interface. I expected Evergreen to generate and download a file of the record(s) in MARCXML format (which is what happens when you export records as MARC21).

Jane Sandberg (sandbej) wrote :

Confirmed in 3.1.0.

Changed in evergreen:
status: New → Confirmed
tags: added: cataloging
Changed in evergreen:
importance: Undecided → Low
tags: added: webstaffclient
Mike Rylander (mrylander) wrote :

In the olden days, some browsers didn't understand the "attachment" content disposition. They only understood "inline" but would let the user save a file if a filename was provided. However, in these modern days, relevant browsers all do the right thing and know about both flavors of content disposition, so we, too, must change with the times and support the letter of the standard.

This commit fixes downloading of MARCXML from the Exporter module.

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/miker/lp-1760223-download-exported-records

tags: added: pullrequest
Changed in evergreen:
milestone: none → 3.0.7
Jane Sandberg (sandbej) wrote :

Thanks for the fast fix, Mike! I have tested this code and consent to signing off on it with my email address, <email address hidden>, and name, Jane Sandberg.

tags: added: signedoff
Cesar V (cesardv) wrote :

I've tested this as indicated above and the fix works as expected on webstaff using latest Chrome: I see the MARCXML download as a file, and not to the page as txt.

Here's a signoff branch with the current signoffs

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/cesardv/miker_lp-1760223-download-exported-records_signoff

Changed in evergreen:
milestone: 3.0.7 → 3.0.8
Galen Charlton (gmc) on 2018-04-30
Changed in evergreen:
assignee: nobody → Galen Charlton (gmc)
Galen Charlton (gmc) wrote :

Merged to master, rel_3_1, and rel_3_0. Thanks, Mike, Jane, and Cesar!

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers