Lines 124-137
Link Here
|
124 |
<input type="hidden" name="tagfield" value="[% tagfield | html %]" /> |
124 |
<input type="hidden" name="tagfield" value="[% tagfield | html %]" /> |
125 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" /> |
125 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" /> |
126 |
|
126 |
|
|
|
127 |
[% BLOCK outputsubfield %][% FILTER collapse %] |
128 |
[% SWITCH ( subfieldanchor ) %] |
129 |
[% CASE "@" %] |
130 |
AT |
131 |
[% CASE "%" %] |
132 |
% |
133 |
[% CASE %] |
134 |
[% subfieldanchor | html %] |
135 |
[% END %] |
136 |
[% END %][% END %] |
137 |
|
127 |
<div id="subfieldtabs" class="toptabs numbered"> |
138 |
<div id="subfieldtabs" class="toptabs numbered"> |
128 |
<ul> |
139 |
<ul class="nav nav-tabs" role="tablist"> |
129 |
[% FOREACH loo IN loop %] |
140 |
[% FOREACH loo IN loop %] |
130 |
<li id="tab_subfield_[% loo.urisubfieldcode | html %]"> |
141 |
<li id="tab_subfield_[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="tab-item" role="presentation"> |
131 |
[% IF ( loo.new_subfield ) %] |
142 |
[% IF ( loo.new_subfield ) %] |
132 |
<a href="#sub[% loo.urisubfieldcode | uri %]field" title="[% loo.liblibrarian | html_entity %]">New</a> |
143 |
<a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-toggle="tab" title="[% loo.liblibrarian | html_entity %]">New</a> |
133 |
[% ELSE %] |
144 |
[% ELSE %] |
134 |
<a href="#sub[% loo.urisubfieldcode | uri %]field" title="[% loo.liblibrarian | html_entity %]"> |
145 |
<a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-toggle="tab" title="[% loo.liblibrarian | html_entity %]"> |
135 |
[% loo.subfieldcode | html %] |
146 |
[% loo.subfieldcode | html %] |
136 |
</a> |
147 |
</a> |
137 |
[% END %] |
148 |
[% END %] |
Lines 139-328
Link Here
|
139 |
[% END %] |
150 |
[% END %] |
140 |
</ul> |
151 |
</ul> |
141 |
|
152 |
|
142 |
[% FOREACH loo IN loop %] |
153 |
<div class="tab-content"> |
143 |
<div class="constraints" id="sub[% loo.urisubfieldcode | uri %]field"> |
154 |
|
144 |
<div id="basic[% loo.urisubfieldcode | html %]" class="contraints"> |
155 |
[% FOREACH loo IN loop %] |
145 |
<fieldset class="rows"> |
156 |
<div class="constraints tab-pane" role="tabpanel" id="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field"> |
146 |
<legend>Basic constraints</legend> |
157 |
<div id="basic[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints"> |
147 |
<ol> |
158 |
<fieldset class="rows"> |
148 |
[% IF ( subfieldcode == 0 || subfieldcode ) %] |
159 |
<legend>Basic constraints</legend> |
149 |
<li> |
160 |
<ol> |
150 |
<span class="label">Subfield code:</span> |
161 |
[% IF ( subfieldcode == 0 || subfieldcode ) %] |
151 |
[% loo.subfieldcode | html %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode | html %]" /> |
162 |
<li> |
152 |
</li> |
163 |
<span class="label">Subfield code:</span> |
153 |
[% ELSE %] |
164 |
[% loo.subfieldcode | html %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode | html %]" /> |
154 |
<li> |
|
|
155 |
<label for="tagsubfield[% loo.row | html %]">Subfield code:</label> |
156 |
<input type="text" id="tagsubfield[% loo.row | html %]" name="tagsubfield" value="[% loo.subfieldcode | html %]" /> |
157 |
</li> |
165 |
</li> |
158 |
[% END %] |
|
|
159 |
<li> |
160 |
<label for="liblibrarian[% loo.row | html %]">Text for librarian: </label> |
161 |
<input id="liblibrarian[% loo.row | html %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" /> |
162 |
</li> |
163 |
<li> |
164 |
<label for="libopac[% loo.row | html %]">Text for OPAC: </label> |
165 |
<input type="text" id="libopac[% loo.row | html %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" /> |
166 |
</li> |
167 |
<li> |
168 |
<label for="repeatable[% loo.row | html %]">Repeatable: </label> |
169 |
[% IF loo.repeatable %] |
170 |
<input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" checked="checked" value="1" /> |
171 |
[% ELSE %] |
166 |
[% ELSE %] |
172 |
<input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" value="1" /> |
167 |
<li> |
|
|
168 |
<label for="tagsubfield[% loo.row | html %]">Subfield code:</label> |
169 |
<input type="text" id="tagsubfield[% loo.row | html %]" name="tagsubfield" value="[% loo.subfieldcode | html %]" /> |
170 |
</li> |
173 |
[% END %] |
171 |
[% END %] |
174 |
</li> |
172 |
<li> |
175 |
<li> |
173 |
<label for="liblibrarian[% loo.row | html %]">Text for librarian: </label> |
176 |
<label for="mandatory[% loo.row | html %]">Mandatory: </label> |
174 |
<input id="liblibrarian[% loo.row | html %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" /> |
177 |
[% IF loo.mandatory %] |
175 |
</li> |
178 |
<input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" checked="checked" value="1" /> |
176 |
<li> |
179 |
[% ELSE %] |
177 |
<label for="libopac[% loo.row | html %]">Text for OPAC: </label> |
180 |
<input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" value="1" /> |
178 |
<input type="text" id="libopac[% loo.row | html %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" /> |
181 |
[% END %] |
179 |
</li> |
182 |
</li> |
180 |
<li> |
183 |
<li> |
181 |
<label for="repeatable[% loo.row | html %]">Repeatable: </label> |
184 |
<label for="important[% loo.row | html %]">Important: </label> |
182 |
[% IF loo.repeatable %] |
185 |
[% IF loo.important %] |
183 |
<input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" checked="checked" value="1" /> |
186 |
<input type="checkbox" id="important[% loo.row | html %]" name="important[% loo.row | html %]" checked="checked" value="1" /> |
184 |
[% ELSE %] |
187 |
[% ELSE %] |
185 |
<input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" value="1" /> |
188 |
<input type="checkbox" id="important[% loo.row | html %]" name="important[% loo.row | html %]" value="1" /> |
186 |
[% END %] |
189 |
[% END %] |
187 |
</li> |
190 |
</li> |
188 |
<li> |
191 |
<li><label for="tab[% loo.row | html %]">Managed in tab: </label> |
189 |
<label for="mandatory[% loo.row | html %]">Mandatory: </label> |
192 |
<select name="tab" tabindex="" id="tab[% loo.row | html %]"> |
190 |
[% IF loo.mandatory %] |
193 |
[%- IF ( loo.tab == -1 ) -%] |
191 |
<input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" checked="checked" value="1" /> |
194 |
<option value="-1" selected="selected">ignore</option> |
192 |
[% ELSE %] |
195 |
[%- ELSE -%] |
193 |
<input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" value="1" /> |
196 |
<option value="-1">ignore</option> |
194 |
[% END %] |
197 |
[%- END -%] |
195 |
</li> |
198 |
[%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] -%] |
196 |
<li> |
199 |
[%- IF ( loo.tab == t ) -%] |
197 |
<label for="important[% loo.row | html %]">Important: </label> |
200 |
<option value="[%- t | html -%]" selected="selected">[%- t | html -%]</option> |
198 |
[% IF loo.important %] |
|
|
199 |
<input type="checkbox" id="important[% loo.row | html %]" name="important[% loo.row | html %]" checked="checked" value="1" /> |
200 |
[% ELSE %] |
201 |
<input type="checkbox" id="important[% loo.row | html %]" name="important[% loo.row | html %]" value="1" /> |
202 |
[% END %] |
203 |
</li> |
204 |
<li><label for="tab[% loo.row | html %]">Managed in tab: </label> |
205 |
<select name="tab" tabindex="" id="tab[% loo.row | html %]"> |
206 |
[%- IF ( loo.tab == -1 ) -%] |
207 |
<option value="-1" selected="selected">ignore</option> |
201 |
[%- ELSE -%] |
208 |
[%- ELSE -%] |
202 |
<option value="[%- t | html -%]">[%- t | html -%]</option> |
209 |
<option value="-1">ignore</option> |
203 |
[%- END -%] |
210 |
[%- END -%] |
204 |
[%- END -%] |
211 |
[%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] -%] |
205 |
[%- IF ( loo.tab == 10 ) -%] |
212 |
[%- IF ( loo.tab == t ) -%] |
206 |
<option value="10" selected="selected">items (10)</option> |
213 |
<option value="[%- t | html -%]" selected="selected">[%- t | html -%]</option> |
207 |
[%- ELSE -%] |
214 |
[%- ELSE -%] |
208 |
<option value="10">items (10)</option> |
215 |
<option value="[%- t | html -%]">[%- t | html -%]</option> |
209 |
[%- END -%] |
216 |
[%- END -%] |
210 |
</select> |
217 |
[%- END -%] |
211 |
<div class="hint">Ignore means that the subfield does not display in the record editor</div> |
218 |
[%- IF ( loo.tab == 10 ) -%] |
212 |
</li> |
219 |
<option value="10" selected="selected">items (10)</option> |
213 |
</ol> |
220 |
[%- ELSE -%] |
214 |
</fieldset> <!-- /.rows --> |
221 |
<option value="10">items (10)</option> |
215 |
</div> <!-- /#basic[% loo.urisubfieldcode | html %] --> |
222 |
[%- END -%] |
216 |
|
223 |
</select> |
217 |
<div id="advanced[% loo.urisubfieldcode | html %]" class="contraints"> |
224 |
<div class="hint">Ignore means that the subfield does not display in the record editor</div> |
218 |
<fieldset class="rows"> |
225 |
</li> |
219 |
<legend>Advanced constraints</legend> |
226 |
</ol> |
220 |
<ol> |
227 |
</fieldset> <!-- /.rows --> |
221 |
<li> |
228 |
</div> <!-- /#basic[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] --> |
222 |
<label for="defaultvalue[% loo.row | html %]">Default value:</label> |
229 |
|
223 |
<input type="text" name="defaultvalue" id="defaultvalue[% loo.row | html %]" value="[% loo.defaultvalue | html %]" /> |
230 |
<div id="advanced[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints"> |
224 |
</li> |
231 |
<fieldset class="rows"> |
225 |
<li> |
232 |
<legend>Advanced constraints</legend> |
226 |
<label for="maxlength[% loo.row | html %]">Max length:</label> |
233 |
<ol> |
227 |
<input type="text" id="maxlength[% loo.row | html %]" name="maxlength" value="[% loo.maxlength | html %]" size="4" /> |
234 |
<li> |
228 |
</li> |
235 |
<label for="defaultvalue[% loo.row | html %]">Default value:</label> |
229 |
<li> |
236 |
<input type="text" name="defaultvalue" id="defaultvalue[% loo.row | html %]" value="[% loo.defaultvalue | html %]" /> |
230 |
[% IF loo.hidden_protected %] |
237 |
</li> |
231 |
<input type="hidden" id="hidden-[% loo.row | html %]" name="hidden" value="[% loo.hidden | html %]" data-koha-protected="1" /> |
238 |
<li> |
232 |
[% ELSE %] |
239 |
<label for="maxlength[% loo.row | html %]">Max length:</label> |
233 |
<input type="hidden" id="hidden-[% loo.row | html %]" name="hidden" value="[% loo.hidden | html %]" /> |
240 |
<input type="text" id="maxlength[% loo.row | html %]" name="maxlength" value="[% loo.maxlength | html %]" size="4" /> |
234 |
[% END %] |
241 |
</li> |
235 |
<label for="hidden[% loo.row | html %]">Visibility: </label> |
242 |
<li> |
236 |
<input type="checkbox" id="hidden_opac_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_opac_[% loo.row | html %]"/> |
243 |
[% IF loo.hidden_protected %] |
237 |
<label for="hidden_opac_[% loo.row | html %]" style="float: none;">OPAC</label> |
244 |
<input type="hidden" id="hidden-[% loo.row | html %]" name="hidden" value="[% loo.hidden | html %]" data-koha-protected="1" /> |
238 |
<input type="checkbox" id="hidden_intranet_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_intranet_[% loo.row | html %]"/> |
|
|
239 |
<label for="hidden_intranet_[% loo.row | html %]" style="float: none;">Intranet</label> |
240 |
<input type="checkbox" id="hidden_editor_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_editor_[% loo.row | html %]"/> |
241 |
<label for="hidden_editor_[% loo.row | html %]" style="float: none;">Editor</label> |
242 |
<input type="checkbox" id="hidden_collapsed_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_collapsed_[% loo.row | html %]"/> |
243 |
<label for="hidden_collapsed_[% loo.row | html %]" style="float: none;">Collapsed</label> |
244 |
<input type="checkbox" id="hidden_flagged_[% loo.row | html %]" name="flagged_[% loo.row | html %]"/> |
245 |
<label for="hidden_flagged_[% loo.row | html %]" style="float: none;">Flagged</label> |
246 |
</li> |
247 |
<li> |
248 |
<label for="isurl[% loo.row | html %]">Is a URL:</label> |
249 |
[% IF loo.isurl %] |
250 |
<input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" checked="checked" value="1" /> |
251 |
[% ELSE %] |
252 |
<input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" value="1" /> |
253 |
[% END %] |
254 |
<span class="hint">If checked, it means that the subfield is a URL and can be clicked</span> |
255 |
</li> |
256 |
<li> |
257 |
<label for="link[% loo.row | html %]">Link:</label> |
258 |
<input type="text" id="link[% loo.row | html %]" name="link" value="[% loo.link | html %]" size="10" maxlength="80" /> |
259 |
<div class="hint">An index name, e.g. title or Local-Number</div> |
260 |
</li> |
261 |
<li> |
262 |
<label for="kohafield[% loo.row | html %]">Koha link:</label> |
263 |
<!-- This select should be DISABLED; value is submitted by the following hidden input --> |
264 |
<select name="kohafield" id="kohafield[% loo.row | html %]" disabled> |
265 |
[% FOREACH value IN loo.kohafields %] |
266 |
[% IF ( value == loo.kohafield ) %] |
267 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
268 |
[% ELSE %] |
269 |
<option value="[% value | html %]">[% value | html %]</option> |
270 |
[% END %] |
271 |
[% END %] |
272 |
</select> |
273 |
<!-- Do NOT remove this next hidden input! We need it to save kohafield. --> |
274 |
<input type="hidden" name="kohafield" value="[% loo.kohafield | html %]"/> |
275 |
</li> |
276 |
</ol> |
277 |
</fieldset> <!-- /.rows --> |
278 |
</div> <!-- /#advanced[% loo.urisubfieldcode | html %] --> |
279 |
|
280 |
<div id="oth[% loo.urisubfieldcode | html %]" class="constraints"> |
281 |
<fieldset class="rows"> |
282 |
<legend>Other options (choose one)</legend> |
283 |
<ol> |
284 |
<li> |
285 |
<label for="authorised_value[% loo.row | html %]">Authorized value:</label> |
286 |
<select name="authorised_value" id="authorised_value[% loo.row | html %]"> |
287 |
<option value=""></option> |
288 |
[% FOREACH value IN loo.authorised_values %] |
289 |
[% IF ( value == loo.authorised_value ) %] |
290 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
291 |
[% ELSE %] |
245 |
[% ELSE %] |
292 |
<option value="[% value | html %]">[% value | html %]</option> |
246 |
<input type="hidden" id="hidden-[% loo.row | html %]" name="hidden" value="[% loo.hidden | html %]" /> |
293 |
[% END %] |
247 |
[% END %] |
294 |
[% END %] |
248 |
<label for="hidden[% loo.row | html %]">Visibility: </label> |
295 |
</select> |
249 |
<input type="checkbox" id="hidden_opac_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_opac_[% loo.row | html %]"/> |
296 |
</li> |
250 |
<label for="hidden_opac_[% loo.row | html %]" style="float: none;">OPAC</label> |
297 |
<li> |
251 |
<input type="checkbox" id="hidden_intranet_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_intranet_[% loo.row | html %]"/> |
298 |
<label for="authtypecode[% loo.row | html %]">Thesaurus:</label> |
252 |
<label for="hidden_intranet_[% loo.row | html %]" style="float: none;">Intranet</label> |
299 |
<select name="authtypecode" id="authtypecode[% loo.row | html %]"> |
253 |
<input type="checkbox" id="hidden_editor_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_editor_[% loo.row | html %]"/> |
300 |
[% FOREACH value IN loo.authtypes %] |
254 |
<label for="hidden_editor_[% loo.row | html %]" style="float: none;">Editor</label> |
301 |
[% IF ( value == loo.authtypecode ) %] |
255 |
<input type="checkbox" id="hidden_collapsed_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_collapsed_[% loo.row | html %]"/> |
302 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
256 |
<label for="hidden_collapsed_[% loo.row | html %]" style="float: none;">Collapsed</label> |
|
|
257 |
<input type="checkbox" id="hidden_flagged_[% loo.row | html %]" name="flagged_[% loo.row | html %]"/> |
258 |
<label for="hidden_flagged_[% loo.row | html %]" style="float: none;">Flagged</label> |
259 |
</li> |
260 |
<li> |
261 |
<label for="isurl[% loo.row | html %]">Is a URL:</label> |
262 |
[% IF loo.isurl %] |
263 |
<input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" checked="checked" value="1" /> |
303 |
[% ELSE %] |
264 |
[% ELSE %] |
304 |
<option value="[% value | html %]">[% value | html %]</option> |
265 |
<input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" value="1" /> |
305 |
[% END %] |
266 |
[% END %] |
306 |
[% END %] |
267 |
<span class="hint">If checked, it means that the subfield is a URL and can be clicked</span> |
307 |
</select> |
268 |
</li> |
308 |
</li> |
269 |
<li> |
309 |
<li> |
270 |
<label for="link[% loo.row | html %]">Link:</label> |
310 |
<label for="value_builder[% loo.row | html %]">Plugin:</label> |
271 |
<input type="text" id="link[% loo.row | html %]" name="link" value="[% loo.link | html %]" size="10" maxlength="80" /> |
311 |
<select name="value_builder" id="value_builder[% loo.row | html %]"> |
272 |
<div class="hint">An index name, e.g. title or Local-Number</div> |
312 |
[% FOREACH value IN loo.value_builders %] |
273 |
</li> |
313 |
[% IF ( value == loo.value_builder ) %] |
274 |
<li> |
|
|
275 |
<label for="kohafield[% loo.row | html %]">Koha link:</label> |
276 |
<!-- This select should be DISABLED; value is submitted by the following hidden input --> |
277 |
<select name="kohafield" id="kohafield[% loo.row | html %]" disabled> |
278 |
[% FOREACH value IN loo.kohafields %] |
279 |
[% IF ( value == loo.kohafield ) %] |
314 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
280 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
315 |
[% ELSE %] |
281 |
[% ELSE %] |
316 |
<option value="[% value | html %]">[% value | html %]</option> |
282 |
<option value="[% value | html %]">[% value | html %]</option> |
317 |
[% END %] |
283 |
[% END %] |
318 |
[% END %] |
284 |
[% END %] |
319 |
</select> |
285 |
</select> |
320 |
</li> |
286 |
<!-- Do NOT remove this next hidden input! We need it to save kohafield. --> |
321 |
</ol> |
287 |
<input type="hidden" name="kohafield" value="[% loo.kohafield | html %]"/> |
322 |
</fieldset> <!-- /.rows --> |
288 |
</li> |
323 |
</div> <!-- /#oth[% loo.urisubfieldcode | html %] --> |
289 |
</ol> |
324 |
</div><!-- /constraints --> |
290 |
</fieldset> <!-- /.rows --> |
325 |
[% END # /FOREACH loo %] |
291 |
</div> <!-- /#advanced[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] --> |
|
|
292 |
|
293 |
<div id="oth[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="constraints"> |
294 |
<fieldset class="rows"> |
295 |
<legend>Other options (choose one)</legend> |
296 |
<ol> |
297 |
<li> |
298 |
<label for="authorised_value[% loo.row | html %]">Authorized value:</label> |
299 |
<select name="authorised_value" id="authorised_value[% loo.row | html %]"> |
300 |
<option value=""></option> |
301 |
[% FOREACH value IN loo.authorised_values %] |
302 |
[% IF ( value == loo.authorised_value ) %] |
303 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
304 |
[% ELSE %] |
305 |
<option value="[% value | html %]">[% value | html %]</option> |
306 |
[% END %] |
307 |
[% END %] |
308 |
</select> |
309 |
</li> |
310 |
<li> |
311 |
<label for="authtypecode[% loo.row | html %]">Thesaurus:</label> |
312 |
<select name="authtypecode" id="authtypecode[% loo.row | html %]"> |
313 |
[% FOREACH value IN loo.authtypes %] |
314 |
[% IF ( value == loo.authtypecode ) %] |
315 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
316 |
[% ELSE %] |
317 |
<option value="[% value | html %]">[% value | html %]</option> |
318 |
[% END %] |
319 |
[% END %] |
320 |
</select> |
321 |
</li> |
322 |
<li> |
323 |
<label for="value_builder[% loo.row | html %]">Plugin:</label> |
324 |
<select name="value_builder" id="value_builder[% loo.row | html %]"> |
325 |
[% FOREACH value IN loo.value_builders %] |
326 |
[% IF ( value == loo.value_builder ) %] |
327 |
<option value="[% value | html %]" selected="selected">[% value | html %]</option> |
328 |
[% ELSE %] |
329 |
<option value="[% value | html %]">[% value | html %]</option> |
330 |
[% END %] |
331 |
[% END %] |
332 |
</select> |
333 |
</li> |
334 |
</ol> |
335 |
</fieldset> <!-- /.rows --> |
336 |
</div> <!-- /#oth[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%] --> |
337 |
</div><!-- /constraints --> |
338 |
[% END # /FOREACH loo %] |
339 |
</div> <!-- /.tab-content --> |
326 |
</div><!-- /subfieldtabs --> |
340 |
</div><!-- /subfieldtabs --> |
327 |
|
341 |
|
328 |
<fieldset class="action"> |
342 |
<fieldset class="action"> |
Lines 399-405
Link Here
|
399 |
[% END %] |
413 |
[% END %] |
400 |
</td> |
414 |
</td> |
401 |
<td class="actions"> |
415 |
<td class="actions"> |
402 |
<a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield | uri %]&frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
416 |
<a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
403 |
<a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&frameworkcode=[% frameworkcode | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a> |
417 |
<a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&frameworkcode=[% frameworkcode | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a> |
404 |
</td> |
418 |
</td> |
405 |
</tr> |
419 |
</tr> |
Lines 431-436
Link Here
|
431 |
[% MACRO jsinclude BLOCK %] |
445 |
[% MACRO jsinclude BLOCK %] |
432 |
[% INCLUDE 'datatables.inc' %] |
446 |
[% INCLUDE 'datatables.inc' %] |
433 |
[% Asset.js("js/admin-menu.js") | $raw %] |
447 |
[% Asset.js("js/admin-menu.js") | $raw %] |
|
|
448 |
<script> |
449 |
var tagsubfield = "[% tagsubfield | html %]"; |
450 |
</script> |
434 |
[% Asset.js("js/marc_subfields_structure.js") | $raw %] |
451 |
[% Asset.js("js/marc_subfields_structure.js") | $raw %] |
435 |
[% END %] |
452 |
[% END %] |
436 |
|
453 |
|