From: Chris Sharp Date: Mon, 18 Dec 2017 18:25:50 +0000 (-0500) Subject: Re-apply fix for Fix for org unit order in OPAC holdings list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7d3ae5e3220af6b1548b82a2174d249c33141635;p=evergreen%2Fpines.git Re-apply fix for Fix for org unit order in OPAC holdings list --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm index c071c2452b..fcea78bca6 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -310,9 +310,19 @@ sub mk_copy_query { where => {id => $org} } } - } - }}; - }; + }, + join => { 'parent' => { 'class' => 'aou', 'fkey' => 'parent_ou'} } + } + } + } else { + $query->{from}->{acp}->{aou} = { join => { 'parent' => { 'class' => 'aou', 'fkey' => 'parent_ou'} } }; + }; + + unshift(@{$query->{order_by}}, + { + class => 'parent', field => 'name' + } + ); # Unsure if we want these in the shared function, leaving here for now unshift(@{$query->{order_by}},