From: Dan Wells Date: Tue, 9 Aug 2016 19:50:50 +0000 (-0400) Subject: LP#1611495 Don't use .xml for MARC21 files in Vandelay Export X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=552e5fa596efe53eaeb2d720981087ab8b10ca0a;p=evergreen%2Ftadl.git LP#1611495 Don't use .xml for MARC21 files in Vandelay Export The new 'Export Non-imported Records' feature in Vandelay (see bug LP#1548147) was tweaked before merge to export MARC21 files by default (rather than MARC-XML). However, the file save dialog still defaults to (and filters by) ".xml" for the file extension. This is confusing and otherwise problematic. Let's go ahead and save the export using a ".mrc" extension instead. While not an official extension (as far as I know), it is widely used, easy to understand, and far less likely to cause issues with other software. Signed-off-by: Dan Wells Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index ba2cbee5f5..928ef05821 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -578,10 +578,10 @@ function vlExportRecordQueue(opts) { if (req.readyState == 4) { var file_tag = opts.nonimported ? '_nonimported' : ''; openils.XUL.contentToFileSaveDialog(req.responseText, null, { - defaultString : currentQueueName + file_tag + '.xml', - defaultExtension : '.xml', - filterName : 'XML', - filterExtension : '*.xml', + defaultString : currentQueueName + file_tag + '.mrc', + defaultExtension : '.mrc', + filterName : 'MARC21', + filterExtension : '*.mrc', filterAll : true } ); }