wording for patron search results
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 9 Aug 2006 03:56:39 +0000 (03:56 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 9 Aug 2006 03:56:39 +0000 (03:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5397 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/search_result.js

index eec6908..c5eb6f2 100644 (file)
@@ -147,10 +147,12 @@ patron.search_result.prototype = {
                        if (obj.search_term_count > 0) {
                                results = this.network.simple_request( 'FM_AU_IDS_RETRIEVE_VIA_HASH', params );
                                if ( (results == null) || (typeof results.ilsevent != 'undefined') ) throw(results);
-                       }
-
-                       if (results.length == 0) {
-                               alert('No hits found.');
+                               if (results.length == 0) {
+                                       alert('No patrons found matching search criteria.');
+                                       return;
+                               }
+                       } else {
+                               alert('Please enter some search terms.');
                                return;
                        }