[open-ils-commits] r7649 - trunk/Open-ILS/xul/staff_client/server/cat

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Aug 8 15:25:26 EDT 2007


Author: miker
Date: 2007-08-08 15:22:28 -0400 (Wed, 08 Aug 2007)
New Revision: 7649

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
Log:
and finally, set the output type on the uri

Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js	2007-08-08 19:19:49 UTC (rev 7648)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js	2007-08-08 19:22:28 UTC (rev 7649)
@@ -45,13 +45,13 @@
 		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);
 								



More information about the open-ils-commits mailing list