[open-ils-commits] r16764 - in trunk/Open-ILS/xul/staff_client/server: locale/en-US patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jun 18 15:24:30 EDT 2010
Author: phasefx
Date: 2010-06-18 15:24:26 -0400 (Fri, 18 Jun 2010)
New Revision: 16764
Modified:
trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
trunk/Open-ILS/xul/staff_client/server/patron/display.js
trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
Log:
expose the internal record id and create date for a user as a tooltip over the user's name in the patron display
Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties 2010-06-18 17:57:21 UTC (rev 16763)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties 2010-06-18 19:24:26 UTC (rev 16764)
@@ -103,6 +103,8 @@
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=Record ID: %1$s Create Date: %2$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
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2010-06-18 17:57:21 UTC (rev 16763)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2010-06-18 19:24:26 UTC (rev 16764)
@@ -506,6 +506,14 @@
patron.util.format_name( obj.patron )
);
patron.util.set_penalty_css(obj.patron);
+ var tooltiptext = $("patronStrings").getFormattedString(
+ 'staff.patron.display.db_data',
+ [
+ obj.patron.id(),
+ obj.patron.create_date()
+ ]
+ );
+ e.setAttribute('tooltiptext',tooltiptext);
};
}
],
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul 2010-06-18 17:57:21 UTC (rev 16763)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul 2010-06-18 19:24:26 UTC (rev 16764)
@@ -13,7 +13,7 @@
<vbox id="pdm2" flex="1">
<hbox id="pdm2hb1">
<hbox>
- <label id="patron_name" class="patronNameLarge" tooltiptext="&staff.patron_display.name.label;" value="&staff.patron.display_overlay.none_selected.value;" flex="1"/>
+ <label id="patron_name" class="patronNameLarge" value="&staff.patron.display_overlay.none_selected.value;" flex="1"/>
</hbox>
<deck id="PatronNavBar" flex="1" class="my_overflow" />
</hbox>
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2010-06-18 17:57:21 UTC (rev 16763)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2010-06-18 19:24:26 UTC (rev 16764)
@@ -13,7 +13,7 @@
<vbox id="pdm2" flex="1">
<hbox id="pdm2hb1">
<hbox>
- <label id="patron_name" class="patronNameLarge" tooltiptext="&staff.patron_display.name.label;" value="&staff.patron.display_overlay.none_selected.value;" flex="1"/>
+ <label id="patron_name" class="patronNameLarge" value="&staff.patron.display_overlay.none_selected.value;" flex="1"/>
</hbox>
<deck id="PatronNavBar" flex="1" class="my_overflow" />
</hbox>
More information about the open-ils-commits
mailing list