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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc (-9 / +15 lines)
Lines 71-85 Link Here
71
            [% SET bt_active = 0 %]
71
            [% SET bt_active = 0 %]
72
        [% END %]
72
        [% END %]
73
        [% WRAPPER tab_panel tabname="remote" %]
73
        [% WRAPPER tab_panel tabname="remote" %]
74
            <label for="remote_image_check"> Remote image:</label>
74
            <div class="fg-row">
75
            [% IF image_location.match('^http') %]
75
                <div class="fg-label">
76
                <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
76
                    <label for="remote_image_check"> Remote image:</label>
77
                <input type="text" name="remoteImage" size="48" maxlength="200" value="[% image_location | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" />
77
                </div>
78
                <img src="[% image_location | html %]" alt="" />
78
                <div class="fg-input">
79
            [% ELSE %]
79
                    [% IF image_location.match('^http') %]
80
                <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
80
                        <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
81
                <input type="text" name="remoteImage" size="48" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" />
81
                        <input type="text" name="remoteImage" maxlength="200" value="[% image_location | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" />
82
            [% END %]
82
                        <img src="[% image_location | html %]" alt="" />
83
                    [% ELSE %]
84
                        <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
85
                        <input type="text" name="remoteImage" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" />
86
                    [% END %]
87
                </div>
88
            </div>
83
        [% END %]
89
        [% END %]
84
    [% END # /tab_panels %]
90
    [% END # /tab_panels %]
85
[% END # /tabs#icons %]
91
[% END # /tabs#icons %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-37 / +72 lines)
Lines 52-59 Link Here
52
            clear: both;
52
            clear: both;
53
        }
53
        }
54
        .authval-icons label {
54
        .authval-icons label {
55
            float: none;
55
            display: block;
56
            width: auto;
56
            padding: 0.5rem;
57
        }
57
        }
58
        #authorised_value:invalid {
58
        #authorised_value:invalid {
59
            color: red;
59
            color: red;
Lines 129-171 Link Here
129
129
130
        <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" id="Aform" method="post" class="validated">
130
        <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" id="Aform" method="post" class="validated">
131
            [% INCLUDE 'csrf-token.inc' %]
131
            [% INCLUDE 'csrf-token.inc' %]
132
            <fieldset class="rows">
132
            <fieldset class="fg">
133
                [% IF action_add_category %]
133
                [% IF action_add_category %]
134
                    <ol>
134
                    <div class="fg-row">
135
                        <li>
135
                        <div class="fg-label">
136
                            <label for="category" class="required">Category: </label>
136
                            <label for="category" class="required">Category: </label>
137
                            <input type="text" name="category" id="category" size="32" maxlength="32" class="focus required" />
137
                        </div>
138
                            <span class="required">Required</span>
138
                        <div class="fg-input">
139
                            <input type="text" name="category" id="category" maxlength="32" class="focus required" />
139
                            <input type="hidden" name="op" value="cud-add_category" />
140
                            <input type="hidden" name="op" value="cud-add_category" />
140
                        </li>
141
                        </div>
141
                        <li> <input type="checkbox" name="is_integer_only" id="is_integer_only" /><label for="is_integer_only">Restrict value to numbers only</label> </li>
142
                        <div class="required">Required</div>
142
                    </ol>
143
                    </div>
144
                    <div class="fg-row input-checkbox">
145
                        <div class="fg-label">
146
                            <label for="is_integer_only">Restrict value to numbers only</label>
147
                        </div>
148
                        <div class="fg-input">
149
                            <input type="checkbox" name="is_integer_only" id="is_integer_only" />
150
                        </div>
151
                    </div>
143
                [% ELSIF op == 'edit_form' %]
152
                [% ELSIF op == 'edit_form' %]
144
                    <ol>
153
                    <div class="fg-row">
145
                        <li>
154
                        <div class="fg-label">
146
                            <label for="category" class="required">Category: </label>
155
                            <label for="category" class="required">Category: </label>
156
                        </div>
157
                        <div class="fg-input">
147
                            <input type="text" disabled value="[% category_name | html %]" />
158
                            <input type="text" disabled value="[% category_name | html %]" />
148
                        </li>
159
                        </div>
149
                        <li>
160
                    </div>
161
                    <div class="fg-row input-checkbox">
162
                        <div class="fg-label">
163
                            <label for="is_integer_only">Restrict value to numbers only</label>
164
                        </div>
165
                        <div class="fg-input">
150
                            [% IF category.is_integer_only %]
166
                            [% IF category.is_integer_only %]
151
                                <input type="checkbox" checked name="is_integer_only" id="is_integer_only" /><label for="is_integer_only">Restrict value to numbers only</label>
167
                                <input type="checkbox" checked name="is_integer_only" id="is_integer_only" />
152
                            [% ELSE %]
168
                            [% ELSE %]
153
                                <input type="checkbox" name="is_integer_only" id="is_integer_only" /><label for="is_integer_only">Restrict value to numbers only</label>
169
                                <input type="checkbox" name="is_integer_only" id="is_integer_only" />
154
                            [% END %]
170
                            [% END %]
155
                        </li>
171
                        </div>
156
                    </ol>
172
                        <input type="hidden" name="op" value="cud-edit_category" />
157
                    <input type="hidden" name="op" value="cud-edit_category" />
173
                        <input type="hidden" name="category" value="[% category_name | html %]" />
158
                    <input type="hidden" name="category" value="[% category_name | html %]" />
174
                        <input type="hidden" name="searchfield" value="[% category_name | html %]" />
159
                    <input type="hidden" name="searchfield" value="[% category_name | html %]" />
175
                    </div>
160
                [% ELSE %]
176
                [% ELSE %]
161
                    <ol>
177
                    <div class="fg-row">
162
                        <li>
178
                        <div class="fg-label">
163
                            <span class="label">Category</span>
179
                            <span class="label">Category</span>
180
                        </div>
181
                        <div class="fg-text">
182
                            [% category_name | html %]
164
                            <input type="hidden" name="op" value="cud-add" />
183
                            <input type="hidden" name="op" value="cud-add" />
165
                            <input type="hidden" name="category" value="[% category_name | html %]" /> [% category_name | html %]
184
                            <input type="hidden" name="category" value="[% category_name | html %]" />
166
                        </li>
185
                        </div>
167
                        <li>
186
                    </div>
187
                    <div class="fg-row">
188
                        <div class="fg-label">
168
                            <label for="authorised_value">Authorized value: </label>
189
                            <label for="authorised_value">Authorized value: </label>
190
                        </div>
191
                        <div class="fg-input">
169
                            [% IF ( action_modify ) %]
192
                            [% IF ( action_modify ) %]
170
                                <input type="hidden" id="id" name="id" value="[% av.id | html %]" />
193
                                <input type="hidden" id="id" name="id" value="[% av.id | html %]" />
171
                            [% END %]
194
                            [% END %]
Lines 186-203 Link Here
186
                            [% ELSE %]
209
                            [% ELSE %]
187
                                <input type="text" id="authorised_value" name="authorised_value" value="[% av.authorised_value | html %]" maxlength="80" class="focus" />
210
                                <input type="text" id="authorised_value" name="authorised_value" value="[% av.authorised_value | html %]" maxlength="80" class="focus" />
188
                            [% END %]
211
                            [% END %]
189
                        </li>
212
                        </div>
190
                        <li>
213
                    </div>
214
                    <div class="fg-row">
215
                        <div class="fg-label">
191
                            <label for="lib">Description: </label>
216
                            <label for="lib">Description: </label>
217
                        </div>
218
                        <div class="fg-input">
192
                            <input type="text" name="lib" id="lib" value="[% av.lib | html %]" maxlength="200" />
219
                            <input type="text" name="lib" id="lib" value="[% av.lib | html %]" maxlength="200" />
193
                        </li>
220
                        </div>
194
                        <li>
221
                    </div>
222
                    <div class="fg-row">
223
                        <div class="fg-label">
195
                            <label for="lib_opac">Description (OPAC): </label>
224
                            <label for="lib_opac">Description (OPAC): </label>
225
                        </div>
226
                        <div class="fg-input">
196
                            <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" />
227
                            <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" />
197
                        </li>
228
                        </div>
198
                        <li
229
                    </div>
199
                            ><label for="library_limitation">Library limitations: </label>
230
                    <div class="fg-row">
200
                            <select id="library_limitation" name="branches" multiple size="10">
231
                        <div class="fg-label">
232
                            <label for="library_limitation">Library limitations: </label>
233
                        </div>
234
                        <div class="fg-input">
235
                            <select id="library_limitation" name="branches" multiple>
201
                                [% FOREACH branch IN branches_loop %]
236
                                [% FOREACH branch IN branches_loop %]
202
                                    [% IF ( branch.selected ) %]
237
                                    [% IF ( branch.selected ) %]
203
                                        <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
238
                                        <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
Lines 206-214 Link Here
206
                                    [% END %]
241
                                    [% END %]
207
                                [% END %]
242
                                [% END %]
208
                            </select>
243
                            </select>
209
                            <div class="hint">Limits the use of this authorized value to the selected libraries.</div>
244
                        </div>
210
                        </li>
245
                        <div class="hint">Limits the use of this authorized value to the selected libraries.</div>
211
                    </ol>
246
                    </div>
212
247
213
                    [% INCLUDE 'admin-icon-selection.inc' context = "authval" %]
248
                    [% INCLUDE 'admin-icon-selection.inc' context = "authval" %]
214
                [% END # /IF action_add_category %]
249
                [% END # /IF action_add_category %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-102 / +183 lines)
Lines 37-56 Link Here
37
[% INCLUDE 'doc-head-close.inc' %]
37
[% INCLUDE 'doc-head-close.inc' %]
38
[% FILTER collapse %]
38
[% FILTER collapse %]
39
    <style>
39
    <style>
40
        fieldset.rows div.toptabs li {
41
            clear: none;
42
            margin-right: 0.4em;
43
            padding-bottom: 0;
44
            width: auto;
45
        }
46
        .itemtype-icons {
40
        .itemtype-icons {
47
            display: flex;
41
            display: flex;
48
            flex-wrap: wrap;
42
            flex-wrap: wrap;
49
            clear: both;
43
            clear: both;
50
        }
44
        }
51
        .itemtype-icons label {
45
        .itemtype-icons label {
52
            float: none;
46
            display: block;
53
            width: auto;
47
            padding: 0.5rem;
54
        }
48
        }
55
    </style>
49
    </style>
56
[% END %]
50
[% END %]
Lines 154-175 Link Here
154
        <form action="/cgi-bin/koha/admin/itemtypes.pl" name="Aform" method="post" id="itemtypeentry">
148
        <form action="/cgi-bin/koha/admin/itemtypes.pl" name="Aform" method="post" id="itemtypeentry">
155
            [% INCLUDE 'csrf-token.inc' %]
149
            [% INCLUDE 'csrf-token.inc' %]
156
            <input type="hidden" name="op" value="cud-add_validate" />
150
            <input type="hidden" name="op" value="cud-add_validate" />
157
            <fieldset class="rows">
151
            <fieldset class="fg">
158
                <ol>
152
                [% IF itemtype %]
159
                    [% IF itemtype %]
153
                    <div class="fg-row">
160
                        <li>
154
                        <div class="fg-label">
155
                            <span class="label">Item type: </span>
156
                        </div>
157
                        <div class="fg-text">
158
                            <input type="hidden" name="itemtype" value="[% itemtype.itemtype | html %]" />
161
                            <input type="hidden" name="is_a_modif" value="1" />
159
                            <input type="hidden" name="is_a_modif" value="1" />
162
                            <span class="label">Item type: </span> <input type="hidden" name="itemtype" value="[% itemtype.itemtype | html %]" />
163
                            [% itemtype.itemtype | html %]
160
                            [% itemtype.itemtype | html %]
164
                        </li>
161
                        </div>
165
                    [% ELSE %]
162
                    </div>
166
                        <li>
163
                [% ELSE %]
164
                    <div class="fg-row input-sm">
165
                        <div class="fg-label">
167
                            <label for="itemtype" class="required">Item type: </label>
166
                            <label for="itemtype" class="required">Item type: </label>
168
                            <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" class="focus" /> <span class="required">Required</span>
167
                        </div>
169
                        </li>
168
                        <div class="fg-input">
170
                    [% END %]
169
                            <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" class="focus" />
171
                    <li>
170
                        </div>
171
                        <div class="required">Required</div>
172
                    </div>
173
                [% END %]
174
                <div class="fg-row">
175
                    <div class="fg-label">
172
                        <label for="parent_type">Parent item type: </label>
176
                        <label for="parent_type">Parent item type: </label>
177
                    </div>
178
                    <div class="fg-input">
173
                        [% IF !is_a_parent && parent_types %]
179
                        [% IF !is_a_parent && parent_types %]
174
                            <select name="parent_type" id="parent_type">
180
                            <select name="parent_type" id="parent_type">
175
                                <option value="">None</option>
181
                                <option value="">None</option>
Lines 188-204 Link Here
188
                            <input type="text" id="parent_type" value="[% parent_type | html %]" name="parent_type" size="10" maxlength="10" disabled />
194
                            <input type="text" id="parent_type" value="[% parent_type | html %]" name="parent_type" size="10" maxlength="10" disabled />
189
                            <p>No available parent types</p>
195
                            <p>No available parent types</p>
190
                        [% END %]
196
                        [% END %]
191
                        <div class="hint">Defining a parent type will apply checkout limits for all children as described on the circulation rules page.</div>
197
                    </div>
192
                    </li>
198
                    <div class="hint">Defining a parent type will apply checkout limits for all children as described on the circulation rules page.</div>
193
                    <li>
199
                </div>
200
                <div class="fg-row">
201
                    <div class="fg-label">
194
                        <label for="description" class="required">Description: </label>
202
                        <label for="description" class="required">Description: </label>
195
                        <input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span>
203
                    </div>
196
                        [% IF can_be_translated %]
204
                    <div class="fg-input"> <input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span> </div>
205
                    [% IF can_be_translated %]
206
                        <div class="hint">
197
                            <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype | uri %]"> <i class="fa-solid fa-pencil" aria-hidden="true"></i> Translate into other languages </a>
207
                            <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype | uri %]"> <i class="fa-solid fa-pencil" aria-hidden="true"></i> Translate into other languages </a>
198
                        [% END %]
208
                        </div>
199
                    </li>
209
                    [% END %]
200
                    <li>
210
                </div>
211
                <div class="fg-row">
212
                    <div class="fg-label">
201
                        <label for="searchcategory">Search category: </label>
213
                        <label for="searchcategory">Search category: </label>
214
                    </div>
215
                    <div class="fg-input">
202
                        <select id="searchcategory" name="searchcategory">
216
                        <select id="searchcategory" name="searchcategory">
203
                            <option value="">None</option>
217
                            <option value="">None</option>
204
                            [% FOREACH cat IN searchcategory %]
218
                            [% FOREACH cat IN searchcategory %]
Lines 209-321 Link Here
209
                                [% END %]
223
                                [% END %]
210
                            [% END %]
224
                            [% END %]
211
                        </select>
225
                        </select>
212
                        <div class="hint">
226
                    </div>
213
                            [% IF ( CAN_user_parameters_manage_auth_values ) %]
227
                    <div class="hint">
214
                                <span>Options are defined by the authorized value <a target="_blank" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=ITEMTYPECAT">ITEMTYPECAT</a>.</span>
228
                        [% IF ( CAN_user_parameters_manage_auth_values ) %]
215
                            [% ELSE %]
229
                            <span>Options are defined by the authorized value <a target="_blank" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=ITEMTYPECAT">ITEMTYPECAT</a>.</span>
216
                                <span>Options are defined by the authorized value ITEMTYPECAT.</span>
230
                        [% ELSE %]
217
                            [% END %]
231
                            <span>Options are defined by the authorized value ITEMTYPECAT.</span>
218
                        </div>
232
                        [% END %]
219
                    </li>
233
                    </div>
220
                    [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
234
                </div>
221
                        <li>
235
                [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
222
                            <span class="label">Image: </span>Item type images are disabled. To enable them, turn off the
236
                    <div class="fg-row">
237
                        <div class="fg-label"> <span class="label">Image: </span>Item type images are disabled. To enable them, turn off the </div>
238
                        <div class="fg-text">
223
                            <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=noItemTypeImages">noItemTypeImages or OpacNoItemTypeImages system preferences</a>
239
                            <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=noItemTypeImages">noItemTypeImages or OpacNoItemTypeImages system preferences</a>
224
                        </li>
240
                        </div>
225
                    [% END %]
241
                    </div>
226
                </ol>
242
                [% END %]
227
243
228
                [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %]
244
                [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %]
229
                    [% INCLUDE 'admin-icon-selection.inc' context = "itemtype" %]
245
                    [% INCLUDE 'admin-icon-selection.inc' context = "itemtype" %]
230
                [% END %]
246
                [% END %]
231
247
232
                <ol class="oladditemtype">
248
                <div class="fg-row input-checkbox">
233
                    <li>
249
                    <div class="fg-label">
234
                        <label for="hideinopac">Hide in OPAC: </label>
250
                        <label for="hideinopac">Hide in OPAC: </label>
251
                    </div>
252
                    <div class="fg-input">
235
                        [% IF ( itemtype.hideinopac ) %]
253
                        [% IF ( itemtype.hideinopac ) %]
236
                            <input type="checkbox" id="hideinopac" name="hideinopac" checked="checked" value="1" />
254
                            <input type="checkbox" id="hideinopac" name="hideinopac" checked="checked" value="1" />
237
                        [% ELSE %]
255
                        [% ELSE %]
238
                            <input type="checkbox" id="hideinopac" name="hideinopac" value="1" />
256
                            <input type="checkbox" id="hideinopac" name="hideinopac" value="1" />
239
                        [% END %]
257
                        [% END %]
240
                        <span class="hint">If checked, items of this type will be hidden as filters in OPAC's advanced search.</span>
258
                    </div>
241
                    </li>
259
                    <div class="hint">If checked, items of this type will be hidden as filters in OPAC's advanced search.</div>
242
                    <li>
260
                </div>
261
                <div class="fg-row input-checkbox">
262
                    <div class="fg-label">
243
                        <label for="notforloan">Not for loan: </label>
263
                        <label for="notforloan">Not for loan: </label>
264
                    </div>
265
                    <div class="fg-input">
244
                        [% IF itemtype.notforloan %]
266
                        [% IF itemtype.notforloan %]
245
                            <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
267
                            <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
246
                        [% ELSE %]
268
                        [% ELSE %]
247
                            <input type="checkbox" id="notforloan" name="notforloan" value="1" />
269
                            <input type="checkbox" id="notforloan" name="notforloan" value="1" />
248
                        [% END %]
270
                        [% END %]
249
                        <span class="hint">If checked, no item of this type can be issued. If not checked, every item of this type can be issued unless notforloan is set for a specific item.</span>
271
                    </div>
250
                    </li>
272
                    <div class="hint">If checked, no item of this type can be issued. If not checked, every item of this type can be issued unless notforloan is set for a specific item.</div>
251
                    <li>
273
                </div>
274
                <div class="fg-row input-checkbox">
275
                    <div class="fg-label">
252
                        <label for="automatic_checkin">Automatic check-in: </label>
276
                        <label for="automatic_checkin">Automatic check-in: </label>
277
                    </div>
278
                    <div class="fg-input">
253
                        [% IF itemtype.automatic_checkin %]
279
                        [% IF itemtype.automatic_checkin %]
254
                            <input type="checkbox" id="automatic_checkin" name="automatic_checkin" checked="checked" value="1" />
280
                            <input type="checkbox" id="automatic_checkin" name="automatic_checkin" checked="checked" value="1" />
255
                        [% ELSE %]
281
                        [% ELSE %]
256
                            <input type="checkbox" id="automatic_checkin" name="automatic_checkin" value="1" />
282
                            <input type="checkbox" id="automatic_checkin" name="automatic_checkin" value="1" />
257
                        [% END %]
283
                        [% END %]
258
                        <span class="hint"
284
                    </div>
259
                            >If checked, items will be automatically checked in once they've reached their due date. This feature requires the <code>misc/cronjobs/automatic_checkin.pl</code> cronjob. Ask your system administrator to
285
                    <div class="hint">
260
                            schedule it.</span
286
                        If checked, items will be automatically checked in once they've reached their due date. This feature requires the <code>misc/cronjobs/automatic_checkin.pl</code> cronjob. Ask your system administrator to schedule it.
261
                        >
287
                    </div>
262
                    </li>
288
                </div>
263
                    <li>
289
                <div class="fg-row input-checkbox">
290
                    <div class="fg-label">
264
                        <label for="bookable">Bookable: </label>
291
                        <label for="bookable">Bookable: </label>
292
                    </div>
293
                    <div class="fg-input">
265
                        [% IF itemtype.bookable %]
294
                        [% IF itemtype.bookable %]
266
                            <input type="checkbox" id="bookable" name="bookable" checked="checked" value="1" />
295
                            <input type="checkbox" id="bookable" name="bookable" checked="checked" value="1" />
267
                        [% ELSE %]
296
                        [% ELSE %]
268
                            <input type="checkbox" id="bookable" name="bookable" value="1" />
297
                            <input type="checkbox" id="bookable" name="bookable" value="1" />
269
                        [% END %]
298
                        [% END %]
270
                        <span class="hint">If checked, all items of this type will be enabled for future bookings unless overridden at the item level.</span>
299
                    </div>
271
                    </li>
300
                    <div class="hint">If checked, all items of this type will be enabled for future bookings unless overridden at the item level.</div>
272
                    <li>
301
                </div>
302
                <div class="fg-row input-sm">
303
                    <div class="fg-label">
273
                        <label for="rentalcharge">Rental charge: </label>
304
                        <label for="rentalcharge">Rental charge: </label>
274
                        <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% itemtype.rentalcharge | $Price on_editing => 1 %]" min="0" />
305
                    </div>
275
                        <div class="hint">This fee is charged once per checkout/renewal per item</div>
306
                    <div class="fg-input">
276
                    </li>
307
                        <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% itemtype.rentalcharge | $Price on_editing => 1 %]" />
277
                    <li>
308
                    </div>
309
                    <div class="hint">This fee is charged once per checkout/renewal per item</div>
310
                </div>
311
                <div class="fg-row input-sm">
312
                    <div class="fg-label">
278
                        <label for="rentalcharge_daily">Daily rental charge: </label>
313
                        <label for="rentalcharge_daily">Daily rental charge: </label>
279
                        <input type="text" id="rentalcharge_daily" name="rentalcharge_daily" size="10" value="[% itemtype.rentalcharge_daily | $Price on_editing => 1 %]" min="0" />
314
                    </div>
280
                        <div class="hint">This fee is charged at checkout/renewal time for each day between the checkout/renewal date and due date for loans specified in days.</div>
315
                    <div class="fg-input">
281
                    </li>
316
                        <input type="text" id="rentalcharge_daily" name="rentalcharge_daily" size="10" value="[% itemtype.rentalcharge_daily | $Price on_editing => 1 %]" />
282
                    <li>
317
                    </div>
318
                    <div class="hint">This fee is charged at checkout/renewal time for each day between the checkout/renewal date and due date for loans specified in days.</div>
319
                </div>
320
                <div class="fg-row input-checkbox">
321
                    <div class="fg-label">
283
                        <label for="rentalcharge_daily_calendar">Daily rentals use calendar: </label>
322
                        <label for="rentalcharge_daily_calendar">Daily rentals use calendar: </label>
323
                    </div>
324
                    <div class="fg-input">
284
                        [% IF itemtype.rentalcharge_daily_calendar %]
325
                        [% IF itemtype.rentalcharge_daily_calendar %]
285
                            <input type="checkbox" id="rentalcharge_daily_calendar" name="rentalcharge_daily_calendar" checked="checked" value="1" />
326
                            <input type="checkbox" id="rentalcharge_daily_calendar" name="rentalcharge_daily_calendar" checked="checked" value="1" />
286
                        [% ELSE %]
327
                        [% ELSE %]
287
                            <input type="checkbox" id="rentalcharge_daily_calendar" name="rentalcharge_daily_calendar" value="1" />
328
                            <input type="checkbox" id="rentalcharge_daily_calendar" name="rentalcharge_daily_calendar" value="1" />
288
                        [% END %]
329
                        [% END %]
289
                        <span class="hint">If checked, daily charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of days until due, directly.</span>
330
                    </div>
290
                    </li>
331
                    <div class="hint">If checked, daily charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of days until due, directly.</div>
291
                    <li>
332
                </div>
333
                <div class="fg-row input-sm">
334
                    <div class="fg-label">
292
                        <label for="rentalcharge_hourly">Hourly rental charge: </label>
335
                        <label for="rentalcharge_hourly">Hourly rental charge: </label>
293
                        <input type="text" id="rentalcharge_hourly" name="rentalcharge_hourly" size="10" value="[% itemtype.rentalcharge_hourly | $Price on_editing => 1 %]" min="0" />
336
                    </div>
294
                        <div class="hint">This fee is charged at checkout/renewal time for each hour between the checkout/renewal date and due date for loans specified in hours.</div>
337
                    <div class="fg-input">
295
                    </li>
338
                        <input type="text" id="rentalcharge_hourly" name="rentalcharge_hourly" size="10" value="[% itemtype.rentalcharge_hourly | $Price on_editing => 1 %]" />
296
                    <li>
339
                    </div>
340
                    <div class="hint">This fee is charged at checkout/renewal time for each hour between the checkout/renewal date and due date for loans specified in hours.</div>
341
                </div>
342
                <div class="fg-row input-checkbox">
343
                    <div class="fg-label">
297
                        <label for="rentalcharge_hourly_calendar">Hourly rentals use calendar: </label>
344
                        <label for="rentalcharge_hourly_calendar">Hourly rentals use calendar: </label>
345
                    </div>
346
                    <div class="fg-input">
298
                        [% IF itemtype.rentalcharge_hourly_calendar %]
347
                        [% IF itemtype.rentalcharge_hourly_calendar %]
299
                            <input type="checkbox" id="rentalcharge_hourly_calendar" name="rentalcharge_hourly_calendar" checked="checked" value="1" />
348
                            <input type="checkbox" id="rentalcharge_hourly_calendar" name="rentalcharge_hourly_calendar" checked="checked" value="1" />
300
                        [% ELSE %]
349
                        [% ELSE %]
301
                            <input type="checkbox" id="rentalcharge_hourly_calendar" name="rentalcharge_hourly_calendar" value="1" />
350
                            <input type="checkbox" id="rentalcharge_hourly_calendar" name="rentalcharge_hourly_calendar" value="1" />
302
                        [% END %]
351
                        [% END %]
303
                        <span class="hint">If checked, hourly charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of hours until due, directly.</span>
352
                    </div>
304
                    </li>
353
                    <div class="hint">If checked, hourly charge will be calculated using the calendar to exclude holidays. If not checked, the fee will be calculated based on the number of hours until due, directly.</div>
305
                    <li>
354
                </div>
355
                <div class="fg-row input-sm">
356
                    <div class="fg-label">
306
                        <label for="defaultreplacecost">Default replacement cost: </label>
357
                        <label for="defaultreplacecost">Default replacement cost: </label>
307
                        <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | $Price on_editing => 1 %]" min="0" />
358
                    </div>
308
                    </li>
359
                    <div class="fg-input">
309
                    <li>
360
                        <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | $Price on_editing => 1 %]" />
361
                    </div>
362
                </div>
363
                <div class="fg-row input-sm">
364
                    <div class="fg-label">
310
                        <label for="processfee">Processing fee (when lost): </label>
365
                        <label for="processfee">Processing fee (when lost): </label>
311
                        <input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee | $Price on_editing => 1 %]" min="0" />
366
                    </div>
312
                    </li>
367
                    <div class="fg-input">
313
                    <li>
368
                        <input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee | $Price on_editing => 1 %]" />
369
                    </div>
370
                </div>
371
                <div class="fg-row">
372
                    <div class="fg-label">
314
                        <label for="checkinmsg">Checkin message: </label>
373
                        <label for="checkinmsg">Checkin message: </label>
374
                    </div>
375
                    <div class="fg-input">
315
                        <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% itemtype.checkinmsg | html %]</textarea>
376
                        <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% itemtype.checkinmsg | html %]</textarea>
316
                    </li>
377
                    </div>
317
                    <li>
378
                </div>
379
                <div class="fg-row">
380
                    <div class="fg-label">
318
                        <label for="checkinmsgtype">Checkin message type: </label>
381
                        <label for="checkinmsgtype">Checkin message type: </label>
382
                    </div>
383
                    <div class="fg-input">
319
                        <select id="checkinmsgtype" name="checkinmsgtype">
384
                        <select id="checkinmsgtype" name="checkinmsgtype">
320
                            [% IF itemtype.checkinmsgtype == 'message' %]
385
                            [% IF itemtype.checkinmsgtype == 'message' %]
321
                                <option value="message" selected="selected">Message</option>
386
                                <option value="message" selected="selected">Message</option>
Lines 328-338 Link Here
328
                                <option value="alert">Alert</option>
393
                                <option value="alert">Alert</option>
329
                            [% END %]
394
                            [% END %]
330
                        </select>
395
                        </select>
331
                    </li>
396
                    </div>
332
                    <li>
397
                </div>
398
                <div class="fg-row">
399
                    <div class="fg-label">
333
                        <label for="sip_media_type">SIP media type: </label>
400
                        <label for="sip_media_type">SIP media type: </label>
401
                    </div>
402
                    <div class="fg-input">
334
                        <select id="sip_media_type" name="sip_media_type">
403
                        <select id="sip_media_type" name="sip_media_type">
335
                            <option value=""></option>
404
                            <option value="">None</option>
336
                            [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE') %]
405
                            [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE') %]
337
                                [% IF a.authorised_value == itemtype.sip_media_type %]
406
                                [% IF a.authorised_value == itemtype.sip_media_type %]
338
                                    <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
407
                                    <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
Lines 341-363 Link Here
341
                                [% END %]
410
                                [% END %]
342
                            [% END %]
411
                            [% END %]
343
                        </select>
412
                        </select>
344
                    </li>
413
                    </div>
345
                    <li>
414
                </div>
415
                <div class="fg-row">
416
                    <div class="fg-label">
346
                        <label for="library_limitation">Library limitation: </label>
417
                        <label for="library_limitation">Library limitation: </label>
418
                    </div>
419
                    <div class="fg-input">
347
                        <select id="library_limitation" name="branches" multiple size="10">
420
                        <select id="library_limitation" name="branches" multiple size="10">
348
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => itemtype.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %]
421
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => itemtype.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %]
349
                        </select>
422
                        </select>
350
                        <div class="hint">Limits the use of this item type to the selected libraries.</div>
423
                    </div>
351
                    </li>
424
                    <div class="hint">Select 'All libraries' if all libraries use this item type. Otherwise, select the specific libraries that use this item type.</div>
352
                    <li>
425
                </div>
426
                <div class="fg-row">
427
                    <div class="fg-label">
353
                        <label for="summary">Summary: </label>
428
                        <label for="summary">Summary: </label>
429
                    </div>
430
                    <div class="fg-input">
354
                        <textarea id="summary" name="summary" cols="55" rows="5">[% itemtype.summary | html %]</textarea>
431
                        <textarea id="summary" name="summary" cols="55" rows="5">[% itemtype.summary | html %]</textarea>
355
                        <div class="hint">Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </div>
432
                    </div>
356
                        <div class="hint"><strong>&lt;a href="[856u]"&gt;open site&lt;/a&gt;</strong> will show the link just below the title</div>
433
                    <div class="hint">
357
                    </li>
434
                        Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype: <strong>&lt;a href="[856u]"&gt;open site&lt;/a&gt;</strong> will show the link just below the title
358
                    [% IF Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' %]
435
                    </div>
359
                        <li>
436
                </div>
437
                [% IF Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' %]
438
                    <div class="fg-row">
439
                        <div class="fg-label">
360
                            <label for="checkprevcheckout">Check for previous checkouts: </label>
440
                            <label for="checkprevcheckout">Check for previous checkouts: </label>
441
                        </div>
442
                        <div class="fg-input">
361
                            <select name="checkprevcheckout" id="checkprevcheckout">
443
                            <select name="checkprevcheckout" id="checkprevcheckout">
362
                                [% IF itemtype.checkprevcheckout == 'yes' %]
444
                                [% IF itemtype.checkprevcheckout == 'yes' %]
363
                                    <option value="yes" selected="selected">Yes and override system preferences</option>
445
                                    <option value="yes" selected="selected">Yes and override system preferences</option>
Lines 373-381 Link Here
373
                                    <option value="inherit" selected="selected">Inherit from system preferences</option>
455
                                    <option value="inherit" selected="selected">Inherit from system preferences</option>
374
                                [% END %]
456
                                [% END %]
375
                            </select>
457
                            </select>
376
                        </li>
458
                        </div>
377
                    [% END %]
459
                    </div>
378
                </ol>
460
                [% END %]
379
            </fieldset>
461
            </fieldset>
380
462
381
            <fieldset class="action">
463
            <fieldset class="action">
382
- 

Return to bug 41826