[open-ils-commits] [GIT] Evergreen ILS branch master updated. cf693d572b0c44b666919d9244dbeacbf46d1e1a

Evergreen Git git at git.evergreen-ils.org
Thu Sep 8 15:56:44 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  cf693d572b0c44b666919d9244dbeacbf46d1e1a (commit)
       via  b5bdaab4e418a996182ba8210b91956605198e3a (commit)
       via  0b756cf2f413f0b68a0773860e3aff9ba6151e7e (commit)
       via  ac23a3355ff39dde2acf0c1c3f0be6e34053983d (commit)
       via  dde8db5c8aa7746def652e5285452f6a387ed4ed (commit)
       via  cc5f1528feac70bcd8eb26a8326f8499531952d6 (commit)
      from  642dae8cbd68410b80f518ac1683e64003735738 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cf693d572b0c44b666919d9244dbeacbf46d1e1a
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Thu Sep 8 15:55:42 2011 -0400

    Stamping for LP821404 au last_update_time
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index bc00d9b..eb0c6d0 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -86,7 +86,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0618', :eg_version); -- phasefx/tsbere
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0619', :eg_version); -- tsbere/phasefx
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql b/Open-ILS/src/sql/Pg/upgrade/0619.schema.au_last_update_time.sql
similarity index 83%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
rename to Open-ILS/src/sql/Pg/upgrade/0619.schema.au_last_update_time.sql
index 739a6c7..d06d552 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0619.schema.au_last_update_time.sql
@@ -1,8 +1,8 @@
--- Evergreen DB patch XXXX.schema.au_last_update_time.sql
+-- Evergreen DB patch 0619.schema.au_last_update_time.sql
 BEGIN;
 
 -- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('0619', :eg_version);
 
 -- Add new column last_update_time to actor.usr, with trigger to maintain it
 -- Add corresponding new column to auditor.actor_usr_history

commit b5bdaab4e418a996182ba8210b91956605198e3a
Author: Michael Peters <mrpeters at library.in.gov>
Date:   Fri Aug 5 10:30:39 2011 -0400

    Also add "Last Update" to the patron summary
    
    Signed-off-by: Michael Peters <mrpeters at library.in.gov>
    
    Typo in row id value
    
    Signed-off-by: Michael Peters <mrpeters at library.in.gov>
    
    Need to use obj.patron.last_update_date not obj.patron.update_date
    
    Signed-off-by: Michael Peters <mrpeters at library.in.gov>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
index 003af03..d4996b7 100644
--- a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
+++ b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
@@ -349,6 +349,7 @@ staff.patron.summary.patron_bill.money=$ %1$s
 staff.patron.summary.retrieve.no_barcode=summary: No barcode or ID
 staff.patron.summary.patron_net_access=Internet
 staff.patron.summary.expires_on=Expires on
+staff.patron.summary.updated_on=Last updated on
 staff.patron.summary.standing_penalty.remove=Remove
 staff.patron.summary.standing_penalty.none=No Blocks/Penalties
 staff.patron.summary.group_list.column.family_name.label=Family Name
diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js
index 5eab31e..03f9e44 100644
--- a/Open-ILS/xul/staff_client/server/patron/summary.js
+++ b/Open-ILS/xul/staff_client/server/patron/summary.js
@@ -545,6 +545,20 @@ patron.summary.prototype = {
                             };
                         }
                     ],
+                    'patron_date_of_last_update' : [
+                        ['render'],
+                        function(e) {
+                            return function() {
+                                util.widgets.set_text(e,
+                                    patronStrings.getString('staff.patron.summary.updated_on') + ' ' + (
+                                        obj.patron.last_update_time() ?
+                                        util.date.formatted_date( obj.patron.last_update_time(), '%{localized_date}' ) :
+                                        patronStrings.getString('staff.patron.field.unset')
+                                    )
+                                );
+                            };
+                        }
+                    ],
                     'patron_hold_alias' : [
                         ['render'],
                         function(e) {
diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul
index a0d7deb..f341d42 100644
--- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul
+++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul
@@ -47,6 +47,9 @@
         <row id="pdsgr5aa">
             <description id="patron_date_of_exp" class="copyable expire_date value"/>
         </row>
+        <row id="pdsgr5aaa">
+            <description id="patron_date_of_last_update" class="copyable last_update_time value"/>
+        </row>
     </rows></grid>
     <grid id="PatronSummaryStatus_grid" flex="1"/>
 

commit 0b756cf2f413f0b68a0773860e3aff9ba6151e7e
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Thu Sep 8 01:56:49 2011 -0400

    fire last_update_time trigger on user insert in addition to update
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql
index 7068baf..4208cd0 100644
--- a/Open-ILS/src/sql/Pg/005.schema.actors.sql
+++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql
@@ -126,7 +126,7 @@ END;
 $$ LANGUAGE plpgsql;
 
 CREATE TRIGGER au_update_trig
-	BEFORE UPDATE ON actor.usr
+	BEFORE INSERT OR UPDATE ON actor.usr
 	FOR EACH ROW EXECUTE PROCEDURE actor.au_updated();
 
 CREATE TRIGGER actor_crypt_pw_update_trigger
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
index f53b347..739a6c7 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
@@ -22,7 +22,7 @@ END;
 $$ LANGUAGE plpgsql;
 
 CREATE TRIGGER au_update_trig
-	BEFORE UPDATE ON actor.usr
+	BEFORE INSERT OR UPDATE ON actor.usr
 	FOR EACH ROW EXECUTE PROCEDURE actor.au_updated();
 
 COMMIT;

commit ac23a3355ff39dde2acf0c1c3f0be6e34053983d
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Thu Sep 8 01:54:11 2011 -0400

    change column name from last_update_date to last_update_time
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml
index 15e1584..7900e7d 100644
--- a/Open-ILS/examples/fm_IDL.xml
+++ b/Open-ILS/examples/fm_IDL.xml
@@ -2593,7 +2593,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 			<field reporter:label="OPAC/Staff Client User Name" name="usrname"  reporter:datatype="text"/>
 			<field reporter:label="OPAC/Staff Client Holds Alias" name="alias"  reporter:datatype="text"/>
 			<field reporter:label="Juvenile" name="juvenile"  reporter:datatype="bool"/>
-			<field reporter:label="Record Last Update Date" name="last_update_date" reporter:datatype="timestamp"/>
+			<field reporter:label="Record Last Update Time" name="last_update_time" reporter:datatype="timestamp"/>
 			<field reporter:label="Additional Permission Groups" name="groups" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
 			<field reporter:label="User Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql
index f9e8c3d..7068baf 100644
--- a/Open-ILS/src/sql/Pg/005.schema.actors.sql
+++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql
@@ -64,7 +64,7 @@ CREATE TABLE actor.usr (
 	create_date		TIMESTAMP WITH TIME ZONE	NOT NULL DEFAULT now(),
 	expire_date		TIMESTAMP WITH TIME ZONE	NOT NULL DEFAULT (now() + '3 years'::INTERVAL),
 	claims_never_checked_out_count  INT         NOT NULL DEFAULT 0,
-    last_update_date    TIMESTAMP WITH TIME ZONE
+    last_update_time    TIMESTAMP WITH TIME ZONE
 );
 COMMENT ON TABLE actor.usr IS $$
 User objects
@@ -120,7 +120,7 @@ $$ LANGUAGE PLPGSQL;
 CREATE OR REPLACE FUNCTION actor.au_updated()
 RETURNS TRIGGER AS $$
 BEGIN
-    NEW.last_update_date := now();
+    NEW.last_update_time := now();
 	RETURN NEW;
 END;
 $$ LANGUAGE plpgsql;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
index 3b79291..f53b347 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
@@ -1,22 +1,22 @@
--- Evergreen DB patch XXXX.schema.au_last_update_date.sql
+-- Evergreen DB patch XXXX.schema.au_last_update_time.sql
 BEGIN;
 
 -- check whether patch can be applied
 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
 
--- Add new column last_update_date to actor.usr, with trigger to maintain it
+-- Add new column last_update_time to actor.usr, with trigger to maintain it
 -- Add corresponding new column to auditor.actor_usr_history
 
 ALTER TABLE actor.usr
-	ADD COLUMN last_update_date TIMESTAMPTZ;
+	ADD COLUMN last_update_time TIMESTAMPTZ;
 
 ALTER TABLE auditor.actor_usr_history
-	ADD COLUMN last_update_date TIMESTAMPTZ;
+	ADD COLUMN last_update_time TIMESTAMPTZ;
 
 CREATE OR REPLACE FUNCTION actor.au_updated()
 RETURNS TRIGGER AS $$
 BEGIN
-    NEW.last_update_date := now();
+    NEW.last_update_time := now();
 	RETURN NEW;
 END;
 $$ LANGUAGE plpgsql;
diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
index fd84c89..3968a6f 100644
--- a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
+++ b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
@@ -140,7 +140,7 @@ staff.au_alert_message_label=Alert
 staff.au_claims_returned_count_label=Returns Claimed
 staff.au_create_date_label=Created On
 staff.au_expire_date_label=Expires On
-staff.au_last_update_date_label=Updated On
+staff.au_last_update_time_label=Updated On
 staff.au_home_library_label=Home Library
 staff.au_home_library_fullname_label=Home Library (Full Name)
 staff.au_credit_forward_balance_label=Credit
diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
index e21fee1..003af03 100644
--- a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
+++ b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
@@ -110,7 +110,7 @@ staff.patron.display.init.network_request.error_showing_alert=Error showing patr
 staff.patron.display.render_search_form.patron_search=Patron Search
 staff.patron.display.tab_name=Patron:
 staff.patron.display.no_alerts_or_messages=No Alerts, Blocks, or Messages
-# Field 1 = actor.usr.id, Field 2 = actor.usr.create_date, Field 3 = actor.usr.last_update_date
+# Field 1 = actor.usr.id, Field 2 = actor.usr.create_date, Field 3 = actor.usr.last_update_time
 staff.patron.display.db_data=Database ID: %1$s Create Date: %2$s Last Updated: %3$s
 staff.patron.hold_notices.tooltiptext=ID: %1$s Hold ID: %2$s Notifying Staff ID: %3$s
 staff.patron.hold_notices.new_notification_record=New Notification Record
diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js
index bc84ae6..29ad28d 100644
--- a/Open-ILS/xul/staff_client/server/patron/display.js
+++ b/Open-ILS/xul/staff_client/server/patron/display.js
@@ -515,8 +515,8 @@ patron.display.prototype = {
                                     [
                                         obj.patron.id(),
                                         obj.patron.create_date(),
-                                        obj.patron.last_update_date()
-                                            ? obj.patron.last_update_date()
+                                        obj.patron.last_update_time()
+                                            ? obj.patron.last_update_time()
                                             : ''
                                     ]
                                 );
diff --git a/Open-ILS/xul/staff_client/server/patron/util.js b/Open-ILS/xul/staff_client/server/patron/util.js
index 82a6e28..78c2707 100644
--- a/Open-ILS/xul/staff_client/server/patron/util.js
+++ b/Open-ILS/xul/staff_client/server/patron/util.js
@@ -446,10 +446,10 @@ patron.util.columns = function(modify,params) {
             ,'sort_value' : function(my) { return util.date.db_date2Date( my.au.create_date() ).getTime(); }
         },
         { 
-            'persist' : 'hidden width ordinal', 'id' : 'au_last_update_date', 'label' : commonStrings.getString('staff.au_last_update_date_label'), 'flex' : 1, 
+            'persist' : 'hidden width ordinal', 'id' : 'au_last_update_time', 'label' : commonStrings.getString('staff.au_last_update_time_label'), 'flex' : 1, 
             'sort_type' : 'date',
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.au.last_update_date(), "%{localized}" ); }
-            ,'sort_value' : function(my) { return util.date.db_date2Date( my.au.last_update_date() ).getTime(); }
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.au.last_update_time(), "%{localized}" ); }
+            ,'sort_value' : function(my) { return util.date.db_date2Date( my.au.last_update_time() ).getTime(); }
         },
 
         { 

commit dde8db5c8aa7746def652e5285452f6a387ed4ed
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Fri Aug 5 06:58:07 2011 -0400

    upgrade script for actor.usr.last_update_date
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
new file mode 100644
index 0000000..3b79291
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.au_last_update_date.sql
@@ -0,0 +1,28 @@
+-- Evergreen DB patch XXXX.schema.au_last_update_date.sql
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+-- Add new column last_update_date to actor.usr, with trigger to maintain it
+-- Add corresponding new column to auditor.actor_usr_history
+
+ALTER TABLE actor.usr
+	ADD COLUMN last_update_date TIMESTAMPTZ;
+
+ALTER TABLE auditor.actor_usr_history
+	ADD COLUMN last_update_date TIMESTAMPTZ;
+
+CREATE OR REPLACE FUNCTION actor.au_updated()
+RETURNS TRIGGER AS $$
+BEGIN
+    NEW.last_update_date := now();
+	RETURN NEW;
+END;
+$$ LANGUAGE plpgsql;
+
+CREATE TRIGGER au_update_trig
+	BEFORE UPDATE ON actor.usr
+	FOR EACH ROW EXECUTE PROCEDURE actor.au_updated();
+
+COMMIT;

commit cc5f1528feac70bcd8eb26a8326f8499531952d6
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Fri Aug 5 06:56:36 2011 -0400

    Add an actor.usr.last_update_date column
    
    Though should we call it edit_date, like on asset.copy? :)  Also added trigger,
    and some display definitions in the staff client.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml
index 3204a80..15e1584 100644
--- a/Open-ILS/examples/fm_IDL.xml
+++ b/Open-ILS/examples/fm_IDL.xml
@@ -2593,6 +2593,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 			<field reporter:label="OPAC/Staff Client User Name" name="usrname"  reporter:datatype="text"/>
 			<field reporter:label="OPAC/Staff Client Holds Alias" name="alias"  reporter:datatype="text"/>
 			<field reporter:label="Juvenile" name="juvenile"  reporter:datatype="bool"/>
+			<field reporter:label="Record Last Update Date" name="last_update_date" reporter:datatype="timestamp"/>
 			<field reporter:label="Additional Permission Groups" name="groups" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
 			<field reporter:label="User Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql
index 7117157..f9e8c3d 100644
--- a/Open-ILS/src/sql/Pg/005.schema.actors.sql
+++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql
@@ -63,7 +63,8 @@ CREATE TABLE actor.usr (
 	alert_message		TEXT,
 	create_date		TIMESTAMP WITH TIME ZONE	NOT NULL DEFAULT now(),
 	expire_date		TIMESTAMP WITH TIME ZONE	NOT NULL DEFAULT (now() + '3 years'::INTERVAL),
-	claims_never_checked_out_count  INT         NOT NULL DEFAULT 0
+	claims_never_checked_out_count  INT         NOT NULL DEFAULT 0,
+    last_update_date    TIMESTAMP WITH TIME ZONE
 );
 COMMENT ON TABLE actor.usr IS $$
 User objects
@@ -116,6 +117,18 @@ CREATE FUNCTION actor.crypt_pw_update () RETURNS TRIGGER AS $$
 	END;
 $$ LANGUAGE PLPGSQL;
 
+CREATE OR REPLACE FUNCTION actor.au_updated()
+RETURNS TRIGGER AS $$
+BEGIN
+    NEW.last_update_date := now();
+	RETURN NEW;
+END;
+$$ LANGUAGE plpgsql;
+
+CREATE TRIGGER au_update_trig
+	BEFORE UPDATE ON actor.usr
+	FOR EACH ROW EXECUTE PROCEDURE actor.au_updated();
+
 CREATE TRIGGER actor_crypt_pw_update_trigger
 	BEFORE UPDATE ON actor.usr FOR EACH ROW
 	EXECUTE PROCEDURE actor.crypt_pw_update ();
diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
index 7f586bb..fd84c89 100644
--- a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
+++ b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
@@ -140,6 +140,7 @@ staff.au_alert_message_label=Alert
 staff.au_claims_returned_count_label=Returns Claimed
 staff.au_create_date_label=Created On
 staff.au_expire_date_label=Expires On
+staff.au_last_update_date_label=Updated On
 staff.au_home_library_label=Home Library
 staff.au_home_library_fullname_label=Home Library (Full Name)
 staff.au_credit_forward_balance_label=Credit
diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
index db13be5..e21fee1 100644
--- a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
+++ b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
@@ -110,8 +110,8 @@ staff.patron.display.init.network_request.error_showing_alert=Error showing patr
 staff.patron.display.render_search_form.patron_search=Patron Search
 staff.patron.display.tab_name=Patron:
 staff.patron.display.no_alerts_or_messages=No Alerts, Blocks, or Messages
-# Field 1 = actor.usr.id, Field 2 = actor.usr.create_date
-staff.patron.display.db_data=Database ID: %1$s Create Date: %2$s
+# Field 1 = actor.usr.id, Field 2 = actor.usr.create_date, Field 3 = actor.usr.last_update_date
+staff.patron.display.db_data=Database ID: %1$s Create Date: %2$s Last Updated: %3$s
 staff.patron.hold_notices.tooltiptext=ID: %1$s Hold ID: %2$s Notifying Staff ID: %3$s
 staff.patron.hold_notices.new_notification_record=New Notification Record
 staff.patron.hold_notices.method=Method
diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js
index e1b4fbe..bc84ae6 100644
--- a/Open-ILS/xul/staff_client/server/patron/display.js
+++ b/Open-ILS/xul/staff_client/server/patron/display.js
@@ -514,7 +514,10 @@ patron.display.prototype = {
                                     'staff.patron.display.db_data',
                                     [
                                         obj.patron.id(),
-                                        obj.patron.create_date()
+                                        obj.patron.create_date(),
+                                        obj.patron.last_update_date()
+                                            ? obj.patron.last_update_date()
+                                            : ''
                                     ]
                                 );
                                 e.setAttribute('tooltiptext',tooltiptext);
diff --git a/Open-ILS/xul/staff_client/server/patron/util.js b/Open-ILS/xul/staff_client/server/patron/util.js
index 8968e0a..82a6e28 100644
--- a/Open-ILS/xul/staff_client/server/patron/util.js
+++ b/Open-ILS/xul/staff_client/server/patron/util.js
@@ -446,6 +446,13 @@ patron.util.columns = function(modify,params) {
             ,'sort_value' : function(my) { return util.date.db_date2Date( my.au.create_date() ).getTime(); }
         },
         { 
+            'persist' : 'hidden width ordinal', 'id' : 'au_last_update_date', 'label' : commonStrings.getString('staff.au_last_update_date_label'), 'flex' : 1, 
+            'sort_type' : 'date',
+            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.au.last_update_date(), "%{localized}" ); }
+            ,'sort_value' : function(my) { return util.date.db_date2Date( my.au.last_update_date() ).getTime(); }
+        },
+
+        { 
             'persist' : 'hidden width ordinal', 'id' : 'expire_date', 'label' : commonStrings.getString('staff.au_expire_date_label'), 'flex' : 1, 
             'sort_type' : 'date',
             'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.au.expire_date(), "%{localized_date}" ); }

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/examples/fm_IDL.xml                       |    1 +
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 Open-ILS/src/sql/Pg/005.schema.actors.sql          |   15 ++++++++++-
 .../Pg/upgrade/0619.schema.au_last_update_time.sql |   28 ++++++++++++++++++++
 .../server/locale/en-US/common.properties          |    1 +
 .../server/locale/en-US/patron.properties          |    5 ++-
 Open-ILS/xul/staff_client/server/patron/display.js |    5 +++-
 Open-ILS/xul/staff_client/server/patron/summary.js |   14 ++++++++++
 .../staff_client/server/patron/summary_overlay.xul |    3 ++
 Open-ILS/xul/staff_client/server/patron/util.js    |    7 +++++
 10 files changed, 76 insertions(+), 5 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/0619.schema.au_last_update_time.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list