View | Details | Raw Unified | Return to bug 41827
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt (-144 / +181 lines)
Lines 139-182 Link Here
139
                    [% FOREACH loo IN loop %]
139
                    [% FOREACH loo IN loop %]
140
                        [% outputsubfield = PROCESS outputsubfield subfieldanchor = loo.tagsubfield %]
140
                        [% outputsubfield = PROCESS outputsubfield subfieldanchor = loo.tagsubfield %]
141
                        [% WRAPPER tab_panel tabname=outputsubfield %]
141
                        [% WRAPPER tab_panel tabname=outputsubfield %]
142
                            <fieldset class="rows"
142
                            <fieldset class="fg">
143
                                ><ol>
143
                                [% IF ( loo.new_subfield ) %]
144
                                    [% IF ( loo.new_subfield ) %]
144
                                    <div class="fg-row">
145
                                        <li>
145
                                        <div class="fg-label">
146
                                            <label for="tagsubfieldinput[% loo.row | html %]">Subfield code: </label>
146
                                            <label for="tagsubfieldinput[% loo.row | html %]">Subfield code: </label>
147
                                        </div>
148
                                        <div class="fg-input">
147
                                            <input type="text" name="tagsubfield" value="[% loo.tagsubfield | html %]" size="1" id="tagsubfield" maxlength="1" />
149
                                            <input type="text" name="tagsubfield" value="[% loo.tagsubfield | html %]" size="1" id="tagsubfield" maxlength="1" />
148
                                        </li>
150
                                        </div>
149
                                    [% ELSE %]
151
                                    </div>
150
                                        <li>
152
                                [% ELSE %]
151
                                            <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield | html %]" />
153
                                    <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield | html %]" />
152
                                        </li>
154
                                [% END %]
153
                                    [% END %]
155
                                <div class="fg-row input-checkbox">
154
                                    <li>
156
                                    <div class="fg-label">
155
                                        <label for="repeatable[% loo.row | html %]">Repeatable: </label>
157
                                        <label for="repeatable[% loo.row | html %]">Repeatable</label>
158
                                    </div>
159
                                    <div class="fg-input">
156
                                        [% IF loo.repeatable %]
160
                                        [% IF loo.repeatable %]
157
                                            <input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" checked="checked" value="1" />
161
                                            <input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" checked="checked" value="1" />
158
                                        [% ELSE %]
162
                                        [% ELSE %]
159
                                            <input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" value="1" />
163
                                            <input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable[% loo.row | html %]" value="1" />
160
                                        [% END %]
164
                                        [% END %]
161
                                    </li>
165
                                    </div>
162
                                    <li>
166
                                </div>
163
                                        <label for="mandatory[% loo.row | html %]">Mandatory: </label>
167
                                <div class="fg-row input-checkbox">
168
                                    <div class="fg-label">
169
                                        <label for="mandatory[% loo.row | html %]">Mandatory</label>
170
                                    </div>
171
                                    <div class="fg-input">
164
                                        [% IF loo.mandatory %]
172
                                        [% IF loo.mandatory %]
165
                                            <input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" checked="checked" value="1" />
173
                                            <input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" checked="checked" value="1" />
166
                                        [% ELSE %]
174
                                        [% ELSE %]
167
                                            <input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" value="1" />
175
                                            <input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory[% loo.row | html %]" value="1" />
168
                                        [% END %]
176
                                        [% END %]
169
                                    </li>
177
                                    </div>
170
                                    <li
178
                                </div>
171
                                        ><label for="liblibrarian[% loo.row | html %]">Description in staff interface: </label
179
                                <div class="fg-row">
172
                                        ><input id="liblibrarian[% loo.row | html %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="255"
180
                                    <div class="fg-label">
173
                                    /></li>
181
                                        <label for="liblibrarian[% loo.row | html %]">Description in staff interface: </label>
174
                                    <li
182
                                    </div>
175
                                        ><label for="libopac[% loo.row | html %]">Description in OPAC: </label
183
                                    <div class="fg-input">
176
                                        ><input type="text" id="libopac[% loo.row | html %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="255"
184
                                        <input id="liblibrarian[% loo.row | html %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="255" />
177
                                    /></li>
185
                                    </div>
178
                                    <li
186
                                </div>
179
                                        ><label for="tab[% loo.row | html %]">Managed in tab: </label>
187
                                <div class="fg-row">
188
                                    <div class="fg-label">
189
                                        <label for="libopac[% loo.row | html %]">Description in OPAC: </label>
190
                                    </div>
191
                                    <div class="fg-input">
192
                                        <input type="text" id="libopac[% loo.row | html %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="255" />
193
                                    </div>
194
                                </div>
195
                                <div class="fg-row input-sm">
196
                                    <div class="fg-label">
197
                                        <label for="tab[% loo.row | html %]">Managed in tab: </label>
198
                                    </div>
199
                                    <div class="fg-input">
180
                                        <select name="tab" id="tab[% loo.row | html %]">
200
                                        <select name="tab" id="tab[% loo.row | html %]">
181
                                            [%- IF ( loo.tab ==  -1 ) -%]
201
                                            [%- IF ( loo.tab ==  -1 ) -%]
182
                                                <option value="-1" selected="selected">ignore</option>
202
                                                <option value="-1" selected="selected">ignore</option>
Lines 193-316 Link Here
193
                                                [%- END -%]
213
                                                [%- END -%]
194
                                            [%- END -%]
214
                                            [%- END -%]
195
                                        </select>
215
                                        </select>
196
                                        <div class="hint"
216
                                    </div>
197
                                            ><i class="fa-solid fa-triangle-exclamation"></i> <span>Ignore means that the subfield does not display in the record editor and that its value, if any, is deleted from the record</span></div
217
                                    <div class="hint">
198
                                        >
218
                                        <i class="fa-solid fa-triangle-exclamation"></i> <span>Ignore means that the subfield does not display in the record editor and that its value, if any, is deleted from the record</span>
199
                                    </li>
219
                                    </div>
200
                                    <li>
220
                                </div>
201
                                        <fieldset>
221
                            </fieldset>
202
                                            <legend>Display</legend>
222
                            <fieldset class="fg">
203
                                            <ol>
223
                                <legend>Display</legend>
204
                                                <li
224
                                <div class="fg-row input-md">
205
                                                    ><label for="ohidden[% loo.row | html %]">Select to display or not:</label>
225
                                    <div class="fg-label">
206
                                                    <select name="ohidden" id="ohidden[% loo.row | html %]">
226
                                        <label for="ohidden[% loo.row | html %]">Select to display or not:</label>
207
                                                        [%- IF ( loo.hidden ==  0 ) -%]
227
                                    </div>
208
                                                            <option value="0" selected="selected">Show all</option>
228
                                    <div class="fg-input">
209
                                                            <option value="1">Hide all</option>
229
                                        <select name="ohidden" id="ohidden[% loo.row | html %]">
210
                                                        [%- ELSE -%]
230
                                            [%- IF ( loo.hidden ==  0 ) -%]
211
                                                            [%# All other non-zero values mean: Hide %]
231
                                                <option value="0" selected="selected">Show all</option>
212
                                                            <option value="0">Show all</option>
232
                                                <option value="1">Hide all</option>
213
                                                            <option value="1" selected="selected">Hide all</option>
233
                                            [%- ELSE -%]
214
                                                        [%- END -%]
234
                                                [%# All other non-zero values mean: Hide %]
215
                                                    </select>
235
                                                <option value="0">Show all</option>
216
                                                </li>
236
                                                <option value="1" selected="selected">Hide all</option>
217
                                            </ol>
237
                                            [%- END -%]
218
                                        </fieldset>
238
                                        </select>
219
                                    </li>
239
                                    </div>
220
                                    <li>
240
                                </div>
221
                                        <fieldset class="rows">
241
                            </fieldset>
222
                                            <legend>Advanced constraints:</legend>
242
                            <fieldset class="fg">
223
                                            <ol>
243
                                <legend>Advanced constraints</legend>
224
                                                <li>
244
                                <div class="fg-row input-checkbox">
225
                                                    <label for="isurl[% loo.row | html %]">Is a URL:</label>
245
                                    <div class="fg-label">
226
                                                    [% IF loo.isurl %]
246
                                        <label for="isurl[% loo.row | html %]">Is a URL</label>
227
                                                        <input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" checked="checked" value="1" />
247
                                    </div>
228
                                                    [% ELSE %]
248
                                    <div class="fg-input">
229
                                                        <input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" value="1" />
249
                                        [% IF loo.isurl %]
230
                                                    [% END %]
250
                                            <input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" checked="checked" value="1" />
231
                                                    <span class="hint">If checked, it means that the subfield is a URL and can be clicked.</span>
251
                                        [% ELSE %]
232
                                                </li>
252
                                            <input type="checkbox" id="isurl[% loo.row | html %]" name="isurl[% loo.row | html %]" value="1" />
233
                                                <li>
253
                                        [% END %]
234
                                                    <label for="defaultvalue[% loo.row | html %]">Default value:</label>
254
                                    </div>
235
                                                    <input type="text" name="defaultvalue" id="defaultvalue[% loo.row | html %]" value="[% loo.defaultvalue | html %]" />
255
                                    <div class="hint">If checked, it means that the subfield is a URL and can be clicked.</div>
236
                                                </li>
256
                                </div>
237
                                            </ol>
257
                                <div class="fg-row">
238
                                        </fieldset>
258
                                    <div class="fg-label">
239
                                    </li>
259
                                        <label for="defaultvalue[% loo.row | html %]">Default value:</label>
240
                                    <li>
260
                                    </div>
241
                                        <fieldset
261
                                    <div class="fg-input">
242
                                            ><legend>Help input</legend>
262
                                        <input type="text" name="defaultvalue" id="defaultvalue[% loo.row | html %]" value="[% loo.defaultvalue | html %]" />
243
                                            <ol>
263
                                    </div>
244
                                                <li>
264
                                </div>
245
                                                    <label for="kohafield[% loo.row | html %]">Koha field:</label>
265
                            </fieldset>
246
                                                    <select name="kohafield" id="kohafield[% loo.row | html %]">
266
247
                                                        [%- FOREACH value IN loo.kohafields %]
267
                            <fieldset class="fg">
248
                                                            [% IF ( value == loo.kohafield  && value.length>0 ) -%]
268
                                <legend>Help input</legend>
249
                                                                <option value="[% value | html %]" selected="selected">[% value | html %]</option>
269
                                <div class="fg-row">
250
                                                            [%- ELSIF ( value == loo.kohafield ) -%]
270
                                    <div class="fg-label">
251
                                                                <option value="[% value | html %]" selected="selected">&nbsp;</option>
271
                                        <label for="kohafield[% loo.row | html %]">Koha field:</label>
252
                                                            [%- ELSIF ( value.length==0 ) -%]
272
                                    </div>
253
                                                                <option value="[% value | html %]">&nbsp;</option>
273
                                    <div class="fg-input">
254
                                                            [%- ELSE -%]
274
                                        <select name="kohafield" id="kohafield[% loo.row | html %]">
255
                                                                <option value="[% value | html %]">[% value | html %]</option>
275
                                            [%- FOREACH value IN loo.kohafields %]
256
                                                            [%- END -%]
276
                                                [% IF ( value == loo.kohafield  && value.length>0 ) -%]
257
                                                        [%- END %]
277
                                                    <option value="[% value | html %]" selected="selected">[% value | html %]</option>
258
                                                    </select>
278
                                                [%- ELSIF ( value == loo.kohafield ) -%]
259
                                                </li>
279
                                                    <option value="[% value | html %]" selected="selected">&nbsp;</option>
260
                                                <li>
280
                                                [%- ELSIF ( value.length==0 ) -%]
261
                                                    <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
281
                                                    <option value="[% value | html %]">&nbsp;</option>
262
                                                    <select name="authorised_value" id="authorised_value[% loo.row | html %]">
282
                                                [%- ELSE -%]
263
                                                        [%- FOREACH value IN loo.authorised_values %]
283
                                                    <option value="[% value | html %]">[% value | html %]</option>
264
                                                            [% IF ( value == loo.authorised_value && value.length>0 ) -%]
284
                                                [%- END -%]
265
                                                                <option value="[% value | html %]" selected="selected">[% value | html %]</option>
285
                                            [%- END %]
266
                                                            [%- ELSIF ( value == loo.authorised_value ) -%]
286
                                        </select>
267
                                                                <option value="[% value | html %]" selected>&nbsp;</option>
287
                                    </div>
268
                                                            [%- ELSIF ( value.length==0 ) -%]
288
                                </div>
269
                                                                <option value="[% value | html %]">&nbsp;</option>
289
                                <div class="fg-row">
270
                                                            [%- ELSE -%]
290
                                    <div class="fg-label">
271
                                                                <option value="[% value | html %]">[% value | html %]</option>
291
                                        <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
272
                                                            [%- END -%]
292
                                    </div>
273
                                                        [%- END %]
293
                                    <div class="fg-input">
274
                                                    </select>
294
                                        <select name="authorised_value" id="authorised_value[% loo.row | html %]">
275
                                                </li>
295
                                            [%- FOREACH value IN loo.authorised_values %]
276
                                                <li>
296
                                                [% IF ( value == loo.authorised_value && value.length>0 ) -%]
277
                                                    <label for="frameworkcode[% loo.row | html %]">Thesaurus:</label>
297
                                                    <option value="[% value | html %]" selected="selected">[% value | html %]</option>
278
                                                    <select name="frameworkcode" id="frameworkcode[% loo.row | html %]">
298
                                                [%- ELSIF ( value == loo.authorised_value ) -%]
279
                                                        [%- FOREACH value IN loo.frameworkcodes %]
299
                                                    <option value="[% value | html %]" selected>&nbsp;</option>
280
                                                            [% IF ( value == loo.frameworkcode && value.length>0 ) -%]
300
                                                [%- ELSIF ( value.length==0 ) -%]
281
                                                                <option value="[% value | html %]" selected="selected">[% value | html %]</option>
301
                                                    <option value="[% value | html %]">&nbsp;</option>
282
                                                            [%- ELSIF ( value == loo.frameworkcode ) -%]
302
                                                [%- ELSE -%]
283
                                                                <option value="[% value | html %]" selected="selected">&nbsp;</option>
303
                                                    <option value="[% value | html %]">[% value | html %]</option>
284
                                                            [%- ELSIF ( value.length==0 ) -%]
304
                                                [%- END -%]
285
                                                                <option value="[% value | html %]">&nbsp;</option>
305
                                            [%- END %]
286
                                                            [%- ELSE -%]
306
                                        </select>
287
                                                                <option value="[% value | html %]">[% value | html %]</option>
307
                                    </div>
288
                                                            [%- END -%]
308
                                </div>
289
                                                        [%- END %]
309
                                <div class="fg-row">
290
                                                    </select>
310
                                    <div class="fg-label">
291
                                                </li>
311
                                        <label for="frameworkcode[% loo.row | html %]">Thesaurus:</label>
292
                                                <li>
312
                                    </div>
293
                                                    <label for="value_builder[% loo.row | html %]">Plugin:</label>
313
                                    <div class="fg-input">
294
                                                    <select name="value_builder" id="value_builder[% loo.row | html %]">
314
                                        <select name="frameworkcode" id="frameworkcode[% loo.row | html %]">
295
                                                        [%- FOREACH value IN loo.value_builders %]
315
                                            [%- FOREACH value IN loo.frameworkcodes %]
296
                                                            [% IF ( value == loo.value_builder && value.length>0 ) -%]
316
                                                [% IF ( value == loo.frameworkcode && value.length>0 ) -%]
297
                                                                <option value="[% value | html %]" selected="selected">[% value | html %]</option>
317
                                                    <option value="[% value | html %]" selected="selected">[% value | html %]</option>
298
                                                            [%- ELSIF ( value == loo.value_builder ) -%]
318
                                                [%- ELSIF ( value == loo.frameworkcode ) -%]
299
                                                                <option value="[% value | html %]" selected="selected">&nbsp;</option>
319
                                                    <option value="[% value | html %]" selected="selected">&nbsp;</option>
300
                                                            [%- ELSIF ( value.length==0 ) -%]
320
                                                [%- ELSIF ( value.length==0 ) -%]
301
                                                                <option value="[% value | html %]">&nbsp;</option>
321
                                                    <option value="[% value | html %]">&nbsp;</option>
302
                                                            [%- ELSE -%]
322
                                                [%- ELSE -%]
303
                                                                <option value="[% value | html %]">[% value | html %]</option>
323
                                                    <option value="[% value | html %]">[% value | html %]</option>
304
                                                            [%- END -%]
324
                                                [%- END -%]
305
                                                        [%- END %]
325
                                            [%- END %]
306
                                                    </select>
326
                                        </select>
307
                                                </li>
327
                                    </div>
308
                                            </ol>
328
                                </div>
309
                                        </fieldset>
329
                                <div class="fg-row">
310
                                    </li>
330
                                    <div class="fg-label">
311
                                </ol></fieldset
331
                                        <label for="value_builder[% loo.row | html %]">Plugin:</label>
312
                            ><br class="clear" />
332
                                    </div>
313
                        [% END # /WRAPPER   tab_panel %]
333
                                    <div class="fg-input">
334
                                        <select name="value_builder" id="value_builder[% loo.row | html %]">
335
                                            [%- FOREACH value IN loo.value_builders %]
336
                                                [% IF ( value == loo.value_builder && value.length>0 ) -%]
337
                                                    <option value="[% value | html %]" selected="selected">[% value | html %]</option>
338
                                                [%- ELSIF ( value == loo.value_builder ) -%]
339
                                                    <option value="[% value | html %]" selected="selected">&nbsp;</option>
340
                                                [%- ELSIF ( value.length==0 ) -%]
341
                                                    <option value="[% value | html %]">&nbsp;</option>
342
                                                [%- ELSE -%]
343
                                                    <option value="[% value | html %]">[% value | html %]</option>
344
                                                [%- END -%]
345
                                            [%- END %]
346
                                        </select>
347
                                    </div>
348
                                </div>
349
                            </fieldset>
350
                        [% END # /WRAPPER tab_panel %]
314
                    [% END # /FOREACH loo %]
351
                    [% END # /FOREACH loo %]
315
                [% END # /WRAPPER tab_panels %]
352
                [% END # /WRAPPER tab_panels %]
316
            [% END # /WRAPPER tabs %]
353
            [% END # /WRAPPER tabs %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt (-26 / +60 lines)
Lines 130-177 Link Here
130
            <input type="hidden" name="op" value="cud-add_validate" />
130
            <input type="hidden" name="op" value="cud-add_validate" />
131
            [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
131
            [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
132
            <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
132
            <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
133
            <fieldset class="rows">
133
            <fieldset class="fg">
134
                <ol>
134
                [% IF ( heading_modify_tag_p ) %]
135
                    [% IF ( heading_modify_tag_p ) %]
135
                    <div class="fg-row">
136
                        <li>
136
                        <div class="fg-label">
137
                            <span class="label">Tag: </span>
137
                            <span class="label">Tag: </span>
138
                            <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
138
                        </div>
139
                        <div class="fg-text">
139
                            [% searchfield | html %]
140
                            [% searchfield | html %]
140
                        </li>
141
                            <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
141
                    [% ELSE %]
142
                        </div>
142
                        <li>
143
                    </div>
143
                            <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
144
                [% ELSE %]
144
                            <span class="required">Required</span>
145
                    <div class="fg-row input-sm">
145
                        </li>
146
                        <div class="fg-label">
146
                    [% END %]
147
                            <label for="tagfield" class="required">Tag: </label>
148
                        </div>
149
                        <div class="fg-input">
150
                            <input type="text" id="tagfield" name="tagfield" maxlength="3" required="required" class="required" />
151
                        </div>
152
                        <div class="required">Required</div>
153
                        <div class="hint">3 characters maximum</div>
154
                    </div>
155
                [% END %]
147
156
148
                    <li><label for="liblibrarian">Description in staff interface: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" size="40" maxlength="255" /></li>
157
                <div class="fg-row">
149
                    <li><label for="libopac">Description in OPAC: </label><input type="text" name="libopac" id="libopac" value="[% libopac | html %]" size="40" maxlength="255" /></li>
158
                    <div class="fg-label">
150
                    <li
159
                        <label for="liblibrarian">Description in staff interface: </label>
151
                        ><label for="repeatable">Repeatable: </label>
160
                    </div>
161
                    <div class="fg-input">
162
                        <input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" maxlength="255" />
163
                    </div>
164
                </div>
165
                <div class="fg-row">
166
                    <div class="fg-label">
167
                        <label for="libopac">Description in OPAC: </label>
168
                    </div>
169
                    <div class="fg-input">
170
                        <input type="text" name="libopac" id="libopac" value="[% libopac | html %]" maxlength="255" />
171
                    </div>
172
                </div>
173
                <div class="fg-row input-checkbox">
174
                    <div class="fg-label">
175
                        <label for="repeatable">Repeatable</label>
176
                    </div>
177
                    <div class="fg-input">
152
                        [% IF ( repeatable ) %]
178
                        [% IF ( repeatable ) %]
153
                            <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
179
                            <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
154
                        [% ELSE %]
180
                        [% ELSE %]
155
                            <input type="checkbox" name="repeatable" id="repeatable" value="1" />
181
                            <input type="checkbox" name="repeatable" id="repeatable" value="1" />
156
                        [% END %]
182
                        [% END %]
157
                    </li>
183
                    </div>
158
                    <li
184
                </div>
159
                        ><label for="mandatory">Mandatory: </label>
185
                <div class="fg-row input-checkbox">
186
                    <div class="fg-label">
187
                        <label for="mandatory">Mandatory</label>
188
                    </div>
189
                    <div class="fg-input">
160
                        [% IF ( mandatory ) %]
190
                        [% IF ( mandatory ) %]
161
                            <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
191
                            <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
162
                        [% ELSE %]
192
                        [% ELSE %]
163
                            <input type="checkbox" name="mandatory" id="mandatory" value="1" />
193
                            <input type="checkbox" name="mandatory" id="mandatory" value="1" />
164
                        [% END %]
194
                        [% END %]
165
                    </li>
195
                    </div>
166
                    <li
196
                </div>
167
                        ><label for="authorised_value">Authorized value: </label>
197
                <div class="fg-row">
198
                    <div class="fg-label">
199
                        <label for="authorised_value">Authorized value: </label>
200
                    </div>
201
                    <div class="fg-input">
168
                        <select name="authorised_value" id="authorised_value">
202
                        <select name="authorised_value" id="authorised_value">
169
                            <option value=""></option>
203
                            <option value=""></option>
170
                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
204
                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
171
                        </select>
205
                        </select>
172
                        <div class="hint">If you select a value here, the indicators will be limited to the authorized value list</div>
206
                    </div>
173
                    </li>
207
                    <div class="hint">If you select a value here, the indicators will be limited to the authorized value list</div>
174
                </ol>
208
                </div>
175
            </fieldset>
209
            </fieldset>
176
            <fieldset class="action">
210
            <fieldset class="action">
177
                <input type="submit" class="btn btn-primary" value="Submit" />
211
                <input type="submit" class="btn btn-primary" value="Submit" />
Lines 222-228 Link Here
222
        <form action="/cgi-bin/koha/admin/auth_tag_structure.pl" method="get">
256
        <form action="/cgi-bin/koha/admin/auth_tag_structure.pl" method="get">
223
            <fieldset>
257
            <fieldset>
224
                <label for="searchfield"><strong>Search for tag:</strong></label>
258
                <label for="searchfield"><strong>Search for tag:</strong></label>
225
                <input type="text" id="searchfield" name="searchfield" size="4" value="[% searchfield | html %]" />
259
                <input type="text" id="searchfield" name="searchfield" maxlength="3" value="[% searchfield | html %]" />
226
                <label for="authtypecode"><strong>In framework:</strong> </label>
260
                <label for="authtypecode"><strong>In framework:</strong> </label>
227
                <select id="authtypecode" name="authtypecode">
261
                <select id="authtypecode" name="authtypecode">
228
                    [% FOREACH authority_type IN authority_types %]
262
                    [% FOREACH authority_type IN authority_types %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-26 / +44 lines)
Lines 114-157 Link Here
114
                    <span>New authority type</span>
114
                    <span>New authority type</span>
115
                [% END %]
115
                [% END %]
116
            </h1>
116
            </h1>
117
            <fieldset class="rows">
117
            <fieldset class="fg">
118
                <legend class="sr-only">Enter authority type details</legend>
118
                <legend class="sr-only">Enter authority type details</legend>
119
                <ol>
119
                <div class="fg-row input-md">
120
                    <li>
120
                    [% IF authority_type.authtypecode.defined %]
121
                        [% IF authority_type.authtypecode.defined %]
121
                        <div class="fg-label">
122
                            <span class="label">Authority type</span>
122
                            <span class="label">Authority type</span>
123
                        </div>
124
                        <div class="fg-text">
125
                            [% authority_type.authtypecode | html %]
123
                            <input type="hidden" name="op" value="cud-add_validate" />
126
                            <input type="hidden" name="op" value="cud-add_validate" />
124
                            <input type="hidden" name="checked" value="0" />
127
                            <input type="hidden" name="checked" value="0" />
125
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />[% authority_type.authtypecode | html %]
128
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
126
                        [% ELSE %]
129
                        </div>
130
                    [% ELSE %]
131
                        <div class="fg-label">
127
                            <label for="authtypecode" class="required">Authority type: </label>
132
                            <label for="authtypecode" class="required">Authority type: </label>
128
                            <input id="authtypecode" type="text" class="required focus" required="required" name="authtypecode" size="20" maxlength="10" />
133
                        </div>
129
                            <span class="required">Required</span>
134
                        <div class="fg-input">
130
                            <div class="hint">10 characters maximum</div>
135
                            <input id="authtypecode" type="text" class="required focus" required="required" name="authtypecode" maxlength="10" />
131
                        [% END %]
136
                        </div>
132
                    </li>
137
                        <div class="required">Required</div>
133
                    <li>
138
                        <div class="hint">10 characters maximum</div>
139
                    [% END %]
140
                </div>
141
                <div class="fg-row">
142
                    <div class="fg-label">
134
                        <label for="authtypetext" class="required">Description: </label>
143
                        <label for="authtypetext" class="required">Description: </label>
135
                        <input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authority_type.authtypetext | html %]" class="required" required="required" />
144
                    </div>
136
                        <span class="required">Required</span>
145
                    <div class="fg-input">
137
                    </li>
146
                        <input type="text" id="authtypetext" name="authtypetext" maxlength="80" value="[% authority_type.authtypetext | html %]" class="required" required="required" />
138
                    <li>
147
                    </div>
148
                    <div class="required">Required</div>
149
                </div>
150
                <div class="fg-row">
151
                    <div class="fg-label">
139
                        <label for="summary">Summary: </label>
152
                        <label for="summary">Summary: </label>
153
                    </div>
154
                    <div class="fg-input">
140
                        <textarea id="summary" name="summary" cols="55" rows="7">[% authority_type.summary | html %]</textarea>
155
                        <textarea id="summary" name="summary" cols="55" rows="7">[% authority_type.summary | html %]</textarea>
141
                    </li>
156
                    </div>
142
                    <li>
157
                </div>
158
                <div class="fg-row input-sm">
159
                    <div class="fg-label">
143
                        <label for="auth_tag_to_report">Authority field to copy: </label>
160
                        <label for="auth_tag_to_report">Authority field to copy: </label>
144
                        <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report | html %]" />
161
                    </div>
145
                        <div class="hint"
162
                    <div class="fg-input">
146
                            >Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to
163
                        <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" maxlength="3" value="[% authority_type.auth_tag_to_report | html %]" />
147
                            field 100 in the bibliographic record</div
148
                        >
149
                        <input type="hidden" name="op" value="cud-add_validate" />
164
                        <input type="hidden" name="op" value="cud-add_validate" />
150
                        [% IF authority_type.authtypecode.defined %]
165
                        [% IF authority_type.authtypecode.defined %]
151
                            <input type="hidden" name="is_a_modif" value="1" />
166
                            <input type="hidden" name="is_a_modif" value="1" />
152
                        [% END %]
167
                        [% END %]
153
                    </li>
168
                    </div>
154
                </ol>
169
                    <div class="hint">
170
                        Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field
171
                        100 in the bibliographic record
172
                    </div>
173
                </div>
155
            </fieldset>
174
            </fieldset>
156
            <fieldset class="action">
175
            <fieldset class="action">
157
                <input type="submit" class="btn btn-primary" value="Submit" />
176
                <input type="submit" class="btn btn-primary" value="Submit" />
158
- 

Return to bug 41827