expose the internal record id and create date for a user as a tooltip over the user...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Jun 2010 19:24:26 +0000 (19:24 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Jun 2010 19:24:26 +0000 (19:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16764 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
Open-ILS/xul/staff_client/server/patron/display.js
Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
Open-ILS/xul/staff_client/server/patron/display_overlay.xul

index 1a53a4c..b2d59b7 100644 (file)
@@ -103,6 +103,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=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
index 3fdfc0b..778642b 100644 (file)
@@ -506,6 +506,14 @@ patron.display.prototype = {
                                     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);
                             };
                         }
                     ],
index 17094e6..358701f 100644 (file)
@@ -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>
index bfdea6f..e7b6a1c 100644 (file)
@@ -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>