[open-ils-commits] r15043 - in trunk/Open-ILS/xul/staff_client/server: cat circ locale/en-US (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Nov 30 11:31:24 EST 2009


Author: phasefx
Date: 2009-11-30 11:31:21 -0500 (Mon, 30 Nov 2009)
New Revision: 15043

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
   trunk/Open-ILS/xul/staff_client/server/circ/util.js
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
Log:
"Floating" field for copies in copy editor and lists

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2009-11-30 15:32:34 UTC (rev 15042)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2009-11-30 16:31:21 UTC (rev 15043)
@@ -840,6 +840,13 @@
 
     ],
     [
+        $('catStrings').getString('staff.cat.copy_editor.field.floating.label'),
+        { 
+            render: 'fm.floating() == null ? $("catStrings").getString("staff.cat.copy_editor.field.unset_or_null") : ( get_bool( fm.floating() ) ? $("catStrings").getString("staff.cat.copy_editor.field.floating.yes_or_true") : $("catStrings").getString("staff.cat.copy_editor.field.floating.no_or_false") )',
+            input: 'c = function(v){ g.apply("floating",v); if (typeof post_c == "function") post_c(v); }; x = util.widgets.make_menulist( [ [ $("catStrings").getString("staff.cat.copy_editor.field.floating.yes_or_true"), get_db_true() ], [ $("catStrings").getString("staff.cat.copy_editor.field.floating.no_or_false"), get_db_false() ] ] ); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+        }
+    ],
+    [
         $('catStrings').getString('staff.cat.copy_editor.field.loan_duration.label'),
         { 
             render: 'switch(Number(fm.loan_duration())){ case 1: $("catStrings").getString("staff.cat.copy_editor.field.loan_duration.short"); break; case 2: $("catStrings").getString("staff.cat.copy_editor.field.loan_duration.normal"); break; case 3: $("catStrings").getString("staff.cat.copy_editor.field.loan_duration.extended"); break; }',

Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js	2009-11-30 15:32:34 UTC (rev 15042)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js	2009-11-30 16:31:21 UTC (rev 15043)
@@ -743,6 +743,23 @@
             'persist' : 'hidden width ordinal'
         },
         {
+            'id' : 'floating',
+            'fm_class' : 'acp',
+            'label' : document.getElementById('circStrings').getString('staff.circ.utils.floating'),
+            'flex' : 1,
+            'primary' : false,
+            'hidden' : true,
+            'editable' : false, 'render' : function(my) {
+                if (get_bool( my.acp.floating() )) {
+                    return document.getElementById('circStrings').getString('staff.circ.utils.yes');
+                } else {
+                    return document.getElementById('circStrings').getString('staff.circ.utils.no');
+                }
+            },
+            'persist' : 'hidden width ordinal'
+        },
+
+        {
             'id' : 'opac_visible',
             'fm_class' : 'acp',
             'label' : document.getElementById('circStrings').getString('staff.circ.utils.opac_visible'),

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	2009-11-30 15:32:34 UTC (rev 15042)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties	2009-11-30 16:31:21 UTC (rev 15043)
@@ -161,6 +161,9 @@
 staff.cat.copy_editor.field.holdable.label=Holdable?
 staff.cat.copy_editor.field.holdable.yes_or_true=Yes
 staff.cat.copy_editor.field.holdable.no_or_false=No
+staff.cat.copy_editor.field.floating.label=Floating?
+staff.cat.copy_editor.field.floating.yes_or_true=Yes
+staff.cat.copy_editor.field.floating.no_or_false=No
 staff.cat.copy_editor.field.age_based_hold_protection.label=Age-based Hold Protection
 staff.cat.copy_editor.field.loan_duration.label=Loan Duration
 staff.cat.copy_editor.field.loan_duration.short=Short

Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties	2009-11-30 15:32:34 UTC (rev 15042)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties	2009-11-30 16:31:21 UTC (rev 15043)
@@ -231,6 +231,7 @@
 staff.circ.utils.circulate=Circulate?
 staff.circ.utils.deleted=Deleted?
 staff.circ.utils.holdable=Holdable?
+staff.circ.utils.floating=Floating?
 staff.circ.utils.hold_note=Hold Note(s)
 staff.circ.utils.staff_hold=Staff Hold?
 staff.circ.utils.opac_visible=OPAC Visible?



More information about the open-ils-commits mailing list