From 9de3cd5f216742d756acd0561d3b9b04c05adba9 Mon Sep 17 00:00:00 2001 From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Wed, 21 Oct 2009 05:50:22 +0000 Subject: [PATCH] Hold Alias in patron summary git-svn-id: svn://svn.open-ils.org/ILS/trunk@14510 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 1 + Open-ILS/xul/staff_client/server/patron/summary.js | 10 ++++++++++ Open-ILS/xul/staff_client/server/patron/summary_overlay.xul | 4 ++++ .../xul/staff_client/server/patron/summary_overlay_horiz.xul | 4 ++++ 4 files changed, 19 insertions(+) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 157e15525f..74ac00c121 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1217,6 +1217,7 @@ <!ENTITY staff.patron_display.home_ou.label 'Home Library:'> <!ENTITY staff.patron_display.ident1.label 'ID 1:'> <!ENTITY staff.patron_display.ident2.label 'ID 2:'> +<!ENTITY staff.patron_display.hold_alias.label 'Holds Alias:'> <!ENTITY staff.patron_display.items.print_receipt.label 'Print Receipt'> <!ENTITY staff.patron_display.items.print_receipt.accesskey 'P'> <!ENTITY staff.patron_display.items_claimed_returned.label 'Items Claimed Returned:'> diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 2e4e351896..90a22f477f 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -316,6 +316,16 @@ patron.summary.prototype = { }; } ], + 'patron_hold_alias' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.alias() ? obj.patron.alias() : '' + ); + } + } + ], 'patron_date_of_birth' : [ ['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 3b507d3d45..2dead6573a 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul @@ -149,6 +149,10 @@ <description id="patron_ident_value_2" class="copyable ident ident_value ident2 value"/> </vbox> </row> + <row> + <label id="PatronSummaryContact_hold_alias_label" class="copyable text_left" value="&staff.patron_display.hold_alias.label;"/> + <description id="patron_hold_alias" class="copyable hold_alias value" /> + </row> <row id="pdsgr3"> <label id="PatronSummaryContact_date_of_birth_label" click_to_hide_dob="true" class="copyable text_left dob label click_link" value="&staff.patron_display.date_of_birth.label;"/> <description id="patron_date_of_birth" class="copyable dob value" hide_value="true" oils_persist="hide_value"/> diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul index 63be82e211..ab59f8bd64 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul @@ -35,6 +35,10 @@ <description id="patron_card" class="copyable card value click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/> </row> <row> + <label id="PatronSummaryContact_hold_alias_label" class="copyable text_left" value="&staff.patron_display.hold_alias.label;"/> + <description id="patron_hold_alias" class="copyable hold_alias value" /> + </row> + <row> <label id="PatronSummaryContact_usrname_label" class="copyable text_left usrname label" value="&staff.patron.summary_overlay.opac_login.value;" /> <description id="patron_usrname" class="copyable usrname value"/> -- 2.11.0