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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Nov 19 02:14:05 EST 2009


Author: phasefx
Date: 2009-11-19 02:14:01 -0500 (Thu, 19 Nov 2009)
New Revision: 14969

Modified:
   trunk/Open-ILS/xul/staff_client/server/circ/util.js
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
   trunk/Open-ILS/xul/staff_client/server/patron/util.js
Log:
localize dates in various list columns using dojo (hey, no more .substring(0,10)!) and remove newly redundant columns (so for example, instead of having both a 
'Checkout Date' and a 'Checkout Timestamp', we just have 'Checkout Date', using a dojo localized time).  list.fm_columns does this automatically, but we're not 
ready to replace all lists with that yet.  Also tweaked some ambiguous labels.



Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js	2009-11-19 07:08:08 UTC (rev 14968)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js	2009-11-19 07:14:01 UTC (rev 14969)
@@ -867,7 +867,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.acp.status_changed_time(); },
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.acp.status_changed_time(), '%{localized}' ); },
             'persist' : 'hidden width ordinal'
         },
         {
@@ -889,38 +889,6 @@
         {
             'persist' : 'hidden width ordinal',
             'fm_class' : 'circ',
-            'id' : 'xact_start_full',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.checkout_timestamp'),
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) {
-                if (my.circ) {
-                    return my.circ.xact_start();
-                } else {
-                    return  "";
-                }
-            }
-        },
-        {
-            'persist' : 'hidden width ordinal',
-            'fm_class' : 'circ',
-            'id' : 'checkin_time_full',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.checkin_timestamp'),
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) {
-                if (my.circ) {
-                    return my.circ.checkin_time();
-                } else {
-                    return "";
-                }
-            }
-        },
-        {
-            'persist' : 'hidden width ordinal',
-            'fm_class' : 'circ',
             'id' : 'xact_start',
             'label' : document.getElementById('circStrings').getString('staff.circ.utils.xact_start'),
             'flex' : 1,
@@ -928,7 +896,7 @@
             'hidden' : true,
             'editable' : false, 'render' : function(my) {
                 if (my.circ) {
-                    return my.circ.xact_start().substr(0,10);
+                    return util.date.formatted_date( my.circ.xact_start(), '%{localized}' );
                 } else {
                     return "";
                 }
@@ -944,7 +912,7 @@
             'hidden' : true,
             'editable' : false, 'render' : function(my) {
                 if (my.circ) {
-                    return my.circ.checkin_time().substr(0,10);
+                    return util.date.formatted_date( my.circ.checkin_time(), '%{localized}' );
                 } else {
                     return "";
                 }
@@ -958,7 +926,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.circ ? my.circ.xact_finish() : ""; },
+            'editable' : false, 'render' : function(my) { return my.circ ? util.date.formatted_date( my.circ.xact_finish(), '%{localized}' ) : ""; },
         },
         {
             'persist' : 'hidden width ordinal',
@@ -970,7 +938,7 @@
             'hidden' : true,
             'editable' : false, 'render' : function(my) {
                 if (my.circ) {
-                    return my.circ.due_date().substr(0,10);
+                    return util.date.formatted_date( my.circ.due_date(), '%{localized}' );
                 } else {
                     return "";
                 }
@@ -978,29 +946,13 @@
         },
         {
             'persist' : 'hidden width ordinal',
-            'fm_class' : 'circ',
-            'id' : 'due_time',
-            'label' : document.getElementById('commonStrings').getString('staff.circ_label_due_time'),
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) {
-                if (my.circ) {
-                    return my.circ.due_date().substr(11,8);
-                } else {
-                    return "";
-                }
-            }
-        },
-        {
-            'persist' : 'hidden width ordinal',
             'fm_class' : 'acp',
             'id' : 'create_date',
             'label' : document.getElementById('circStrings').getString('staff.circ.utils.create_date'),
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.acp.create_date().substr(0,10); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.acp.create_date(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1010,7 +962,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.acp.edit_date().substr(0,10); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.acp.edit_date(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1135,7 +1087,7 @@
             'hidden' : true,
             'editable' : false, 'render' : function(my) {
                 if (my.circ) {
-                    return my.circ.stop_fines_time();
+                    return util.date.formatted_date( my.circ.stop_fines_time(), '%{localized}' );
                 } else {
                     return "";
                 }
@@ -1233,20 +1185,10 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.circ ? my.circ.checkin_scan_time().substr(0,10) : ""; },
+            'editable' : false, 'render' : function(my) { return my.circ ? util.date.formatted_date( my.circ.checkin_scan_time(), '%{localized}' ) : ""; },
         },
         {
             'persist' : 'hidden width ordinal',
-            'fm_class' : 'circ',
-            'id' : 'checkin_scan_timestamp',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.checkin_scan_timestamp'),
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.circ ? my.circ.checkin_scan_time() : ""; },
-        },
-        {
-            'persist' : 'hidden width ordinal',
             'fm_class' : 'bre',
             'id' : 'creator',
             'label' : document.getElementById('circStrings').getString('staff.circ.utils.creator'),
@@ -1269,21 +1211,21 @@
             'persist' : 'hidden width ordinal',
             'fm_class' : 'bre',
             'id' : 'create_date',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.create_date'),
+            'label' : document.getElementById('circStrings').getString('staff.circ.utils.bre.create_date'),
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.bre ? my.bre.create_date() : ''; }
+            'editable' : false, 'render' : function(my) { return my.bre ? util.date.formatted_date( my.bre.create_date(), '%{localized}' ) : ''; }
         },
         {
             'persist' : 'hidden width ordinal',
             'fm_class' : 'bre',
             'id' : 'edit_date',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.edit_date'),
+            'label' : document.getElementById('circStrings').getString('staff.circ.utils.bre.edit_date'),
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.bre ? my.bre.edit_date() : ''; }
+            'editable' : false, 'render' : function(my) { return my.bre ? util.date.formatted_date( my.bre.edit_date(), '%{localized}' ) : ''; }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1471,7 +1413,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : false,
-            'editable' : false, 'render' : function(my) { return my.atc.source_send_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.atc.source_send_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1495,7 +1437,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : false,
-            'editable' : false, 'render' : function(my) { return my.atc.dest_recv_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.atc.dest_recv_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1550,7 +1492,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.cancel_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.ahr.cancel_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1600,24 +1542,14 @@
                 }
             }
         },
-
         {
             'persist' : 'hidden width ordinal',
-            'id' : 'request_timestamp',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.request_timestamp'),
-            'flex' : 0,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.request_time().toString(); }
-        },
-        {
-            'persist' : 'hidden width ordinal',
             'id' : 'request_time',
             'label' : document.getElementById('circStrings').getString('staff.circ.utils.request_time'),
             'flex' : 0,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.request_time().toString().substr(0,10); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.ahr.request_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1626,7 +1558,7 @@
             'flex' : 0,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.shelf_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.ahr.shelf_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1635,27 +1567,10 @@
             'flex' : 0,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.shelf_expire_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.ahr.shelf_expire_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
-            'id' : 'available_timestamp',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.available_timestamp'),
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) {
-                if (my.ahr.transit() && my.ahr.transit().dest_recv_time()) {
-                    return my.ahr.transit().dest_recv_time().toString();
-                }
-                if (!my.ahr.transit() && my.ahr.capture_time()) {
-                    return my.ahr.capture_time().toString();
-                }
-                return "";
-            }
-        },
-        {
-            'persist' : 'hidden width ordinal',
             'id' : 'available_time',
             'label' : document.getElementById('circStrings').getString('staff.circ.utils.available_time'),
             'flex' : 1,
@@ -1663,31 +1578,22 @@
             'hidden' : false,
             'editable' : false, 'render' : function(my) {
                 if (my.ahr.transit() && my.ahr.transit().dest_recv_time()) {
-                    return my.ahr.transit().dest_recv_time().toString().substr(0,10);
+                    return util.date.formatted_date( my.ahr.transit().dest_recv_time(), '%{localized}' );
                 }
                 if (!my.ahr.transit() && my.ahr.capture_time()) {
-                    return my.ahr.capture_time().toString().substr(0,10);
+                    return util.date.formatted_date( my.ahr.capture_time(), '%{localized}' );
                 }
                 return "";
             }
         },
         {
             'persist' : 'hidden width ordinal',
-            'id' : 'capture_timestamp',
-            'label' : document.getElementById('circStrings').getString('staff.circ.utils.capture_timestamp'),
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.capture_time() ? my.ahr.capture_time().toString() : ""; }
-        },
-        {
-            'persist' : 'hidden width ordinal',
             'id' : 'capture_time',
             'label' : document.getElementById('circStrings').getString('staff.circ.utils.capture_time'),
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.capture_time() ? my.ahr.capture_time().toString().substr(0,10) : ""; }
+            'editable' : false, 'render' : function(my) { return my.ahr.capture_time() ? util.date.formatted_date( my.ahr.capture_time(), '%{localized}' ) : ""; }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1769,7 +1675,7 @@
                 if (my.ahr.thaw_date() == null) {
                     return document.getElementById('circStrings').getString('staff.circ.utils.thaw_date.none');
                 } else {
-                    return my.ahr.thaw_date().substr(0,10);
+                    return util.date.formatted_date( my.ahr.thaw_date(), '%{localized}' );
                 }
             }
         },
@@ -1846,21 +1752,12 @@
         },
         {
             'persist' : 'hidden width ordinal',
-            'id' : 'expire_time',
-            'label' : document.getElementById('commonStrings').getString('staff.ahr_expire_time_label'),
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.expire_time(); }
-        },
-        {
-            'persist' : 'hidden width ordinal',
             'id' : 'expire_date',
             'label' : document.getElementById('commonStrings').getString('staff.ahr_expire_date_label'),
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.expire_time() ? my.ahr.expire_time().toString().substr(0,10) : ''; }
+            'editable' : false, 'render' : function(my) { return my.ahr.expire_time() ? util.date.formatted_date( my.ahr.expire_time(), '%{localized}' ) : ''; }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1869,7 +1766,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.fulfillment_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.ahr.fulfillment_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -1905,7 +1802,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.prev_check_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.ahr.prev_check_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -2035,7 +1932,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.notify_time(); }
+            'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.ahr.notify_time(), '%{localized}' ); }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -2068,7 +1965,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.transit() ?  my.ahr.transit().source_send_time() : ""; }
+            'editable' : false, 'render' : function(my) { return my.ahr.transit() ?  util.date.formatted_date( my.ahr.transit().source_send_time(), '%{localized}' ) : ""; }
         },
         {
             'persist' : 'hidden width ordinal',
@@ -2086,7 +1983,7 @@
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
-            'editable' : false, 'render' : function(my) { return my.ahr.transit() ?  my.ahr.transit().dest_recv_time() : ""; }
+            'editable' : false, 'render' : function(my) { return my.ahr.transit() ?  util.date.formatted_date( my.ahr.transit().dest_recv_time(), '%{localized}' ) : ""; }
         },
         {
             'persist' : 'hidden width ordinal',

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-19 07:08:08 UTC (rev 14968)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties	2009-11-19 07:14:01 UTC (rev 14969)
@@ -245,16 +245,15 @@
 staff.circ.utils.checkout_lib=Checkout or Renew Library
 staff.circ.utils.checkout_workstation=Circ or Renewal Workstation
 staff.circ.utils.checkout_workstation_top_of_chain=Checkout Workstation
-staff.circ.utils.checkout_timestamp=Checkout Timestamp
-staff.circ.utils.checkin_timestamp=Checkin Timestamp
 staff.circ.utils.xact_start=Checkout Date
 staff.circ.utils.checkin_time=Checkin Date
 staff.circ.utils.xact_finish=Transaction Finished
-staff.circ.utils.checkin_scan_timestamp=Checkin Scan Timestamp
 staff.circ.utils.checkin_scan_time=Checkin Scan Date
 staff.circ.utils.checkin_workstation=Checkin Workstation
 staff.circ.utils.create_date=Date Created
 staff.circ.utils.edit_date=Date Last Edited 
+staff.circ.utils.bre.create_date=Date Record Created
+staff.circ.utils.bre.edit_date=Date Record Last Edited 
 staff.circ.utils.edition=Edition
 staff.circ.utils.isbn=ISBN
 staff.circ.utils.pubdate=Publication Date
@@ -282,14 +281,9 @@
 staff.circ.utils.transit_target_copy=Transit Copy ID
 staff.circ.utils.request_lib=Request Library (Full Name)
 staff.circ.utils.request_lib_shortname=Request Library
-staff.circ.utils.request_timestamp=Request Timestamp
 staff.circ.utils.request_time=Request Date
-# Time the hold became available
-staff.circ.utils.available_timestamp=Available On (Timestamp)
 # Date the hold became available
 staff.circ.utils.available_time=Available On
-# Time the hold was captured
-staff.circ.utils.capture_timestamp=Capture Timestamp
 # Date the hold was captured
 staff.circ.utils.capture_time=Capture Date
 # Date the hold was cancelled

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-11-19 07:08:08 UTC (rev 14968)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties	2009-11-19 07:14:01 UTC (rev 14969)
@@ -42,7 +42,6 @@
 staff.ahr_current_copy_label=Current Copy
 staff.ahr_current_copy_location_label=Current Copy Location
 staff.ahr_email_notify_label=Email Notify
-staff.ahr_expire_time_label=Expire Time
 staff.ahr_expire_date_label=Expire Date
 staff.ahr_fulfillment_time_label=Fulfillment Time
 staff.ahr_hold_type_label=Type

Modified: trunk/Open-ILS/xul/staff_client/server/patron/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/util.js	2009-11-19 07:08:08 UTC (rev 14968)
+++ trunk/Open-ILS/xul/staff_client/server/patron/util.js	2009-11-19 07:14:01 UTC (rev 14969)
@@ -55,7 +55,7 @@
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'last_billing_ts', 'label' : commonStrings.getString('staff.mbts_last_billing_timestamp_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mbts.last_billing_ts(), "" ); }
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mbts.last_billing_ts(), "%{localized}" ); }
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'last_payment_note', 'label' : commonStrings.getString('staff.mbts_last_payment_note_label'), 'flex' : 2,
@@ -67,15 +67,15 @@
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'last_payment_ts', 'label' : commonStrings.getString('staff.mbts_last_payment_timestamp_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mbts.last_payment_ts(), "" ); }
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mbts.last_payment_ts(), "%{localized}" ); }
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'xact_start', 'label' : commonStrings.getString('staff.mbts_xact_start_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.mbts.xact_start() ? my.mbts.xact_start().toString().substr(0,10) : ""; }
+            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.mbts.xact_start() ? util.date.formatted_date( my.mbts.xact_start(), "%{localized}" ) : ""; }
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'xact_finish', 'label' : commonStrings.getString('staff.mbts_xact_finish_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.mbts.xact_finish() ? my.mbts.xact_finish().toString().substr(0,10) : ""; }
+            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.mbts.xact_finish() ? util.date.formatted_date( my.mbts.xact_finish(), "%{localized}" ) : ""; }
         },
     ];
     for (var i = 0; i < c.length; i++) {
@@ -130,7 +130,7 @@
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'void_time', 'label' : commonStrings.getString('staff.mb_void_time_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return my.mb.void_time(); }
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mb.void_time(), "%{localized}" ); }
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'amount', 'label' : commonStrings.getString('staff.mb_amount_label'), 'flex' : 1,
@@ -143,7 +143,7 @@
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'billing_ts', 'label' : commonStrings.getString('staff.mb_billing_ts_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mb.billing_ts(), "" ); }
+            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mb.billing_ts(), "%{localized}" ); }
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'note', 'label' : commonStrings.getString('staff.mb_note_label'), 'flex' : 2,
@@ -208,7 +208,7 @@
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'mp_payment_ts', 'label' : commonStrings.getString('staff.mp_payment_timestamp_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mp.payment_ts(), "" ); }
+            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.mp.payment_ts(), "%{localized}" ); }
         },
         {
             'persist' : 'hidden width ordinal', 'id' : 'mp_note', 'label' : commonStrings.getString('staff.mp_note_label'), 'flex' : 2,
@@ -317,7 +317,7 @@
         {
             'persist' : 'hidden width ordinal', 'id' : 'ausp_set_date', 'label' : commonStrings.getString('staff.ausp_set_date_label'), 'flex' : 1,
             'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { 
-                return my.ausp ? my.ausp.set_date() : '';
+                return my.ausp ? util.date.formatted_date( my.ausp.set_date(), "%{localized}" ) : '';
             }
         },
         {
@@ -425,11 +425,11 @@
         },
         { 
             'persist' : 'hidden width ordinal', 'id' : 'create_date', 'label' : commonStrings.getString('staff.au_create_date_label'), 'flex' : 1, 
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return my.au.create_date(); }
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.au.create_date(), "%{localized}" ); }
         },
         { 
             'persist' : 'hidden width ordinal', 'id' : 'expire_date', 'label' : commonStrings.getString('staff.au_expire_date_label'), 'flex' : 1, 
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return my.au.expire_date().substr(0,10); }
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.au.expire_date(), "%{localized_date}" ); }
         },
         { 
             'persist' : 'hidden width ordinal', 'id' : 'home_ou', 'label' : commonStrings.getString('staff.au_home_library_label'), 'flex' : 1, 
@@ -466,7 +466,7 @@
         },
         { 
             'persist' : 'hidden width ordinal', 'id' : 'dob', 'label' : commonStrings.getString('staff.au_birth_date_label'), 'flex' : 1, 
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return my.au.dob().substr(0,10); }
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.au.dob(), "%{localized_date}" ); }
         },
         { 
             'persist' : 'hidden width ordinal', 'id' : 'ident_type', 'label' : commonStrings.getString('staff.au_ident_type_label'), 'flex' : 1, 



More information about the open-ils-commits mailing list