[open-ils-commits] r11127 - in trunk/Open-ILS: examples src/perlmods/OpenILS/Application/Storage/CDBI src/sql/Pg web/opac/locale/en-US xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 10 21:53:24 EST 2008
Author: miker
Date: 2008-11-10 21:53:22 -0500 (Mon, 10 Nov 2008)
New Revision: 11127
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/server/patron/search_form.js
trunk/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul
Log:
add "alias" column to actor.usr; add patron search field for new "alias" column; hey, I even used the dtd! :)
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2008-11-11 02:46:30 UTC (rev 11126)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2008-11-11 02:53:22 UTC (rev 11127)
@@ -1434,13 +1434,14 @@
<field reporter:label="Is Super User" name="super_user" oils_obj:array_position="47" oils_persist:virtual="false" reporter:datatype="bool"/>
<field reporter:label="Family Linkage or other Group" name="usrgroup" oils_obj:array_position="48" oils_persist:virtual="false" reporter:datatype="int"/>
<field reporter:label="OPAC/Staff Client User Name" name="usrname" oils_obj:array_position="49" oils_persist:virtual="false" reporter:datatype="text"/>
- <field reporter:label="Additional Permission Groups" name="groups" oils_obj:array_position="50" oils_persist:virtual="true" reporter:datatype="link"/>
- <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="51" oils_persist:virtual="false" reporter:datatype="bool"/>
- <field reporter:label="User Notes" name="notes" oils_obj:array_position="52" oils_persist:virtual="true" reporter:datatype="link"/>
- <field reporter:label="Demographic Info" name="demographic" oils_obj:array_position="53" oils_persist:virtual="true" reporter:datatype="link"/>
- <field reporter:label="Billable Transactions" name="billable_transactions" oils_obj:array_position="54" oils_persist:virtual="true" reporter:datatype="link"/>
- <field reporter:label="Checkins" name="checkins" oils_obj:array_position="55" oils_persist:virtual="true" reporter:datatype="link"/>
- <field reporter:label="Circulations Performed as Staff" name="performed_circulations" oils_obj:array_position="56" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="OPAC/Staff Client Holds Alias" name="alias" oils_obj:array_position="50" oils_persist:virtual="false" reporter:datatype="text"/>
+ <field reporter:label="Additional Permission Groups" name="groups" oils_obj:array_position="51" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="52" oils_persist:virtual="false" reporter:datatype="bool"/>
+ <field reporter:label="User Notes" name="notes" oils_obj:array_position="53" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Demographic Info" name="demographic" oils_obj:array_position="54" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billable Transactions" name="billable_transactions" oils_obj:array_position="55" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Checkins" name="checkins" oils_obj:array_position="56" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulations Performed as Staff" name="performed_circulations" oils_obj:array_position="57" oils_persist:virtual="true" reporter:datatype="link"/>
</fields>
<links>
<link field="demographic" reltype="might_have" key="id" map="" class="rud"/>
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm 2008-11-11 02:46:30 UTC (rev 11126)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm 2008-11-11 02:53:22 UTC (rev 11127)
@@ -14,7 +14,7 @@
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
Modified: trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2008-11-11 02:46:30 UTC (rev 11126)
+++ trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2008-11-11 02:53:22 UTC (rev 11127)
@@ -44,6 +44,7 @@
second_given_name TEXT,
family_name TEXT NOT NULL,
suffix TEXT,
+ alias TEXT,
day_phone TEXT,
evening_phone TEXT,
other_phone TEXT,
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-11-11 02:46:30 UTC (rev 11126)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-11-11 02:53:22 UTC (rev 11127)
@@ -1162,6 +1162,8 @@
<!ENTITY staff.patron_search_form.city.label 'City:'>
<!ENTITY staff.patron_search_form.clear.accesskey 'C'>
<!ENTITY staff.patron_search_form.clear.label 'Clear Form'>
+<!ENTITY staff.patron_search_form.alias.accesskey ''>
+<!ENTITY staff.patron_search_form.alias.label 'Alias:'>
<!ENTITY staff.patron_search_form.email.accesskey ''>
<!ENTITY staff.patron_search_form.email.label 'Email:'>
<!ENTITY staff.patron_search_form.family_name.accesskey 'L'>
Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_form.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_form.js 2008-11-11 02:46:30 UTC (rev 11126)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_form.js 2008-11-11 02:53:22 UTC (rev 11127)
@@ -77,6 +77,19 @@
};
}
],
+ '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) {
Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul 2008-11-11 02:46:30 UTC (rev 11126)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul 2008-11-11 02:53:22 UTC (rev 11127)
@@ -56,6 +56,12 @@
accesskey="&staff.patron_search_form.second_given_name.accesskey;"/>
<textbox id="second_given_name" group="0"/>
</row>
+ <row id="psr14">
+ <label id="psl14" control="alias"
+ value="&staff.patron_search_form.alias.label;"
+ accesskey="&staff.patron_search_form.alias.accesskey;"/>
+ <textbox id="alias" group="0"/>
+ </row>
<row id="psr4">
<label id="psl4" control="email"
value="&staff.patron_search_form.email.label;"
More information about the open-ils-commits
mailing list