Nick Clemens
695ce65132
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
34 lines
1.9 KiB
HTML
34 lines
1.9 KiB
HTML
[% USE AuthorisedValues %]
|
|
[% IF wrap_fieldset != 0 %]
|
|
<fieldset class="rows">
|
|
<legend>Additional fields</legend>
|
|
<ol>
|
|
[% END %]
|
|
[% FOR field IN available %]
|
|
<li>
|
|
<label for="additional_field_[% field.id | html %]"> [% field.name | html %]: </label>
|
|
[% IF field.authorised_value_category %]
|
|
<select name="additional_field_[% field.id | html %]" id="additional_field_[% field.id | html %]">
|
|
<option value="">All</option>
|
|
[% FOREACH av IN AuthorisedValues.GetAuthValueDropbox( field.authorised_value_category ) %]
|
|
[% IF av.authorised_value == values.${field.id} %]
|
|
<option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select> (Authorised values for [% field.authorised_value_category | html %])
|
|
[% ELSE %]
|
|
[% IF field.marcfield %]
|
|
<input type="text" value="[% values.${field.id} | html %]" id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]" readonly="readonly" />
|
|
This value will be filled with the [% field.marcfield | html %] subfield of the selected biblio.
|
|
[% ELSE %]
|
|
<input type="text" value="[% values.${field.id} | html %]" id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]" />
|
|
[% END %]
|
|
[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% IF wrap_fieldset != 0 %]
|
|
</ol>
|
|
</fieldset>
|
|
[% END %]
|