From: phasefx Date: Tue, 12 Oct 2010 21:32:21 +0000 (+0000) Subject: entry points for miker_'s batch marc editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1a28cebfab4646249b0735be85c360beea35c661;p=evergreen%2Fpines.git entry points for miker_'s batch marc editor git-svn-id: svn://svn.open-ils.org/ILS/trunk@18294 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 118a2d1d50..ec54c08b32 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -842,6 +842,8 @@ + + @@ -2654,7 +2656,9 @@ - + + + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index 2f3cf95bcb..e95db3d3c6 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -353,6 +353,7 @@ var urls = { 'xsl_marc2html' : '/opac/extras/xsl/oilsMARC21slim2HTML.xsl', 'ac_jacket_small' : '/opac/extras/ac/jacket/small/', 'ac_jacket_large' : '/opac/extras/ac/jacket/large/', + 'MARC_BATCH_EDIT' : '/opac/extras/merge_template/', 'AUDIO_good' : '/xul/server/skin/media/audio/bonus.wav', 'AUDIO_bad' : '/xul/server/skin/media/audio/question.wav', diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 545ffbe3d8..c882dcc1ac 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -1025,6 +1025,18 @@ main.menu.prototype = { } ], + 'cmd_marc_batch_edit' : [ + ['oncommand'], + function() { + obj.set_tab( + obj.url_prefix(urls.MARC_BATCH_EDIT),{ + 'tab_name' : offlineStrings.getString('menu.cmd_marc_batch_edit.tab') + }, + {} + ); + } + ], + /* Admin menu */ 'cmd_change_session' : [ ['oncommand'], diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul index 7976274be4..ec4d000e29 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul @@ -48,6 +48,7 @@ + @@ -271,6 +272,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties index 1b10849cb0..8c2d949582 100644 --- a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties +++ b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties @@ -115,6 +115,7 @@ menu.cmd_browse_holds_shelf.tab=Holds Shelf menu.cmd_browse_hold_pull_list.tab=On Shelf Pull List menu.cmd_local_admin.tab=Local Administration menu.cmd_open_vandelay.tab=MARC Import/Export +menu.cmd_marc_batch_edit.tab=MARC Batch Edit menu.cmd_open_conify.tab=Server Settings menu.cmd_retrieve_last_patron.session.error=No patron visited yet this session. menu.cmd_retrieve_last_record.session.error=No record visited yet this session. 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 51d5bcb1af..07a0aade5e 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -342,6 +342,7 @@ cat.record_buckets.prototype = { obj.controller.view.cmd_delete_records.setAttribute('disabled','true'); obj.controller.view.cmd_sel_opac.setAttribute('disabled','true'); obj.controller.view.cmd_transfer_title_holds.setAttribute('disabled','true'); + obj.controller.view.cmd_marc_batch_edit.setAttribute('disabled','true'); obj.controller.view.record_buckets_list_actions.disabled = true; var bucket = obj.network.simple_request( 'BUCKET_FLESH', @@ -363,6 +364,7 @@ cat.record_buckets.prototype = { obj.controller.view.cmd_delete_records.setAttribute('disabled','false'); obj.controller.view.cmd_sel_opac.setAttribute('disabled','false'); obj.controller.view.cmd_transfer_title_holds.setAttribute('disabled','false'); + obj.controller.view.cmd_marc_batch_edit.setAttribute('disabled','false'); obj.controller.view.record_buckets_list_actions.disabled = false; var x = document.getElementById('info_box'); @@ -553,6 +555,7 @@ cat.record_buckets.prototype = { obj.controller.view.cmd_delete_records.setAttribute('disabled','true'); obj.controller.view.cmd_sel_opac.setAttribute('disabled','true'); obj.controller.view.cmd_transfer_title_holds.setAttribute('disabled','true'); + obj.controller.view.cmd_marc_batch_edit.setAttribute('disabled','true'); obj.controller.view.record_buckets_list_actions.disabled = true; obj.controller.render('record_buckets_menulist_placeholder'); setTimeout( @@ -798,6 +801,25 @@ cat.record_buckets.prototype = { } } ], + 'cmd_marc_batch_edit' : [ + ['command'], + function() { + try { + var bucket_id = obj.controller.view.bucket_menulist.value; + if (!bucket_id) return; + obj.list2.select_all(); + xulG.new_tab( + urls.MARC_BATCH_EDIT + '?containerid='+bucket_id+'&recordSource=b', + { + 'tab_name' : $('offlineStrings').getString('menu.cmd_marc_batch_edit.tab') + }, + {} + ); + } catch(E) { + alert('Error in record_buckets.js, cmd_marc_batch_edit: ' + E); + } + } + ], 'cmd_transfer_title_holds' : [ ['command'], function() { diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul b/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul index 3f564f663d..2ea4cdbc3e 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul @@ -44,6 +44,10 @@ +