Lines 158-169
Link Here
|
158 |
|
158 |
|
159 |
[% SET mv = ite.marc_value %] |
159 |
[% SET mv = ite.marc_value %] |
160 |
[% IF ( mv.type == 'hidden' ) %] |
160 |
[% IF ( mv.type == 'hidden' ) %] |
161 |
<input type="hidden" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]"> |
161 |
<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 -%]"> |
162 |
[% ELSIF ( mv.type == 'select' ) %] |
162 |
[% ELSIF ( mv.type == 'select' ) %] |
163 |
[% IF ( mv.readonly ) %] |
163 |
[% IF ( mv.readonly ) %] |
164 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor" readonly="readonly" disabled="disabled"> |
164 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor [% ite.kohafield | html %]" readonly="readonly" disabled="disabled"> |
165 |
[% ELSE %] |
165 |
[% ELSE %] |
166 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor"> |
166 |
<select name="field_value" id="[%- mv.id | html -%]" size="1" class="input_marceditor [% ite.kohafield | html %]"> |
167 |
[% END %] |
167 |
[% END %] |
168 |
[% FOREACH aval IN mv.values %] |
168 |
[% FOREACH aval IN mv.values %] |
169 |
[% IF aval == mv.default %] |
169 |
[% IF aval == mv.default %] |
Lines 175-191
Link Here
|
175 |
</select> |
175 |
</select> |
176 |
[% ELSIF ( mv.type == 'text_auth' ) %] |
176 |
[% ELSIF ( mv.type == 'text_auth' ) %] |
177 |
[% IF mv.readonly %] |
177 |
[% IF mv.readonly %] |
178 |
<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" /> |
178 |
<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" /> |
179 |
[% ELSE %] |
179 |
[% ELSE %] |
180 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
180 |
<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 -%]" /> |
181 |
[% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %] |
181 |
[% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %] |
182 |
<a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a> |
182 |
<a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a> |
183 |
[% END %] |
183 |
[% END %] |
184 |
[% ELSIF ( mv.type == 'text_plugin' ) %] |
184 |
[% ELSIF ( mv.type == 'text_plugin' ) %] |
185 |
[% IF mv.readonly %] |
185 |
[% IF mv.readonly %] |
186 |
<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" /> |
186 |
<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" /> |
187 |
[% ELSE %] |
187 |
[% ELSE %] |
188 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
188 |
<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 -%]" /> |
189 |
[% IF ( mv.nopopup ) %] |
189 |
[% IF ( mv.nopopup ) %] |
190 |
<a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a> |
190 |
<a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a> |
191 |
[% ELSE %] |
191 |
[% ELSE %] |
Lines 195-209
Link Here
|
195 |
[% END %] |
195 |
[% END %] |
196 |
[% ELSIF ( mv.type == 'text' ) %] |
196 |
[% ELSIF ( mv.type == 'text' ) %] |
197 |
[% IF mv.readonly %] |
197 |
[% IF mv.readonly %] |
198 |
<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" /> |
198 |
<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" /> |
199 |
[% ELSE %] |
199 |
[% ELSE %] |
200 |
<input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
200 |
<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 -%]" /> |
201 |
[% END %] |
201 |
[% END %] |
202 |
[% ELSIF ( mv.type == 'textarea' ) %] |
202 |
[% ELSIF ( mv.type == 'textarea' ) %] |
203 |
[% IF mv.readonly %] |
203 |
[% IF mv.readonly %] |
204 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea> |
204 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea> |
205 |
[% ELSE %] |
205 |
[% ELSE %] |
206 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" rows="5" cols="64" >[% mv.value | html %]</textarea> |
206 |
<textarea id="[%- mv.id | html -%]" name="field_value" class="input_marceditor [% ite.kohafield | html %]" rows="5" cols="64" >[% mv.value | html %]</textarea> |
207 |
[% END %] |
207 |
[% END %] |
208 |
[% END %] |
208 |
[% END %] |
209 |
|
209 |
|
Lines 230-236
Link Here
|
230 |
[% IF volumes.count && op != 'saveitem' %] |
230 |
[% IF volumes.count && op != 'saveitem' %] |
231 |
<fieldset class="rows"> |
231 |
<fieldset class="rows"> |
232 |
<legend><i class="fa fa-plus"></i> Add to volume</legend> |
232 |
<legend><i class="fa fa-plus"></i> Add to volume</legend> |
233 |
|
233 |
[% FOREACH v IN volumes %] |
|
|
234 |
<input type="hidden" id="volume-[% v.id | html %]" value="[% v.description | html %]" /> |
235 |
[% END %] |
234 |
<p> |
236 |
<p> |
235 |
<label for="select_volume">Options: </label> |
237 |
<label for="select_volume">Options: </label> |
236 |
<select name="volume" id="volume-add-or-create-form-select"> |
238 |
<select name="volume" id="volume-add-or-create-form-select"> |