From f1f0618daf5a02af92f2a4609bddefbabe36c0cb 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 --- 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 9cfd6b3..b11c508 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 3ccb755..ebf5cda 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.1.0