[open-ils-commits] r7633 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 8 11:31:08 EDT 2007
Author: miker
Date: 2007-08-08 11:28:12 -0400 (Wed, 08 Aug 2007)
New Revision: 7633
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
Log:
first attempt at record exporting interface
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 02:06:25 UTC (rev 7632)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2007-08-08 15:28:12 UTC (rev 7633)
@@ -467,6 +467,29 @@
}
],
+ 'cmd_export_records' : [
+ ['command'],
+ function() {
+ try {
+ obj.list2.select_all();
+ obj.data.stash_retrieve();
+ JSAN.use('util.functional');
+
+ var record_ids = util.functional.map_list(
+ obj.list2.dump_retrieve_ids(),
+ function (o) {
+ return JSON2js(o).docid; // docid
+ }
+ );
+ var id_string = 'id=' + record_ids.join('&id=');
+
+ window.location("/export?" + id_string);
+ } catch(E) {
+ obj.error.standard_unexpected_error_alert('Records could not be exported.',E);
+ }
+ }
+ ],
+
'cmd_merge_records' : [
['command'],
function() {
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul 2007-08-08 02:06:25 UTC (rev 7632)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul 2007-08-08 15:28:12 UTC (rev 7633)
@@ -72,6 +72,7 @@
<button command="cmd_sel_opac" label="Show All in Catalog" accesskey="S"/>
<button id="record_buckets_delete_records" command="cmd_delete_records" label="Delete All Records"/>
<button id="record_buckets_merge_records" command="cmd_merge_records" label="Merge All Records"/>
+ <button id="record_buckets_export_records" command="cmd_export_records" label="Export All Records"/>
</hbox>
</hbox>
More information about the open-ils-commits
mailing list