[open-ils-commits] r18294 - in trunk/Open-ILS: web/opac/locale/en-US xul/staff_client/chrome/content/main xul/staff_client/chrome/locale/en-US xul/staff_client/server/cat (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 12 17:32:27 EDT 2010
Author: phasefx
Date: 2010-10-12 17:32:21 -0400 (Tue, 12 Oct 2010)
New Revision: 18294
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
Log:
entry points for miker_'s batch marc editor
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-10-12 21:31:33 UTC (rev 18293)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-10-12 21:32:21 UTC (rev 18294)
@@ -842,6 +842,8 @@
<!ENTITY staff.main.menu.cat.edit_user_buckets.label "Manage User Buckets">
<!ENTITY staff.main.menu.cat.key "a">
<!ENTITY staff.main.menu.cat.label "Cataloging">
+<!ENTITY staff.main.menu.cat.marc_batch_edit.label "MARC Batch Edit">
+<!ENTITY staff.main.menu.cat.marc_batch_edit.accesskey "E">
<!ENTITY staff.main.menu.cat.retrieve_last_record.accesskey "L">
<!ENTITY staff.main.menu.cat.retrieve_last_record.label "Retrieve Last Record">
<!ENTITY staff.main.menu.cat.search_tcn.accesskey "T">
@@ -2654,7 +2656,9 @@
<!ENTITY staff.cat.record_buckets_overlay.box.label "Batch:">
<!ENTITY staff.cat.record_buckets_overlay.sel_opac.label "Show All in Catalog">
<!ENTITY staff.cat.record_buckets_overlay.transfer_title_holds.label "Transfer Title Holds">
-<!ENTITY staff.cat.record_buckets_overlay.transfer_title_holds.accesskey "Transfer Title Holds">
+<!ENTITY staff.cat.record_buckets_overlay.transfer_title_holds.accesskey "T">
+<!ENTITY staff.cat.record_buckets_overlay.marc_batch_edit.label "MARC Batch Edit">
+<!ENTITY staff.cat.record_buckets_overlay.marc_batch_edit.accesskey "">
<!ENTITY staff.cat.record_buckets_overlay.del_records.label "Delete All Records">
<!ENTITY staff.cat.record_buckets_overlay.merge_records.label "Merge All Records">
<!ENTITY staff.cat.record_buckets_overlay.export_records.label "Export All Records">
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2010-10-12 21:31:33 UTC (rev 18293)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2010-10-12 21:32:21 UTC (rev 18294)
@@ -353,6 +353,7 @@
'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',
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-10-12 21:31:33 UTC (rev 18293)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-10-12 21:32:21 UTC (rev 18294)
@@ -1025,6 +1025,18 @@
}
],
+ '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'],
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2010-10-12 21:31:33 UTC (rev 18293)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2010-10-12 21:32:21 UTC (rev 18294)
@@ -48,6 +48,7 @@
<command id="cmd_print_list_template_edit" />
<command id="cmd_z39_50_import" />
<command id="cmd_create_new_marc_book" />
+ <command id="cmd_marc_batch_edit" label="&staff.main.menu.cat.marc_batch_edit.label;" accesskey="&staff.main.menu.cat.marc_batch_edit.accesskey;"/>
<command id="cmd_replace_barcode" />
<command id="cmd_reprint" />
<command id="cmd_retrieve_last_patron" />
@@ -271,6 +272,7 @@
<menuitem label="&staff.main.menu.cat.create_marc.label;" accesskey="&staff.main.menu.cat.create_marc.accesskey;" command="cmd_create_marc"/>
<menuitem label="&staff.main.menu.cat.z39_50_import.label;" accesskey="&staff.main.menu.cat.z39_50_import.accesskey;" command="cmd_z39_50_import"/>
<menuitem label="&staff.main.menu.cat.vandelay.label;" command="cmd_open_vandelay"/>
+ <menuitem command="cmd_marc_batch_edit"/>
<menuseparator />
<menuitem label="&staff.main.menu.replace_barcode.label;" command="cmd_replace_barcode"/>
<menuitem label="&staff.main.menu.cat.retrieve_last_record.label;" accesskey="&staff.main.menu.cat.retrieve_last_record.accesskey;" command="cmd_retrieve_last_record" key="retrieve_last_record_key"/>
Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2010-10-12 21:31:33 UTC (rev 18293)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2010-10-12 21:32:21 UTC (rev 18294)
@@ -115,6 +115,7 @@
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.
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2010-10-12 21:31:33 UTC (rev 18293)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2010-10-12 21:32:21 UTC (rev 18294)
@@ -342,6 +342,7 @@
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 @@
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 @@
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 @@
}
}
],
+ '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() {
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 2010-10-12 21:31:33 UTC (rev 18293)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul 2010-10-12 21:32:21 UTC (rev 18294)
@@ -44,6 +44,10 @@
<command id="cmd_add_sel_pending_to_record_bucket" />
<command id="cmd_merge_records" disabled="true" />
+ <command id="cmd_marc_batch_edit"
+ label="&staff.cat.record_buckets_overlay.marc_batch_edit.label;"
+ accesskey="&staff.cat.record_buckets_overlay.marc_batch_edit.accesskey;"
+ disabled="true" />
<command id="cmd_transfer_title_holds"
label="&staff.cat.record_buckets_overlay.transfer_title_holds.label;"
accesskey="&staff.cat.record_buckets_overlay.transfer_title_holds.accesskey;"
@@ -216,6 +220,7 @@
<button command="cmd_transfer_title_holds" />
<button command="cmd_delete_records" label="&staff.cat.record_buckets_overlay.del_records.label;"/>
<button command="cmd_merge_records" label="&staff.cat.record_buckets_overlay.merge_records.label;"/>
+ <button command="cmd_marc_batch_edit" />
<button id="record_buckets_export_records" label="&staff.cat.record_buckets_overlay.export_records.label;" type="menu" allowevents="true" disabled="true">
<menupopup id="record_buckets_export_record_types" allowevents="true">
<menuitem command="cmd_export_records_usmarc" label="&staff.cat.record_buckets_overlay.menuitem.export_usmarc.label;"/>
More information about the open-ils-commits
mailing list