[open-ils-commits] r11807 - in trunk/Open-ILS: web/opac/locale/en-US xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Jan 12 16:29:20 EST 2009


Author: phasefx
Date: 2009-01-12 16:29:16 -0500 (Mon, 12 Jan 2009)
New Revision: 11807

Modified:
   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
   trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
Log:
Username and library card fields for patron search

Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2009-01-12 20:58:34 UTC (rev 11806)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2009-01-12 21:29:16 UTC (rev 11807)
@@ -52,6 +52,12 @@
 <!ENTITY common.true "True">
 <!ENTITY common.false "False">
 
+<!ENTITY common.textbox.cut "Cut">
+<!ENTITY common.textbox.copy "Copy">
+<!ENTITY common.textbox.paste "Paste">
+<!ENTITY common.textbox.delete "Delete">
+<!ENTITY common.textbox.select_all "Select All">
+
 <!ENTITY ilsevent.1000 "Login failed.  The username or password entered was incorrect.">
 <!ENTITY ilsevent.1001 "Login session has timed out or does not exist">
 <!ENTITY ilsevent.1002 "User was not found in the database">
@@ -1196,6 +1202,10 @@
 <!ENTITY staff.patron_search_form.first_given_name.label 'First Name:'>
 <!ENTITY staff.patron_search_form.ident.accesskey ''>
 <!ENTITY staff.patron_search_form.ident.label 'ID:'>
+<!ENTITY staff.patron_search_form.usrname.accesskey 'O'>
+<!ENTITY staff.patron_search_form.usrname.label 'OPAC Login:'>
+<!ENTITY staff.patron_search_form.card.accesskey 'B'>
+<!ENTITY staff.patron_search_form.card.label 'Barcode:'>
 <!ENTITY staff.patron_search_form.phone.accesskey 'P'>
 <!ENTITY staff.patron_search_form.phone.label 'Phone:'>
 <!ENTITY staff.patron_search_form.post_code.accesskey ''>

Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_form.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_form.js	2009-01-12 20:58:34 UTC (rev 11806)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_form.js	2009-01-12 21:29:16 UTC (rev 11807)
@@ -90,6 +90,32 @@
 							};
 						}
 					],
+					'usrname' : [
+						['render'],
+						function(e) {
+							return function() {
+								if (params.query&&params.query.usrname) {
+									e.setAttribute('value',params.query.usrname);
+									e.value = params.query.usrname;
+								} else {
+									e.value = '';
+								}
+							};
+						}
+					],
+					'card' : [
+						['render'],
+						function(e) {
+							return function() {
+								if (params.query&&params.query.card) {
+									e.setAttribute('value',params.query.card);
+									e.value = params.query.card;
+								} 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	2009-01-12 20:58:34 UTC (rev 11806)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul	2009-01-12 21:29:16 UTC (rev 11807)
@@ -80,6 +80,18 @@
 				accesskey="&staff.patron_search_form.ident.accesskey;"/>
 			<textbox id="ident" group="2" context="clipboard"/>
 		</row>
+		<row id="psr6b">
+			<label id="psl6b" control="usrname" 
+				value="&staff.patron_search_form.usrname.label;" 
+				accesskey="&staff.patron_search_form.usrname.accesskey;"/>
+			<textbox id="usrname" group="0" context="clipboard"/>
+		</row>
+		<row id="psr6c">
+			<label id="psl6c" control="card" 
+				value="&staff.patron_search_form.card.label;" 
+				accesskey="&staff.patron_search_form.card.accesskey;"/>
+			<textbox id="card" group="0" context="clipboard"/>
+		</row>
 		<row id="psr6a">
 			<label id="psl6a" value=" "/>
 		</row>

Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_result.js	2009-01-12 20:58:34 UTC (rev 11806)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_result.js	2009-01-12 21:29:16 UTC (rev 11807)
@@ -140,6 +140,13 @@
         var search_depth = 0;
 		for (var i in query) {
 			switch( i ) {
+                case 'card':
+					search_hash[ i ] = {};
+					search_hash[ i ].value = query[i];
+					search_hash[i].group = 3; 
+					obj.search_term_count++;
+				break;
+
 				case 'phone': case 'ident': 
 				
 					search_hash[ i ] = {};
@@ -156,7 +163,7 @@
 					obj.search_term_count++;
 				break;
 
-				case 'family_name': case 'first_given_name': case 'second_given_name': case 'email': case 'alias':
+				case 'family_name': case 'first_given_name': case 'second_given_name': case 'email': case 'alias': case 'usrname':
 
 					search_hash[ i ] = {};
 					search_hash[ i ].value = query[i];



More information about the open-ils-commits mailing list