Lines 21-51
Link Here
|
21 |
<span class="required">Required</span> |
21 |
<span class="required">Required</span> |
22 |
</li> |
22 |
</li> |
23 |
<li> |
23 |
<li> |
24 |
<label for="tagfield" required="required">MARC field: </label> |
24 |
<label class="required" for="tagfield">MARC field: </label> |
25 |
<select id="tagfield" name="tagfield" class="required" required="required"> |
25 |
[% IF field && field.tagfield == tagfield %] |
26 |
[% FOREACH tagfield IN ['001'..'999'] %] |
26 |
<input type="text" id="tagfield" name="tagfield" maxlength="3" size="3" class="required" required="required" value="[% tagfield | html %]" /> |
27 |
[% IF field && field.tagfield == tagfield %] |
27 |
[% ELSE %] |
28 |
<option value="[% tagfield | html %]" selected="selected">[% tagfield | html %]</option> |
28 |
<input type="text" id="tagfield" name="tagfield" maxlenght="3" size="3" class="required" required="required" /> |
29 |
[% ELSE %] |
29 |
[% END %] |
30 |
<option value="[% tagfield | html %]">[% tagfield | html %]</option> |
|
|
31 |
[% END %] |
32 |
[% END %] |
33 |
</select> |
34 |
<span class="required">Required</span> |
30 |
<span class="required">Required</span> |
35 |
</li> |
31 |
</li> |
36 |
<li> |
32 |
<li> |
37 |
<label for="tagsubfield">MARC subfield: </label> |
33 |
<label for="tagsubfield">MARC subfield: </label> |
38 |
<select id="tagsubfield" name="tagsubfield"> |
34 |
[% IF field && field.tagsubfield == tagsubfield %] |
39 |
[% codes = [''] %] |
35 |
<input type="text" id="tagsubfield" name="tagsubfield" maxlength="1" size="1" value="[% tagsubfield | html %]" /> |
40 |
[% codes = codes.merge([0..9], ['a'..'z']) %] |
36 |
[% ELSE %] |
41 |
[% FOREACH tagsubfield IN codes %] |
37 |
<input type="text" id="tagsubfield" name="tagsubfield" maxlength="1" size="1" /> |
42 |
[% IF field && field.tagsubfield == tagsubfield %] |
38 |
[% END %] |
43 |
<option value="[% tagsubfield | html %]" selected="selected">[% tagsubfield | html %]</option> |
|
|
44 |
[% ELSE %] |
45 |
<option value="[% tagsubfield | html %]">[% tagsubfield | html %]</option> |
46 |
[% END %] |
47 |
[% END %] |
48 |
</select> |
49 |
</li> |
39 |
</li> |
50 |
<li> |
40 |
<li> |
51 |
<label for="authorised_values_category">Authorised values category: </label> |
41 |
<label for="authorised_values_category">Authorised values category: </label> |
52 |
- |
|
|