Bug 20047: (follow-up) Retrieve only biblio/authority servers as appropriate
authorNick Clemens <nick@bywatersolutions.com>
Tue, 17 Apr 2018 12:05:29 +0000 (12:05 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Apr 2018 16:34:41 +0000 (13:34 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

authorities/authorities-home.pl
cataloguing/addbooks.pl

index 878c8d0..3f40072 100755 (executable)
@@ -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(
index fdbf7c7..253683d 100755 (executable)
@@ -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(