}
}
],
- 'record_buckets_batch_record_edit' : [
- ['command'],
- function() {
- try {
- JSAN.use('util.functional');
- JSAN.use('util.window'); var win = new util.window();
- win.open(
- urls.XUL_COPY_EDITOR
- + '?record_ids=' + window.escape( js2JSON(
- util.functional.map_list(
- obj.list2.dump_retrieve_ids(),
- function (o) {
- return JSON2js(o).docid; // docid
- }
- )
- ) )
- + '&single_edit=1'
- + '&handle_update=1',
- 'batch_record_editor_win_' + win.window_name_increment(),
- 'chrome,resizable,modal'
- );
- setTimeout(
- function() {
- JSAN.use('util.widgets');
- util.widgets.dispatch('change_bucket',obj.controller.view.bucket_menulist);
- }, 0
- );
- obj.render_pending_records(); // FIXME -- need a generic refresh for lists
- } catch(E) {
- alert( js2JSON(E) );
- }
- }
- ],
'cmd_merge_records' : [
['command'],
function() {
['command'],
function() { alert('Not Yet Implemented'); }
],
- 'cmd_record_buckets_print' : [
- ['command'],
- function() {
- dump( js2JSON( obj.list2.dump() ) );
- alert( js2JSON( obj.list2.dump() ) );
- }
- ],
- 'cmd_record_buckets_reprint' : [
- ['command'],
- function() {
- }
- ],
'cmd_record_buckets_done' : [
['command'],
function() {
</hbox>
<hbox id="record_buckets_bottom_ui">
-<!--
- <button id="record_buckets_print" label="Print" command="cmd_record_buckets_print" accesskey="P"/>
- <button id="record_buckets_reprint" label="Print Last" command="cmd_record_buckets_reprint" accesskey_disabled="L"/>
--->
<spacer flex="1"/>
<button command="cmd_sel_opac" label="Show All in Catalog" accesskey="S"/>
<button id="record_buckets_merge_records" command="cmd_merge_records" label="Merge All Records"/>
-<!--
- <button id="record_buckets_transfer_to_volume" label="Transfer to Volume"/>
- <button id="record_buckets_batch_record_edit" label="Batch Edit" image="/xul/server/skin/media/images/grinder.gif"/>
--->
<button id="record_buckets_done" label="Done" command="cmd_record_buckets_done" accesskey="D"/>
</hbox>