Lines 23-40
Link Here
|
23 |
<li> |
23 |
<li> |
24 |
<label class="required" for="tagfield">MARC field: </label> |
24 |
<label class="required" for="tagfield">MARC field: </label> |
25 |
[% IF field && field.tagfield == tagfield %] |
25 |
[% IF field && field.tagfield == tagfield %] |
26 |
<input type="text" id="tagfield" name="tagfield" maxlength="3" size="3" class="required" required="required" value="[% tagfield | html %] /> |
26 |
<input type="text" id="tagfield" name="tagfield" maxlength="3" size="3" class="required" pattern="[a-zA-Z0-9]+" required="required" value="[% tagfield | html %]" /> |
27 |
[% ELSE %] |
27 |
[% ELSE %] |
28 |
<input type="text" id="tagfield" name="tagfield" maxlenght="3" size="3" class="required" required="required" /> |
28 |
<input type="text" id="tagfield" name="tagfield" maxlenght="3" size="3" class="required" pattern="[a-zA-Z0-9]+" required="required" /> |
29 |
[% END %] |
29 |
[% END %] |
30 |
<span class="required">Required</span> |
30 |
<span class="required">Required</span> |
31 |
</li> |
31 |
</li> |
32 |
<li> |
32 |
<li> |
33 |
<label for="tagsubfield">MARC subfield: </label> |
33 |
<label for="tagsubfield">MARC subfield: </label> |
34 |
[% IF field && field.tagsubfield == tagsubfield %] |
34 |
[% IF field && field.tagsubfield == tagsubfield %] |
35 |
<input type="text" id="tagsubfield" name="tagsubfield" maxlength="1" size="1" value="[% tagsubfield | html %]" /> |
35 |
<input type="text" id="tagsubfield" name="tagsubfield" pattern="[a-zA-Z0-9]+" maxlength="1" size="1" value="[% tagsubfield | html %]" /> |
36 |
[% ELSE %] |
36 |
[% ELSE %] |
37 |
<input type="text" id="tagsubfield" name="tagsubfield" maxlength="1" size="1" /> |
37 |
<input type="text" id="tagsubfield" name="tagsubfield" pattern="[a-zA-Z0-9]+" maxlength="1" size="1" /> |
38 |
[% END %] |
38 |
[% END %] |
39 |
</li> |
39 |
</li> |
40 |
<li> |
40 |
<li> |