From 950299930c5b596a64b3cf827234ffc5ea0e1b36 Mon Sep 17 00:00:00 2001 From: Zeno Tajoli Date: Wed, 22 Apr 2015 17:03:38 +0200 Subject: [PATCH] BUG 14047: Insert the instruction 'order_by' into DBIx query for biblio z39.50 server in cataloguing --- cataloguing/z3950_search.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index 3ccb755..6a9b750 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -78,8 +78,9 @@ if ( $op ne "do_search" ) { recordtype => 'biblio', servertype => ['zed', 'sru'], }, - { result_class => 'DBIx::Class::ResultClass::HashRefInflator' }, + { order_by => ['rank', 'servername'],}, ); + $rs->result_class('DBIx::Class::ResultClass::HashRefInflator'); $template->param( serverloop => [ $rs->all ], opsearch => "search", -- 1.7.10.4