|
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&searchfield=noItemTypeImages">noItemTypeImages or OpacNoItemTypeImages system preferences</a> |
239 |
<a href="/cgi-bin/koha/admin/preferences.pl?op=search&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><a href="[856u]">open site</a></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><a href="[856u]">open site</a></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 |
- |
|
|