diff --git a/authorities/detail.pl b/authorities/detail.pl index 8dd4b77835..4589c62f83 100755 --- a/authorities/detail.pl +++ b/authorities/detail.pl @@ -51,6 +51,7 @@ use Koha::Authorities; use Koha::Authority::Types; use Koha::Token; +use Koha::Z3950Servers; our ($tagslib); @@ -214,6 +215,13 @@ chop $biblio_fields if $biblio_fields; build_tabs ($template, $record, $dbh,"",$query); +my $servers = Koha::Z3950Servers->search( + { + recordtype => 'authority', + servertype => ['zed', 'sru'], + }, +); + my $type = $authority_types->find($authtypecode); $template->param( authid => $authid, @@ -223,6 +231,7 @@ $template->param( authtypecode => $authtypecode, authority_types => $authority_types, csrf_token => Koha::Token->new->generate_csrf({ session_id => scalar $query->cookie('CGISESSID') }), + servers => $servers, ); $template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour"); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc index b42074a380..3c5b40faba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc @@ -1,47 +1,56 @@ [% INCLUDE 'blocking_errors.inc' %] [% IF ( authid || CAN_user_editauthorities) %] -
- -[% IF ( authid ) %] - [% IF ( CAN_user_editauthorities ) %] -
Edit
-
Duplicate
- [% UNLESS ( count ) %] -
Delete
+
+ [% IF ( CAN_user_editauthorities ) %] +
+ + New authority + + + +
[% END %] - [% END %] - -[% END %] - -[% IF ( CAN_user_editauthorities ) %] -
- New authority - - - + + + [% END %]
- [% IF servers.count > 0 %] - - [% END %] -[% END %] -
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc index 6e3b176d62..7584c9f53a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc @@ -1,4 +1,4 @@ - + \ No newline at end of file