Fridolin Somers
10e7e66972
Actually in authority tools bar, 'New from Z39.50/SRU' is inside 'New autority' menu. This is different from biblio cataloguing toolbar, and adds a click to access it. I propose to move this to its own button. Test plan : 1) Create a Z39.50/SRU server connexion for authorities 2) Go to authorities home page 3) Check you see buttons 'New autority' and 'New from Z39.50/SRU' 4) Click on 'New autority' 5) Check you only see autority types 6) Click on 'New from Z39.50/SRU' 7) Check you go to Z39.50/SRU popup 8) Delete Z39.50/SRU server connexion for authorities 9) Go to authorities home page 10) Check you dont see 'New from Z39.50/SRU' Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
59 lines
3.1 KiB
HTML
59 lines
3.1 KiB
HTML
[% INCLUDE 'blocking_errors.inc' %]
|
|
[% IF ( authid || CAN_user_editauthorities) %]
|
|
|
|
<div id="toolbar" class="btn-toolbar">
|
|
[% IF ( CAN_user_editauthorities ) %]
|
|
<div class="btn-group">
|
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-plus"></i> New authority
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
[% FOREACH authority_type IN authority_types %]
|
|
<li><a href="/cgi-bin/koha/authorities/authorities.pl?authtypecode=[% authority_type.authtypecode | uri %]">[% authority_type.authtypetext | html %]</a></li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
[% IF servers.count > 0 %]
|
|
<div class="btn-group">
|
|
<button id="z3950_new" class="btn btn-default">
|
|
<i class="fa fa-search"></i> New from Z39.50/SRU
|
|
</button>
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( authid ) %]
|
|
[% IF ( CAN_user_editauthorities ) %]
|
|
<div class="btn-group">
|
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-pencil"></i> Edit <span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a id="editAuth" href="/cgi-bin/koha/authorities/authorities.pl?authid=[% authid | html %]">Edit record</a></li>
|
|
<li><a id="dupAuth" href="/cgi-bin/koha/authorities/authorities.pl?authid=[% authid | html %]&op=duplicate">Edit as new (duplicate)</a></li>
|
|
[% IF servers.count > 0 %]
|
|
<li><a id="z3950_replace" href="#">Replace record via Z39.50/SRU</a></li>
|
|
[% END %]
|
|
[% UNLESS ( count ) %]
|
|
<li><a href="#" id="delAuth">Delete record</a></li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
|
|
<div class="btn-group">
|
|
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-download"></i> Save
|
|
<span class="caret"></span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="/cgi-bin/koha/authorities/export.pl?format=mads&op=export&authid=[% authid | uri %]">MADS (XML)</a></li>
|
|
<li><a href="/cgi-bin/koha/authorities/export.pl?format=marcxml&op=export&authid=[% authid | uri %]">MARCXML</a></li>
|
|
<li><a href="/cgi-bin/koha/authorities/export.pl?format=marc8&op=export&authid=[% authid | uri %]">MARC (non-Unicode/MARC-8)</a></li>
|
|
<li><a href="/cgi-bin/koha/authorities/export.pl?format=utf8&op=export&authid=[% authid | uri %]">MARC (Unicode/UTF-8)</a></li>
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
|
|
[% END %]
|