LP1179614 - fix Export All Records action user/bshum/lp1179614-export-all-marc
authorBen Shum <bshum@biblio.org>
Mon, 13 May 2013 18:19:06 +0000 (14:19 -0400)
committerBen Shum <bshum@biblio.org>
Mon, 13 May 2013 18:19:06 +0000 (14:19 -0400)
In the record buckets, the button for 'Export All Records' would work up
to the point where you chose where to save the file. After clicking where
to save, it would not show any saved files or prompts indicating it completed
the export process.

This fix changes the location of where to find the export tool and properly
exports the bibs as the file format selected.

Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/xul/staff_client/server/cat/record_buckets.js

index 1f40446..393d55a 100644 (file)
@@ -63,7 +63,7 @@ cat.record_buckets.export_records = function(obj, output_type) {
         var persist = Components.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"]
             .createInstance(Components.interfaces.nsIWebBrowserPersist);
 
-        var proto_uri = 'https://' + window.location.hostname + '/exporter?format=' + output_type + '&ses=' + ses();
+        var proto_uri = 'oils://remote/exporter?format=' + output_type + '&ses=' + ses();
 
         dump('Record Export URI is ' + proto_uri + '&id=' + record_ids.join('&id=') + '\n');