4e278782f1
This patch removes only instance in this file To test: 1. Apply the patch 2. (Esay way) Put on staff URL /cgi-bin/koha/services/itemrecorddisplay.pl?biblionumber=N&itemnumber=M 3. Code replaced corresponds to pulldowns, verify information is correct (check with another item edit view) PrepareItemrecordDisplay() in Items.pm is filled with chunks of HTML code that must be put on TT file. For now scrolling_list is the only removed. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Tested different item edit displays and the URL given above, no regressions found. Also passes all tests and QA script. Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
36 lines
1.6 KiB
Text
36 lines
1.6 KiB
Text
<ol>
|
|
[% FOREACH iteminfo IN iteminformation %]
|
|
[% IF ( iteminfo.hidden ) %]
|
|
<li style="[% iteminfo.hidden %];">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<div class="subfield_line" id="subfield[% iteminfo.serialid %][% iteminfo.countitems %][% iteminfo.subfield %][% iteminfo.random %]">
|
|
[% IF (iteminfo.mandatory) %]
|
|
<label class="required">[% iteminfo.subfield %] - [% iteminfo.marc_lib %]</label>
|
|
[% ELSE %]
|
|
<label>[% iteminfo.subfield %] - [% iteminfo.marc_lib %]</label>
|
|
[% END %]
|
|
[% IF ( iteminfo.marc_value.type == 'select' ) %]
|
|
<select name="field_value" size="1">
|
|
[% FOREACH value IN iteminfo.marc_value.values %]
|
|
[% IF ( value == iteminfo.marc_value.default ) %]
|
|
<option value="[% value %]" selected="selected">[% iteminfo.marc_value.labels.$value %]</option>
|
|
[% ELSE %]
|
|
<option value="[% value %]">[% iteminfo.marc_value.labels.$value %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
[% ELSE %]
|
|
[% iteminfo.marc_value %]
|
|
[% END %]
|
|
<input type="hidden" name="itemid" value="1" />
|
|
<input type="hidden" name="kohafield" value="[% iteminfo.kohafield %]" />
|
|
<input type="hidden" name="tag" value="[% iteminfo.tag %]" />
|
|
<input type="hidden" name="subfield" value="[% iteminfo.subfield %]" />
|
|
<input type="hidden" name="mandatory" value="[% iteminfo.mandatory %]" />
|
|
[% IF (iteminfo.mandatory) %] <span class="required">Required</span>[% END %]
|
|
</div>
|
|
</li>
|
|
[% END %]
|
|
</ol>
|