From fe5f6c8efdf46cfc8e8c93130256bbacf77b5a0b Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 17 Apr 2018 12:05:29 +0000 Subject: [PATCH] Bug 20047: (follow-up) Retrieve only biblio/authority servers as appropriate Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- authorities/authorities-home.pl | 3 --- cataloguing/addbooks.pl | 7 ++++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/authorities/authorities-home.pl b/authorities/authorities-home.pl index 878c8d0bd5..3f400722c3 100755 --- a/authorities/authorities-home.pl +++ b/authorities/authorities-home.pl @@ -211,9 +211,6 @@ my $servers = Koha::Z3950Servers->search( recordtype => 'authority', servertype => ['zed', 'sru'], }, - { result_class => 'DBIx::Class::ResultClass::HashRefInflator', - order_by => ['rank', 'servername'], - }, ); $template->param( diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index fdbf7c7b39..253683db1d 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -134,7 +134,12 @@ for my $resultsbr (@resultsbr) { }; } -my $servers = Koha::Z3950Servers->search(); +my $servers = Koha::Z3950Servers->search( + { + recordtype => 'biblio', + servertype => ['zed','sru'], + } +); my $frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] }); $template->param( -- 2.39.5