From ef697352585e0f7fff258e4fbec1dec03cf839ce Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Mon, 2 Jun 2014 10:03:27 -0400 Subject: [PATCH] LP#1504615: include part names when sorting copies for public catalog display This adds a level of sorting to allow certain parts to be more easily found in the list. The hierarchy will now be: Org Unit / Call Number / Part Label Sortkey / Copy Number / Barcode Previously, the hierarchy was Org Unit / Call Number / Copy Number / Barcode To test: [1] Create a record with several copies under one volume using different monograph parts. Observe that the order of copies in the record details page in the public catalog is not sorted by part. [2] Apply the patch and view the records details page; this time, the copies should be sorted by part. Signed-off-by: Dan Pearl Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm index 44449f757c..90c1463494 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -2051,6 +2051,7 @@ sub basic_opac_copy_query { order_by => [ {class => 'aou', field => 'name'}, {class => 'acn', field => 'label_sortkey'}, + {class => 'bmp', field => 'label_sortkey'}, {class => 'acp', field => 'copy_number'}, {class => 'acp', field => 'barcode'} ], -- 2.11.0