Bug 20430: (See also bug 19436) Button display depends on wrong server count
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 16 Mar 2018 08:02:36 +0000 (09:02 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 19 Mar 2018 16:55:08 +0000 (13:55 -0300)
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>

authorities/authorities-home.pl

index f6d3f85..89142f2 100755 (executable)
@@ -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',