From c7a67ea4f33402a1f3165864952d6a692f898953 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 --- 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 9cfd6b3833..b11c508228 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -98,7 +98,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 3ccb755b25..ebf5cdaad4 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