LP#1131889: sort TPac copy list by normalized call number collab/gmcharlt/lp1131889_sort_cn_by_sortkey
authorGalen Charlton <gmc@esilibrary.com>
Fri, 22 Feb 2013 19:00:55 +0000 (14:00 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 22 Feb 2013 19:00:55 +0000 (14:00 -0500)
... 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>
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm

index b8124f2..2f15644 100644 (file)
@@ -2034,7 +2034,7 @@ sub basic_opac_copy_query {
 
         order_by => [
             {class => 'aou', field => 'name'},
-            {class => 'acn', field => 'label'}
+            {class => 'acn', field => 'label_sortkey'}
         ],
 
         limit => $copy_limit,