[open-ils-commits] r15343 - in branches/rel_1_6/Open-ILS/xul/staff_client/chrome: content/cat locale/en-US (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 19 17:06:32 EST 2010
Author: phasefx
Date: 2010-01-19 17:06:26 -0500 (Tue, 19 Jan 2010)
New Revision: 15343
Modified:
branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul
branches/rel_1_6/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Log:
backport changeset 15290: Add Volumes directly off Record Summary page
Modified: branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.js 2010-01-19 20:38:17 UTC (rev 15342)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.js 2010-01-19 22:06:26 UTC (rev 15343)
@@ -436,4 +436,39 @@
}
}
+function add_volumes() {
+ try {
+ var edit = 0;
+ try {
+ edit = g.network.request(
+ api.PERM_MULTI_ORG_CHECK.app,
+ api.PERM_MULTI_ORG_CHECK.method,
+ [
+ ses(),
+ ses('staff_id'),
+ [ ses('ws_ou') ],
+ [ 'CREATE_VOLUME', 'CREATE_COPY' ]
+ ]
+ ).length == 0 ? 1 : 0;
+ } catch(E) {
+ g.error.sdump('D_ERROR','batch permission check: ' + E);
+ }
+ if (edit==0) {
+ alert(document.getElementById('offlineStrings').getString('staff.circ.copy_status.add_volumes.perm_failure'));
+ return; // no read-only view for this interface
+ }
+
+ var title = document.getElementById('offlineStrings').getFormattedString('staff.circ.copy_status.add_volumes.title', [docid]);
+
+ JSAN.use('util.window'); var win = new util.window();
+ var w = win.open(
+ window.xulG.url_prefix(urls.XUL_VOLUME_COPY_CREATOR),
+ title,
+ 'chrome,resizable',
+ { 'doc_id' : docid, 'ou_ids' : [ ses('ws_ou') ] }
+ );
+ } catch(E) {
+ alert('Error in chrome/content/cat/opac.js, add_volumes(): ' + E);
+ }
+}
Modified: branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul 2010-01-19 20:38:17 UTC (rev 15342)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul 2010-01-19 22:06:26 UTC (rev 15343)
@@ -55,6 +55,8 @@
<menuitem label="&staff.cat.opac.delete_record.label;" accesskey="&staff.cat.opac.delete_record.accesskey;" id="delete_record" oncommand="delete_record();"/>
<menuitem label="&staff.cat.opac.undelete_record.label;" accesskey="&staff.cat.opac.undelete_record.accesskey;" id="undelete_record" oncommand="undelete_record();"/>
<menuseparator/>
+ <menuitem label="&staff.cat.copy_browser.holdings_maintenance.cmd_add_volumes.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_add_volumes.accesskey;" id="add_volumes" oncommand="add_volumes();"/>
+ <menuseparator/>
<menuitem label="&staff.cat.opac.bib_in_new_tab.label;" id="bib_in_new_tab" oncommand="bib_in_new_tab();"/>
<menuitem label="&staff.cat.opac.remove_me.label;" id="remove_me" oncommand="remove_me();"/>
<menuseparator/>
Modified: branches/rel_1_6/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2010-01-19 20:38:17 UTC (rev 15342)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2010-01-19 22:06:26 UTC (rev 15343)
@@ -241,3 +241,5 @@
staff.cat.util.copy_editor.batch_view=Batch View
staff.cat.util.copy_editor.edit=Edit
staff.cat.util.copy_editor.view=View
+staff.circ.copy_status.add_volumes.perm_failure=You do not have permission to add volumes to the workstation library.
+staff.circ.copy_status.add_volumes.title=Add Volume/Item for Record # %1$s
More information about the open-ils-commits
mailing list