[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Authority types
[% IF op == 'add_form' %]
-› [% IF authority_type.authtypecode %]Modify authority type[% ELSE %]New authority type[% END %]
+› [% IF authority_type.authtypecode.defined %]Modify authority type[% ELSE %]New authority type[% END %]
[% ELSIF op == 'delete_confirm' %]
› Confirm deletion of authority type
[% END %]
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
› <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
[% IF op == 'add_form' %]
-› [% IF authority_type.authtypecode %]Modify[% ELSE %]New[% END %] Authority type
+› [% IF authority_type.authtypecode.defined %]Modify[% ELSE %]New[% END %] Authority type
[% ELSIF op == 'delete_confirm' %]
› Confirm deletion of authority type
[% END %]
<form action="/cgi-bin/koha/admin/authtypes.pl" name="Aform" method="post" class="validated">
<fieldset class="rows">
<legend>
- [% IF authority_type.authtypecode %]
+ [% IF authority_type.authtypecode.defined %]
Modify authority type
[% ELSE %]
New authority type
</legend>
<ol>
<li>
- [% IF authority_type.authtypecode %]
+ [% IF authority_type.authtypecode.defined %]
<span class="label">Authority type</span>
<input type="hidden" name="op" value="add_validate" />
<input type="hidden" name="checked" value="0" />
<label for="auth_tag_to_report">Authority field to copy: </label>
<input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report %]" />
<input type="hidden" name="op" value="add_validate" />
- [% IF authority_type.authtypecode %]
+ [% IF authority_type.authtypecode.defined %]
<input type="hidden" name="is_a_modif" value="1" />
[% END %]
</li>