[open-ils-commits] r15683 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 3 15:25:48 EST 2010
Author: erickson
Date: 2010-03-03 15:25:43 -0500 (Wed, 03 Mar 2010)
New Revision: 15683
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
override the fund labels in copy edit interface autowidgets to show the fund year in addition to fund code
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-03-03 20:25:42 UTC (rev 15682)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-03-03 20:25:43 UTC (rev 15683)
@@ -22,6 +22,8 @@
const XUL_OPAC_WRAPPER = 'chrome://open_ils_staff_client/content/cat/opac.xul';
var li_exportable_attrs = ["issn", "isbn", "upc"];
+var fundLabelFormat = ['${0} (${1})', 'code', 'year'];
+
function nodeByName(name, context) {
return dojo.query('[name='+name+']', context)[0];
}
@@ -1049,6 +1051,7 @@
var widget = new openils.widget.AutoFieldWidget({
fmField : field,
fmClass : 'acqlid',
+ labelFormat : (field == 'fund') ? fundLabelFormat : null,
parentNode : dojo.query('[name='+field+']', row)[0],
orgLimitPerms : ['CREATE_PICKLIST'],
dijitArgs : {required:false},
@@ -1144,6 +1147,7 @@
var widget = new openils.widget.AutoFieldWidget({
fmObject : copy,
fmField : field,
+ labelFormat : (field == 'fund') ? fundLabelFormat : null,
fmClass : 'acqlid',
parentNode : dojo.query('[name='+field+']', row)[0],
orgLimitPerms : ['CREATE_PICKLIST', 'CREATE_PURCHASE_ORDER'],
More information about the open-ils-commits
mailing list