From 868431dec6da53d1402e046cd6324769ddf60c19 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 --- 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 878c8d0..3f40072 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 fdbf7c7..253683d 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.1.4