From 88e29dc2fc9cdb63ab9b814a68c9377358187a4c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 16 Mar 2018 09:02:36 +0100 Subject: [PATCH] Bug 20430: (See also 19436) Button display depends on wrong server count Content-Type: text/plain; charset=utf-8 This is a QA follow-up of bug 19436, submitted separately for ease of backporting it. (The bug was not raised by 19436.) Obviously, the number of authority servers not biblio servers should be the key factor for showing or hiding the button for new authority records via Z39.50/SRU. Trivial fix. Signed-off-by: Marcel de Rooy --- authorities/authorities-home.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/authorities-home.pl b/authorities/authorities-home.pl index f6d3f85..89142f2 100755 --- a/authorities/authorities-home.pl +++ b/authorities/authorities-home.pl @@ -217,7 +217,7 @@ if ( $op eq '' ) { my $schema = Koha::Database->new()->schema(); my $servers = $schema->resultset('Z3950server')->search( { - recordtype => 'biblio', + recordtype => 'authority', servertype => ['zed', 'sru'], }, { result_class => 'DBIx::Class::ResultClass::HashRefInflator', -- 2.1.4