PINES OPAC Holdings Sorting
authorTerran McCanna <tmccanna@georgialibraries.org>
Fri, 3 Dec 2021 22:12:59 +0000 (17:12 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2022 20:08:45 +0000 (15:08 -0500)
This adds back the customization to sort holdings by system before
sorting by branch.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm

index 38e4381..e6cb0fb 100644 (file)
@@ -409,6 +409,10 @@ sub mk_copy_query {
         }; 
     };
 
+       # PINES customization to sort by system first
+       unshift(@{$query->{order_by}}, { class => 'parent', field => 'name' });
+
+
     my $ou_sort_param = [$org, $pref_ou ];
     if ($coords
         && ref($coords)