LP#1528919 Alphabetise non-barcoded items user/khuckins/lp1528919-non-barcoded-items-alphabetical
authorKyle Huckins <khuckins@catalystdevworks.com>
Wed, 5 Oct 2016 16:08:27 +0000 (09:08 -0700)
committerKyle Huckins <khuckins@catalystdevworks.com>
Wed, 5 Oct 2016 16:16:36 +0000 (09:16 -0700)
Use an orderBy expression on the lists of noncat types
on the patron checkout page and inhouse-use page.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
 Changes to be committed:
modified:   Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2
modified:   Open-ILS/src/templates/staff/circ/in_house_use/index.tt2

Open-ILS/src/templates/staff/circ/in_house_use/index.tt2
Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2

index 769d533..b0b833b 100644 (file)
@@ -45,7 +45,7 @@
             </li>
             <li class="divider"></li>
             <li><a href
-              ng-repeat='type in nonCatTypes'
+              ng-repeat="type in nonCatTypes | orderBy:'name()'"
               ng-click="args.noncat_type=type.id()">{{type.name()}}</a>
             </li>
           </ul>
index 8618419..ab12816 100644 (file)
@@ -18,7 +18,7 @@
             </li>
             <li class="divider"></li>
             <li>
-              <a href ng-repeat='type in nonCatTypes'
+              <a href ng-repeat="type in nonCatTypes | orderBy:'name()'"
                ng-click="checkoutArgs.noncat_type=type.id()">{{type.name()}}</a>
             </li>
           </ul>