Lines 168-179
Link Here
|
168 |
|
168 |
|
169 |
[% SET mv = ite.marc_value %] |
169 |
[% SET mv = ite.marc_value %] |
170 |
[% IF ( mv.type == 'hidden' ) %] |
170 |
[% IF ( mv.type == 'hidden' ) %] |
171 |
<input type="hidden" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]"> |
171 |
<input type="hidden" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]"> |
172 |
[% ELSIF ( mv.type == 'select' ) %] |
172 |
[% ELSIF ( mv.type == 'select' ) %] |
173 |
[% IF ( mv.readonly || ite.IS_RETURN_CLAIM ) %] |
173 |
[% IF ( mv.readonly || ite.IS_RETURN_CLAIM ) %] |
174 |
<select name="field_value" id="[%- mv.id | html -%]" class="input_marceditor" readonly="readonly" disabled="disabled" data-width="50%"> |
174 |
<select name="field_value" id="[%- mv.id | html -%]" class="input_marceditor [% ite.kohafield | html %]" readonly="readonly" disabled="disabled" data-width="50%"> |
175 |
[% ELSE %] |
175 |
[% ELSE %] |
176 |
<select name="field_value" id="[%- mv.id | html -%]" class="input_marceditor" data-category="[% mv.category | html %]" data-width="50%"> |
176 |
<select name="field_value" id="[%- mv.id | html -%]" class="input_marceditor [% ite.kohafield | html %]" data-category="[% mv.category | html %]" data-width="50%"> |
177 |
[% END %] |
177 |
[% END %] |
178 |
[% FOREACH aval IN mv.values %] |
178 |
[% FOREACH aval IN mv.values %] |
179 |
[% IF aval == mv.default %] |
179 |
[% IF aval == mv.default %] |
Lines 189-205
Link Here
|
189 |
</select> |
189 |
</select> |
190 |
[% ELSIF ( mv.type == 'text_auth' ) %] |
190 |
[% ELSIF ( mv.type == 'text_auth' ) %] |
191 |
[% IF mv.readonly %] |
191 |
[% IF mv.readonly %] |
192 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
192 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
193 |
[% ELSE %] |
193 |
[% ELSE %] |
194 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
194 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
195 |
[% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %] |
195 |
[% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %] |
196 |
<a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a> |
196 |
<a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a> |
197 |
[% END %] |
197 |
[% END %] |
198 |
[% ELSIF ( mv.type == 'text_plugin' ) %] |
198 |
[% ELSIF ( mv.type == 'text_plugin' ) %] |
199 |
[% IF mv.readonly %] |
199 |
[% IF mv.readonly %] |
200 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
200 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
201 |
[% ELSE %] |
201 |
[% ELSE %] |
202 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
202 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
203 |
[% IF ( mv.nopopup ) %] |
203 |
[% IF ( mv.nopopup ) %] |
204 |
<a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a> |
204 |
<a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a> |
205 |
[% ELSE %] |
205 |
[% ELSE %] |
Lines 209-223
Link Here
|
209 |
[% END %] |
209 |
[% END %] |
210 |
[% ELSIF ( mv.type == 'text' ) %] |
210 |
[% ELSIF ( mv.type == 'text' ) %] |
211 |
[% IF mv.readonly %] |
211 |
[% IF mv.readonly %] |
212 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
212 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
213 |
[% ELSE %] |
213 |
[% ELSE %] |
214 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
214 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
215 |
[% END %] |
215 |
[% END %] |
216 |
[% ELSIF ( mv.type == 'textarea' ) %] |
216 |
[% ELSIF ( mv.type == 'textarea' ) %] |
217 |
[% IF mv.readonly %] |
217 |
[% IF mv.readonly %] |
218 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea> |
218 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea> |
219 |
[% ELSE %] |
219 |
[% ELSE %] |
220 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" rows="5" cols="64" >[% mv.value | html %]</textarea> |
220 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" rows="5" cols="64" >[% mv.value | html %]</textarea> |
221 |
[% END %] |
221 |
[% END %] |
222 |
[% END %] |
222 |
[% END %] |
223 |
|
223 |
|
Lines 244-250
Link Here
|
244 |
[% IF volumes.count && op != 'saveitem' %] |
244 |
[% IF volumes.count && op != 'saveitem' %] |
245 |
<fieldset class="rows"> |
245 |
<fieldset class="rows"> |
246 |
<legend><i class="fa fa-plus"></i> Add to volume</legend> |
246 |
<legend><i class="fa fa-plus"></i> Add to volume</legend> |
247 |
|
247 |
[% FOREACH v IN volumes %] |
|
|
248 |
<input type="hidden" id="volume-[% v.id | html %]" value="[% v.description | html %]" /> |
249 |
[% END %] |
248 |
<p> |
250 |
<p> |
249 |
<label for="select_volume">Options: </label> |
251 |
<label for="select_volume">Options: </label> |
250 |
<select name="volume" id="volume-add-or-create-form-select"> |
252 |
<select name="volume" id="volume-add-or-create-form-select"> |