Lines 161-172
Link Here
|
161 |
|
161 |
|
162 |
[% SET mv = ite.marc_value %] |
162 |
[% SET mv = ite.marc_value %] |
163 |
[% IF ( mv.type == 'hidden' ) %] |
163 |
[% IF ( mv.type == 'hidden' ) %] |
164 |
<input type="hidden" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]"> |
164 |
<input type="hidden" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]"> |
165 |
[% ELSIF ( mv.type == 'select' ) %] |
165 |
[% ELSIF ( mv.type == 'select' ) %] |
166 |
[% IF ( mv.readonly || ite.IS_RETURN_CLAIM ) %] |
166 |
[% IF ( mv.readonly || ite.IS_RETURN_CLAIM ) %] |
167 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor" readonly="readonly" disabled="disabled"> |
167 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor [% ite.kohafield | html %]" readonly="readonly" disabled="disabled"> |
168 |
[% ELSE %] |
168 |
[% ELSE %] |
169 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor" data-category="[% mv.category | html %]"> |
169 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor [% ite.kohafield | html %]" data-category="[% mv.category | html %]"> |
170 |
[% END %] |
170 |
[% END %] |
171 |
[% FOREACH aval IN mv.values %] |
171 |
[% FOREACH aval IN mv.values %] |
172 |
[% IF aval == mv.default %] |
172 |
[% IF aval == mv.default %] |
Lines 182-198
Link Here
|
182 |
</select> |
182 |
</select> |
183 |
[% ELSIF ( mv.type == 'text_auth' ) %] |
183 |
[% ELSIF ( mv.type == 'text_auth' ) %] |
184 |
[% IF mv.readonly %] |
184 |
[% IF mv.readonly %] |
185 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
185 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
186 |
[% ELSE %] |
186 |
[% ELSE %] |
187 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
187 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
188 |
[% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %] |
188 |
[% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %] |
189 |
<a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a> |
189 |
<a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a> |
190 |
[% END %] |
190 |
[% END %] |
191 |
[% ELSIF ( mv.type == 'text_plugin' ) %] |
191 |
[% ELSIF ( mv.type == 'text_plugin' ) %] |
192 |
[% IF mv.readonly %] |
192 |
[% IF mv.readonly %] |
193 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
193 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
194 |
[% ELSE %] |
194 |
[% ELSE %] |
195 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
195 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
196 |
[% IF ( mv.nopopup ) %] |
196 |
[% IF ( mv.nopopup ) %] |
197 |
<a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a> |
197 |
<a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a> |
198 |
[% ELSE %] |
198 |
[% ELSE %] |
Lines 202-216
Link Here
|
202 |
[% END %] |
202 |
[% END %] |
203 |
[% ELSIF ( mv.type == 'text' ) %] |
203 |
[% ELSIF ( mv.type == 'text' ) %] |
204 |
[% IF mv.readonly %] |
204 |
[% IF mv.readonly %] |
205 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
205 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" /> |
206 |
[% ELSE %] |
206 |
[% ELSE %] |
207 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
207 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
208 |
[% END %] |
208 |
[% END %] |
209 |
[% ELSIF ( mv.type == 'textarea' ) %] |
209 |
[% ELSIF ( mv.type == 'textarea' ) %] |
210 |
[% IF mv.readonly %] |
210 |
[% IF mv.readonly %] |
211 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea> |
211 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea> |
212 |
[% ELSE %] |
212 |
[% ELSE %] |
213 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" rows="5" cols="64" >[% mv.value | html %]</textarea> |
213 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" rows="5" cols="64" >[% mv.value | html %]</textarea> |
214 |
[% END %] |
214 |
[% END %] |
215 |
[% END %] |
215 |
[% END %] |
216 |
|
216 |
|
Lines 237-243
Link Here
|
237 |
[% IF volumes.count && op != 'saveitem' %] |
237 |
[% IF volumes.count && op != 'saveitem' %] |
238 |
<fieldset class="rows"> |
238 |
<fieldset class="rows"> |
239 |
<legend><i class="fa fa-plus"></i> Add to volume</legend> |
239 |
<legend><i class="fa fa-plus"></i> Add to volume</legend> |
240 |
|
240 |
[% FOREACH v IN volumes %] |
|
|
241 |
<input type="hidden" id="volume-[% v.id | html %]" value="[% v.description | html %]" /> |
242 |
[% END %] |
241 |
<p> |
243 |
<p> |
242 |
<label for="select_volume">Options: </label> |
244 |
<label for="select_volume">Options: </label> |
243 |
<select name="volume" id="volume-add-or-create-form-select"> |
245 |
<select name="volume" id="volume-add-or-create-form-select"> |