Bug 7125: make MARC framework tag form not suggest that one can change the form
When you edit an existing tag in a MARC framework the form makes it appear as if you can change the tag number when in fact you cannot. This patch changes the template so that the tag number does not appear as an editable form field during the edit process. To test, apply the patch and open an existing MARC framework in Adminstration -> MARC bibliographic framework. - Choose an existing tag from the list and click 'Edit.' - The line labeled "Tag" should display the tag as text. - Making a change to any of the tag's details should work correctly. - Return to the list of the MARC framework's tags. - Click 'New tag.' - The line labeled "Tag" should display a blank form field. - Create a new tag and confirm that it saves correctly. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Work as describes, on edit and new. No koha-qa errors Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Work as described, template change only. Checked editing and adding tags. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
adbbefe720
commit
f402bcc540
1 changed files with 12 additions and 1 deletions
|
@ -64,7 +64,18 @@ $(document).ready(function() {
|
|||
<fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %]Modify tag <input type="hidden" name="modif" value="1" />[% searchfield %][% END %][% IF ( heading_add_tag_p ) %]Add tag[% END %][% ELSE %][% action %][% END %]</legend> <input type="hidden" name="op" value="add_validate" />
|
||||
<input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
|
||||
|
||||
<ol> <li><label for="tagfield" class="required">Tag: </label><input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" /> <span class="required">Required</span></li>
|
||||
<ol>
|
||||
<li>
|
||||
[% IF ( heading_modify_tag_p ) %]
|
||||
<input type="hidden" name="tagfield" value="[% searchfield %]" />
|
||||
<span class="label">Tag:</span>
|
||||
[% searchfield %]
|
||||
[% ELSE %]
|
||||
<label for="tagfield" class="required">Tag: </label>
|
||||
<input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" />
|
||||
<span class="required">Required</span>
|
||||
[% END %]
|
||||
</li>
|
||||
<li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
|
||||
<li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
|
||||
<li><label for="repeatable">Repeatable: </label>
|
||||
|
|
Loading…
Reference in a new issue