[open-ils-commits] r11725 - in trunk/Open-ILS/xul/staff_client/server: locale/en-US patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 2 13:18:16 EST 2009
Author: phasefx
Date: 2009-01-02 13:18:13 -0500 (Fri, 02 Jan 2009)
New Revision: 11725
Modified:
trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
trunk/Open-ILS/xul/staff_client/server/patron/util.js
Log:
tweak the columns for the main patron standing penalty applicator/remover
Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties 2009-01-02 18:17:01 UTC (rev 11724)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties 2009-01-02 18:18:13 UTC (rev 11725)
@@ -78,9 +78,13 @@
staff.csp_block_renew_no=
staff.csp_block_hold_yes=Yes
staff.csp_block_hold_no=
-staff.csp_applied_label=Applied to Patron?
-staff.csp_applied_yes=Applied
-staff.csp_applied_no=
+staff.ausp_applied_label=Applied to Patron?
+staff.ausp_applied_yes=Applied
+staff.ausp_applied_no=
+staff.ausp_staff_label=Applied By
+staff.ausp_set_date_label=Applied On
+staff.ausp_note_label=Note
+staff.ausp_org_unit_label=Library
staff.mbts_id_label=Bill #
staff.mbts_xact_start_label=Start
staff.mbts_xact_finish_label=Finish
Modified: trunk/Open-ILS/xul/staff_client/server/patron/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/util.js 2009-01-02 18:17:01 UTC (rev 11724)
+++ trunk/Open-ILS/xul/staff_client/server/patron/util.js 2009-01-02 18:18:13 UTC (rev 11725)
@@ -284,29 +284,52 @@
{
'persist' : 'hidden width ordinal', 'id' : 'csp_block_circ', 'label' : commonStrings.getString('staff.csp_block_circ_label'), 'flex' : 1,
'primary' : false, 'hidden' : true, 'render' : function(my) {
- return String( my.csp.block_list() ).match('circ') ? commonStrings.getString('staff.csp_block_circ_yes') : commonStrings.getString('staff.csp_block_circ_no');
+ return String( my.csp.block_list() ).match('CIRC') ? commonStrings.getString('staff.csp_block_circ_yes') : commonStrings.getString('staff.csp_block_circ_no');
}
},
{
'persist' : 'hidden width ordinal', 'id' : 'csp_block_renew', 'label' : commonStrings.getString('staff.csp_block_renew_label'), 'flex' : 1,
'primary' : false, 'hidden' : true, 'render' : function(my) {
- return String( my.csp.block_list() ).match('renew') ? commonStrings.getString('staff.csp_block_renew_yes') : commonStrings.getString('staff.csp_block_renew_no');
+ return String( my.csp.block_list() ).match('RENEW') ? commonStrings.getString('staff.csp_block_renew_yes') : commonStrings.getString('staff.csp_block_renew_no');
}
},
{
'persist' : 'hidden width ordinal', 'id' : 'csp_block_hold', 'label' : commonStrings.getString('staff.csp_block_hold_label'), 'flex' : 1,
'primary' : false, 'hidden' : true, 'render' : function(my) {
- return String( my.csp.block_list() ).match('hold') ? commonStrings.getString('staff.csp_block_hold_yes') : commonStrings.getString('staff.csp_block_hold_no');
+ return String( my.csp.block_list() ).match('HOLD') ? commonStrings.getString('staff.csp_block_hold_yes') : commonStrings.getString('staff.csp_block_hold_no');
}
},
{
- 'persist' : 'hidden width ordinal', 'id' : 'csp_applied', 'label' : commonStrings.getString('staff.csp_applied_label'), 'flex' : 1,
+ 'persist' : 'hidden width ordinal', 'id' : 'ausp_applied', 'label' : commonStrings.getString('staff.ausp_applied_label'), 'flex' : 1,
'primary' : false, 'hidden' : false, 'render' : function(my) {
- return util.functional.find_id_object_in_list( my.au.standing_penalties(), my.csp.id() )
- ? commonStrings.getString('staff.csp_applied_yes') : commonStrings.getString('staff.csp_applied_no');
+ return my.ausp ? commonStrings.getString('staff.ausp_applied_yes') : commonStrings.getString('staff.ausp_applied_no');
}
- }
+ },
+ {
+ 'persist' : 'hidden width ordinal', 'id' : 'ausp_staff', 'label' : commonStrings.getString('staff.ausp_staff_label'), 'flex' : 1,
+ 'primary' : false, 'hidden' : true, 'render' : function(my) {
+ return my.ausp ? my.ausp.staff() : '';
+ }
+ },
+ {
+ 'persist' : 'hidden width ordinal', 'id' : 'ausp_set_date', 'label' : commonStrings.getString('staff.ausp_set_date_label'), 'flex' : 1,
+ 'primary' : false, 'hidden' : true, 'render' : function(my) {
+ return my.ausp ? my.ausp.set_date() : '';
+ }
+ },
+ {
+ 'persist' : 'hidden width ordinal', 'id' : 'ausp_note', 'label' : commonStrings.getString('staff.ausp_note_label'), 'flex' : 1,
+ 'primary' : false, 'hidden' : true, 'render' : function(my) {
+ return my.ausp ? my.ausp.note() : '';
+ }
+ },
+ {
+ 'persist' : 'hidden width ordinal', 'id' : 'ausp_org_unit', 'label' : commonStrings.getString('staff.ausp_org_unit_label'), 'flex' : 1,
+ 'primary' : false, 'hidden' : true, 'render' : function(my) {
+ return my.ausp ? data.hash.aou[ my.ausp.org_unit() ].shortname() : '';
+ }
+ }
];
for (var i = 0; i < c.length; i++) {
if (modify[ c[i].id ]) {
More information about the open-ils-commits
mailing list