From: miker Date: Tue, 11 Nov 2008 02:53:22 +0000 (+0000) Subject: add "alias" column to actor.usr; add patron search field for new "alias" column;... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=27e43dc45a382adab590b129b3f1974499eccdbe;p=Evergreen.git add "alias" column to actor.usr; add patron search field for new "alias" column; hey, I even used the dtd! :) git-svn-id: svn://svn.open-ils.org/ILS/trunk@11127 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 60803c323a..cca01679ea 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -1434,13 +1434,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - - - - - - + + + + + + + + diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm index b5eb0567a4..f0994a03b7 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm @@ -14,7 +14,7 @@ __PACKAGE__->columns( Essential => qw/usrname email first_given_name second_given_name family_name billing_address claims_returned_count home_ou dob deleted active master_account ident_type ident_value - ident_type2 ident_value2 net_access_level + ident_type2 ident_value2 net_access_level alias photo_url create_date expire_date credit_forward_balance super_user usrgroup passwd card last_xact_id standing barred profile prefix suffix alert_message diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql index 13149e2830..90cd5e4b6a 100644 --- a/Open-ILS/src/sql/Pg/005.schema.actors.sql +++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql @@ -44,6 +44,7 @@ CREATE TABLE actor.usr ( second_given_name TEXT, family_name TEXT NOT NULL, suffix TEXT, + alias TEXT, day_phone TEXT, evening_phone TEXT, other_phone TEXT, diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 531a2e0a58..ff0e12e537 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1162,6 +1162,8 @@ + + diff --git a/Open-ILS/xul/staff_client/server/patron/search_form.js b/Open-ILS/xul/staff_client/server/patron/search_form.js index c445c00740..f88dfdaea3 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_form.js +++ b/Open-ILS/xul/staff_client/server/patron/search_form.js @@ -77,6 +77,19 @@ patron.search_form.prototype = { }; } ], + 'alias' : [ + ['render'], + function(e) { + return function() { + if (params.query&¶ms.query.alias) { + e.setAttribute('value',params.query.alias); + e.value = params.query.alias; + } else { + e.value = ''; + } + }; + } + ], 'email' : [ ['render'], function(e) { diff --git a/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul b/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul index 2d1dea22ae..7f6e27432b 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul @@ -56,6 +56,12 @@ accesskey="&staff.patron_search_form.second_given_name.accesskey;"/> + +