[open-ils-commits] r11242 - in trunk/Open-ILS/xul/staff_client/server: cat locale/en-US

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Nov 17 14:13:15 EST 2008


Author: phasefx
Date: 2008-11-17 14:13:11 -0500 (Mon, 17 Nov 2008)
New Revision: 11242

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
Log:
add option to copy editor for Remove Circulate as Type

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2008-11-17 15:06:20 UTC (rev 11241)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2008-11-17 19:13:11 UTC (rev 11242)
@@ -859,7 +859,7 @@
 		$('catStrings').getString('staff.cat.copy_editor.field.circulate_as_type.label'),
 		{ 	
 			render: 'fm.circ_as_type() == null ? $("catStrings").getString("staff.cat.copy_editor.field.unset_or_null") : g.data.hash.citm[ fm.circ_as_type() ].value()',
-			input: 'c = function(v){ g.apply("circ_as_type",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( util.functional.map_list( g.data.list.citm, function(n){return [ n.code() + " - " + n.value(), n.code()];} ).sort() ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+			input: 'c = function(v){ g.apply("circ_as_type",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( [ [ $("catStrings").getString("staff.cat.copy_editor.remove_circulate_as_type"), "<HACK:KLUDGE:NULL>" ] ].concat( util.functional.map_list( g.data.list.citm, function(n){return [ n.code() + " - " + n.value(), n.code()];} ).sort() ) ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
 		} 
 	],
 	[

Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties	2008-11-17 15:06:20 UTC (rev 11241)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties	2008-11-17 19:13:11 UTC (rev 11242)
@@ -143,6 +143,7 @@
 staff.cat.copy_editor.populate_stat_cat.error=Error populating statistical categories for display
 staff.cat.copy_editor.remove_stat_cat_entry=<Remove Stat Cat>
 staff.cat.copy_editor.remove_age_based_hold_protection=<Remove Protection>
+staff.cat.copy_editor.remove_circulate_as_type=<Remove Circulate as Type>
 staff.cat.copy_editor.field.unset_or_null=<Unset>
 staff.cat.copy_editor.field.owning_library.label=Owning Lib : Call Number
 staff.cat.copy_editor.field.creator.label=Creator



More information about the open-ils-commits mailing list