From f4eee80b1ad23e52912883dfa8ddec7438ab2d5e Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Fri, 17 Aug 2018 10:32:31 -0700 Subject: [PATCH] LP#1787676: sort Z39.50 sources in JS, retaining Local Catalog at top of list This reverts the original fix for LP#1119370. Signed-off-by: Jeff Davis Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/cat/z3950/t_target.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/cat/services/z3950.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2 b/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2 index 0ca0e6cf74..17ca47588e 100644 --- a/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2 +++ b/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2 @@ -1,4 +1,4 @@ -
+
diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/z3950.js b/Open-ILS/web/js/ui/default/staff/cat/services/z3950.js index 0f1242266d..4eb3b867f5 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/z3950.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/z3950.js @@ -36,8 +36,8 @@ function($q, egCore, egAuth) { this.push(tgt); }, service.targets); service.targets.sort(function (a, b) { - a = a.settings.label; - b = b.settings.label; + a = a.settings.label.toLowerCase(); + b = b.settings.label.toLowerCase(); return a < b ? -1 : (a > b ? 1 : 0); }); service.targets.unshift({ -- 2.11.0