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>
Mon, 15 Aug 2022 18:25:15 +0000 (14:25 -0400)
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 f3cc243..d7115ca 100644 (file)
@@ -403,6 +403,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)