From bdd863335c4a698adbcbe44c9dcefb00658c04db Mon Sep 17 00:00:00 2001 From: Zeno Tajoli Date: Wed, 22 Apr 2015 17:03:38 +0200 Subject: [PATCH] Bug 14047: Order z39.50 biblioservers in cataloguing Signed-off-by: Marcel de Rooy Bug 14047: Sort z39.50 servers in Acquisition Signed-off-by: Marcel de Rooy Bug 14047: [QA Follow-up] Move result_class back into attributes No need to put this into a separate call. Signed-off-by: Marcel de Rooy Note that we strictly speaking do not need the hashref inflator here, because TT understands hash.column as well as object.property. Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit c7a67ea4f33402a1f3165864952d6a692f898953) Signed-off-by: Chris Cormack Signed-off-by: Liz Rea --- acqui/z3950_search.pl | 4 +++- cataloguing/z3950_search.pl | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl index 47ad89d7e0..f33210a195 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -97,7 +97,9 @@ if ( $op ne "do_search" ) { recordtype => 'biblio', servertype => ['zed', 'sru'], }, - { result_class => 'DBIx::Class::ResultClass::HashRefInflator' }, + { result_class => 'DBIx::Class::ResultClass::HashRefInflator', + order_by => ['rank', 'servername'], + }, ); $template->param( serverloop => [ $rs->all ], diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index c334711029..0d4ecdaf77 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -78,7 +78,9 @@ if ( $op ne "do_search" ) { recordtype => 'biblio', servertype => ['zed', 'sru'], }, - { result_class => 'DBIx::Class::ResultClass::HashRefInflator' }, + { result_class => 'DBIx::Class::ResultClass::HashRefInflator', + order_by => ['rank', 'servername'], + }, ); $template->param( serverloop => [ $rs->all ], -- 2.39.5