LP1155769: Items repeated in tpac display, others not visible
authorKyle Tomita <tomitakyle@gmail.com>
Thu, 6 Feb 2014 00:23:18 +0000 (16:23 -0800)
committerBen Shum <bshum@biblio.org>
Sat, 8 Feb 2014 09:34:05 +0000 (04:34 -0500)
This was an issue with the query and ordering by a column that was
sometimes null (copy_number).  Added barcode to be a sort rather than
replacing copy_number, per bshum's suggestion.  Not replacing allows
libraries that use copy_number to continue to use them as well.

Signed-off-by: Kyle Tomita <tomitakyle@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm

index 630d252..ab674ef 100644 (file)
@@ -2045,7 +2045,8 @@ sub basic_opac_copy_query {
         order_by => [
             {class => 'aou', field => 'name'},
             {class => 'acn', field => 'label_sortkey'},
-            {class => 'acp', field => 'copy_number'}
+            {class => 'acp', field => 'copy_number'},
+            {class => 'acp', field => 'barcode'}
         ],
 
         limit => $copy_limit,