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

Evergreen Git git at git.evergreen-ils.org
Wed Aug 19 11:45:36 EDT 2015


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  9e946f5af3be4ecfe7d694a902c5a2ce8f9a4d23 (commit)
      from  8e0fdc533a440b1ae14b654033b0e413722e562e (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 9e946f5af3be4ecfe7d694a902c5a2ce8f9a4d23
Author: Adam Bowling <abowling at emeralddata.net>
Date:   Mon Jan 19 16:04:04 2015 -0500

    LP#1406370 Set Search Preferences Ordered by Name
    
    Set search preferences is currently ordered by shortname in
    Admin > Workstation Administration > Set Search Preferences.
    This patch adds functionality that orders each org unit and
    its children in alphabetical order by name, rather than by
    shortname.
    
    Signed-off-by: Adam Bowling <abowling at emeralddata.net>
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>

diff --git a/Open-ILS/xul/staff_client/chrome/content/main/search_prefs.xul b/Open-ILS/xul/staff_client/chrome/content/main/search_prefs.xul
index c4bf6f9..e8f93ed 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/search_prefs.xul
+++ b/Open-ILS/xul/staff_client/chrome/content/main/search_prefs.xul
@@ -60,6 +60,13 @@
             }
         }
         function add_aou(aou, depth) {
+            if (aou.children().length > 0) {
+                aou.children().sort(function(a, b) {
+                    if (a.name() < b.name()) return -1;
+                    if (a.name() > b.name()) return 1;
+                    return 0;
+                });
+            }
             search_lib_box.appendItem(depth + aou.name(), aou.id(), '');
             pref_lib_box.appendItem(depth + aou.name(), aou.id(), '');
             for(var i = 0; i < aou.children().length; i++)

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

Summary of changes:
 .../chrome/content/main/search_prefs.xul           |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list