@@ -, +, @@ show (Administration => Z39.50/SRU servers administration) Z39.50/SRU' button is there button is there too servers) (Administration => Z39.50/SRU servers administration) button is not there button is not there too --- authorities/authorities-home.pl | 12 ++++++++++++ cataloguing/addbooks.pl | 12 ++++++++++++ .../intranet-tmpl/prog/en/includes/authorities-toolbar.inc | 8 +++++--- .../intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt | 2 ++ 4 files changed, 31 insertions(+), 3 deletions(-) --- a/authorities/authorities-home.pl +++ a/authorities/authorities-home.pl @@ -214,7 +214,19 @@ if ( $op eq '' ) { } +my $schema = Koha::Database->new()->schema(); +my $servers = $schema->resultset('Z3950server')->search( + { + recordtype => 'biblio', + servertype => ['zed', 'sru'], + }, + { result_class => 'DBIx::Class::ResultClass::HashRefInflator', + order_by => ['rank', 'servername'], + }, +); + $template->param( + servers => $servers, authority_types => $authority_types, op => $op, ); --- a/cataloguing/addbooks.pl +++ a/cataloguing/addbooks.pl @@ -133,8 +133,20 @@ for my $resultsbr (@resultsbr) { }; } +my $schema = Koha::Database->new()->schema(); +my $servers = $schema->resultset('Z3950server')->search( + { + recordtype => 'biblio', + servertype => ['zed', 'sru'], + }, + { result_class => 'DBIx::Class::ResultClass::HashRefInflator', + order_by => ['rank', 'servername'], + }, +); + my $frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] }); $template->param( + servers => $servers, frameworks => $frameworks, breeding_count => $countbr, breeding_loop => $breeding_loop, --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc @@ -59,9 +59,11 @@ [% END %] -
- New from Z39.50 -
+ [% IF servers.count > 0 %] +
+ New from Z39.50 +
+ [% END %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt @@ -30,6 +30,7 @@ [% END %] + [% IF servers.count > 0 %]
+ [% END %] [% IF ( total ) %]
[% END %] --