LP#1131889: sort TPac copy list by normalized call number
authorGalen Charlton <gmc@esilibrary.com>
Fri, 22 Feb 2013 19:00:55 +0000 (14:00 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 20 Aug 2013 14:16:22 +0000 (10:16 -0400)
... as opposed to the literal call number label.  E.g., this
patch would make LC call number "AE5 .E363 1975 v.10" sort
after "AE5 .E363 1975 v.9" rather than after "AE5 .E363 1975 v.1"

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm

index 92f1daf..e9f1a2c 100644 (file)
@@ -2036,7 +2036,7 @@ sub basic_opac_copy_query {
 
         order_by => [
             {class => 'aou', field => 'name'},
-            {class => 'acn', field => 'label'},
+            {class => 'acn', field => 'label_sortkey'},
             {class => 'acp', field => 'copy_number'}
         ],