add option to copy editor for Remove Circulate as Type
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Nov 2008 19:13:11 +0000 (19:13 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Nov 2008 19:13:11 +0000 (19:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11242 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_editor.js
Open-ILS/xul/staff_client/server/locale/en-US/cat.properties

index 8b1bbcf..4a70bad 100644 (file)
@@ -859,7 +859,7 @@ g.panes_and_field_names = {
                $('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);',
                } 
        ],
        [
index 95c87aa..bc76086 100644 (file)
@@ -143,6 +143,7 @@ staff.cat.copy_editor.add_stat_cat.error=Error adding statistical category to di
 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