LP1119370: Corrects sorting in the list of z39.50 services
authorJane Sandberg <sandbej@linnbenton.edu>
Thu, 22 Mar 2018 14:28:27 +0000 (07:28 -0700)
committerBen Shum <ben@evergreener.net>
Wed, 2 May 2018 02:46:19 +0000 (21:46 -0500)
To test
-------
[1] Add several z39.50 servers, with names starting with both
lower case and capital letters.
[2] In the Web client, go to Cataloging > Import Record from
Z39.50. The list of Services and Credentials will be sorted
in order alphabetically twice -- first for names that start
with a capital letter, then for names that start with lower
case letters.
[3] Apply this patch and repeat step 2.  This time, the list
should be sorted alphabetically, and then have Local Catalog
at the very bottom of the list.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/src/templates/staff/cat/z3950/t_target.tt2

index 17ca475..0ca0e6c 100644 (file)
@@ -1,4 +1,4 @@
-<div ng-repeat="target in targets" class="z3950-target-list">
+<div ng-repeat="target in targets | orderBy:'settings.label'" class="z3950-target-list">
     <div class="checkbox">
         <input ng-model="target.selected" type="checkbox">
     <div>