}
],
+ '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() {
<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>