[open-ils-commits] [GIT] Evergreen ILS branch master updated. c07d9c47393e6af0b7b99ace23aea6283dbca9f9

Evergreen Git git at git.evergreen-ils.org
Tue Mar 20 12:30:56 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  c07d9c47393e6af0b7b99ace23aea6283dbca9f9 (commit)
      from  1127be90412dc57c7e318286a4f1e9312417478f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c07d9c47393e6af0b7b99ace23aea6283dbca9f9
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Mon Jan 23 10:05:19 2012 -0500

    patron search result order sorting
    
    The default patron search "order by" on the server side is last name, first
    name, and actor.usr.id.
    
    The staff client intended to request last name, first name, middle name, and
    date of birth (when actor.usr.id to be tacked on in the middle layer), but a bug
    prevented this.
    
    This fixes that.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/xul/staff_client/server/patron/search_result.js b/Open-ILS/xul/staff_client/server/patron/search_result.js
index 0512e1c..3984074 100644
--- a/Open-ILS/xul/staff_client/server/patron/search_result.js
+++ b/Open-ILS/xul/staff_client/server/patron/search_result.js
@@ -236,11 +236,15 @@ patron.search_result.prototype = {
         try {
             var results = [];
 
+            var sort_params = obj.search_sort;
+            if (!sort_params) {
+                sort_params = [ 'family_name ASC', 'first_given_name ASC', 'second_given_name ASC', 'dob DESC' ];
+            }
             var params = [ 
                 ses(), 
                 search_hash, 
                 typeof obj.search_limit != 'undefined' && typeof obj.search_limit != 'null' ? obj.search_limit : obj.result_cap + 1, 
-                typeof obj.search_sort != 'undefined' ? obj.search_sort : [ 'family_name ASC', 'first_given_name ASC', 'second_given_name ASC', 'dob DESC' ] 
+                sort_params
             ];
             if (inactive) {
                 params.push(1);

-----------------------------------------------------------------------

Summary of changes:
 .../staff_client/server/patron/search_result.js    |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list