[open-ils-commits] r11130 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 11 00:00:04 EST 2008
Author: miker
Date: 2008-11-11 00:00:02 -0500 (Tue, 11 Nov 2008)
New Revision: 11130
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
trunk/Open-ILS/xul/staff_client/server/patron/summary.js
trunk/Open-ILS/xul/staff_client/server/patron/util.js
Log:
have alias passed to search
Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_result.js 2008-11-11 04:44:49 UTC (rev 11129)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_result.js 2008-11-11 05:00:02 UTC (rev 11130)
@@ -156,7 +156,7 @@
obj.search_term_count++;
break;
- case 'family_name': case 'first_given_name': case 'second_given_name': case 'email':
+ case 'family_name': case 'first_given_name': case 'second_given_name': case 'email': case 'alias':
search_hash[ i ] = {};
search_hash[ i ].value = query[i];
Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2008-11-11 04:44:49 UTC (rev 11129)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2008-11-11 05:00:02 UTC (rev 11130)
@@ -364,6 +364,16 @@
};
}
],
+ 'patron_alias' : [
+ ['render'],
+ function(e) {
+ return function() {
+ e.setAttribute('value',
+ obj.patron.alias()
+ );
+ };
+ }
+ ],
'patron_photo_url' : [
['render'],
function(e) {
Modified: trunk/Open-ILS/xul/staff_client/server/patron/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/util.js 2008-11-11 04:44:49 UTC (rev 11129)
+++ trunk/Open-ILS/xul/staff_client/server/patron/util.js 2008-11-11 05:00:02 UTC (rev 11130)
@@ -355,6 +355,10 @@
'primary' : false, 'hidden' : true, 'render' : function(my) { return my.au.email(); }
},
{
+ 'persist' : 'hidden width ordinal', 'id' : 'alias', 'label' : commonStrings.getString('staff.au_alias_label'), 'flex' : 1,
+ 'primary' : false, 'hidden' : true, 'render' : function(my) { return my.au.alias(); }
+ },
+ {
'persist' : 'hidden width ordinal', 'id' : 'dob', 'label' : commonStrings.getString('staff.au_birth_date_label'), 'flex' : 1,
'primary' : false, 'hidden' : true, 'render' : function(my) { return my.au.dob().substr(0,10); }
},
More information about the open-ils-commits
mailing list