Bug 20430: (See also bug 19436) Button display depends on wrong server count

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 <m.de.rooy@rijksmuseum.nl>

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2018-03-16 09:02:36 +01:00 committed by Nick Clemens
parent 830ce35795
commit 7852d967d1
1 changed files with 1 additions and 1 deletions

View File

@ -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',