From: miker Date: Wed, 8 Aug 2007 19:22:28 +0000 (+0000) Subject: and finally, set the output type on the uri X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2f5ca5c99848f9d94721019488e68ba044e9f116;p=Evergreen.git and finally, set the output type on the uri git-svn-id: svn://svn.open-ils.org/ILS/trunk@7649 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets.js b/Open-ILS/xul/staff_client/server/cat/record_buckets.js index 01dedc0fb0..651af6aeaa 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -45,13 +45,13 @@ 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 = 'http://' + window.location.hostname + '/exporter'; + var proto_uri = 'http://' + window.location.hostname + '/exporter?format=' + output_type; - dump('Record Export URI is ' + proto_uri + '?id=' + record_ids.join('&id=') + '\n'); + dump('Record Export URI is ' + proto_uri + '&id=' + record_ids.join('&id=') + '\n'); var uri = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) - .newURI( proto_uri + '?id=' + record_ids.join('&id='), null, null ); + .newURI( proto_uri + '&id=' + record_ids.join('&id='), null, null ); var file = cat.record_buckets.pick_file('bucket.' + output_type);