1 [% USE AuthorisedValues %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › Item types [% IF ( add_form ) %]›
5 Modify item type '[% itemtype %]'
10 [% IF ( delete_confirm ) %]›
12 Cannot delete item type '[% itemtype %]'
14 Delete item type '[% itemtype %]'?
17 [% IF ( delete_confirmed ) %]›
21 [% INCLUDE 'doc-head-close.inc' %]
22 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
23 [% INCLUDE 'greybox.inc' %]
24 [% INCLUDE 'datatables.inc' %]
25 <script type="text/javascript">
27 $(document).ready(function() {
29 $("#table_item_type").dataTable($.extend(true, {}, dataTablesDefaults, {
31 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
33 "aaSorting": [[ 2, "asc" ]],
35 "sPaginationType": "four_button"
37 $( "#itemtypeentry" ).validate({
39 itemtype: { required: true },
40 description: { required: true },
41 rentalcharge: { number: true }
47 <style type="text/css">
48 fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
49 fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-active {background-color : #F4F8F9; }
50 fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
51 fieldset.rows .ui-tabs-nav { margin-left : 10px; }
54 <body id="admin_itemtypes" class="admin">
55 [% INCLUDE 'header.inc' %]
56 [% INCLUDE 'cat-search.inc' %]
58 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( add_form ) %]
60 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Modify item type '[% itemtype %]'
62 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Add item type
65 [% IF ( delete_confirm ) %]
67 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Cannot delete item type '[% itemtype %]'
69 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Delete item type '[% itemtype %]'?
72 [% IF ( delete_confirmed ) %]
73 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> ›Data deleted
76 Item types administration
79 <div id="doc3" class="yui-t2">
85 [% IF ( else ) %]<div id="toolbar" class="btn-toolbar">
86 <a class="btn btn-small" id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form"><i class="fa fa-plus"></i> New item type</a>
89 [% FOREACH message IN messages %]
90 [% IF message.type == 'success' %]
91 <div class="dialog message">
92 [% ELSIF message.type == 'warning' %]
93 <div class="dialog alert">
94 [% ELSIF message.type == 'error' %]
95 <div class="dialog error" style="margin:auto;">
97 [% IF message.code == 'already_exists' %]
98 This item type already exists.
104 [% IF ( add_form ) %]
105 [% IF ( itemtype ) %]
106 <h3>Modify item type</h3>
108 <h3>Add item type</h3>
110 <form action="[% script_name %]" name="Aform" method="post" id="itemtypeentry">
111 <input type="hidden" name="op" value="add_validate" />
112 <input type="hidden" name="checked" value="0" />
114 <fieldset class="rows">
116 [% IF ( itemtype ) %]
118 <input type="hidden" name="is_a_modif" value="1" />
119 <span class="label">Item type: </span> <input type="hidden" name="itemtype" value="[% itemtype %]" />
124 <label for="itemtype" class="required">Item type: </label> <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" onblur="toUC(this)" required="required" /> <span class="required">Required</span>
128 <label for="description" class="required">Description: </label><input type="text" id="description" name="description" size="48" value="[% description |html %]" required="required" /> <span class="required">Required</span>
129 <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype %]" title="Translate" rel="gb_page_center[600,500]"><i class="icon-edit"></i> Translate for other languages</a>
132 <span class="label">Search category</span>
133 <select id="searchcategory" name="searchcategory">
134 <option value="">None</option>
135 [% FOREACH cat IN searchcategory %]
136 [% IF ( cat.selected ) %]
137 <option value="[% cat.authorised_value %]" selected="selected">
141 <option value="[% cat.authorised_value %]" >
147 (Options are defined as the authorized values for the ITEMTYPECAT category)
149 [% IF ( noItemTypeImages ) %]
150 <li><span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=noItemTypeImages">noItemTypeImages system preference</a></li></ol>
152 <div id="icons" class="toptabs" style="clear:both">
153 <h5 style="margin-left:10px;">Choose an icon:</h5>
155 <li><a href="#none">None</a></li>
156 [% FOREACH imageset IN imagesets %]
157 [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
159 [% IF ( remote_image ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#remote">Remote image</a></li>
162 <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
164 <br class="clear" /></div>
166 [% FOREACH imageset IN imagesets %]
167 <div id="[% imageset.imagesetname %]"><ul>
168 [% FOREACH image IN imageset.images %]
169 <li style="float: none; display: inline-block; clear : none; width: auto;">
170 <label> [% IF ( image.StaffImageUrl ) %]
171 <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
174 [% IF ( image.checked ) %]
175 <input type="radio" name="image" value="[% image.KohaImage %]" checked="checked" />
177 [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
178 <input type="radio" name="image" value="[% image.KohaImage %]" />
188 <div id="remote"><ul>
189 <li> <label for="remote_image_check"> Remote image:</label>
190 [% IF ( remote_image ) %]
191 <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
193 <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
194 [% END %]<input type="text" name="remoteImage" size="48" maxlength="200" value="[% remote_image %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> [% IF ( remote_image ) %]
195 <img src="[% remote_image %]" alt="" />
204 <label for="hideinopac">Hide in OPAC: </label>
205 [% IF ( hideinopac ) %]
206 <input type="checkbox" id="hideinopac" name="hideinopac" checked="checked" value="1" />
208 <input type="checkbox" id="hideinopac" name="hideinopac" value="1" />
210 (if checked, items of this type will be hidden as filters in OPAC's advanced search)
213 <label for="notforloan">Not for loan: </label> [% IF ( notforloan ) %]
214 <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
216 <input type="checkbox" id="notforloan" name="notforloan" value="1" />
218 (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)
222 <label for="rentalcharge">Rental charge: </label>
223 <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
226 <label for="checkinmsg">Checkin message: </label>
227 <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% checkinmsg %]</textarea>
230 <label for="checkinmsgtype">Checkin message type: </label>
231 <select type="text" id="checkinmsgtype" name="checkinmsgtype">
232 [% IF ( checkinmsgtype == 'message' ) %]
233 <option value="message" selected="selected">Message</option>
235 <option value="message">Message</option>
237 [% IF ( checkinmsgtype == 'alert' ) %]
238 <option value="alert" selected="selected">Alert</option>
240 <option value="alert">Alert</option>
245 <label for="sip_media_type">SIP media type: </label>
246 <select id="sip_media_type" name="sip_media_type">
247 <option value=""></option>
248 [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE', sip_media_type ) %]
250 <option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
252 <option value="[% a.authorised_value %]">[% a.lib %]</option>
258 <label for="summary">Summary: </label>
259 <textarea id="summary" name="summary" cols="55" rows="5">[% summary %]</textarea>
260 <p>Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </p>
261 <p><b><a href="[856u]">open site</a></b> will show the link just below the title</p>
266 <fieldset class="action">
267 <input type="submit" value="Save changes" />
268 <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
273 [% IF ( delete_confirm ) %]
274 [% IF ( total ) %]<div class="dialog message">
275 <h3>Cannot delete item type</h3>
276 <p><strong>This record is used [% total %] times</strong>. Deletion is not possible.</p>
277 [% ELSE %]<div class="dialog alert">
278 <h3>Delete item type '[% itemtype %]'?</h3>
282 <th scope="row">Item type</th>
283 <td>[% itemtype %]</td>
286 <tr><th scope="row">Description</th><td>[% translated_description %]</td></tr>
287 <tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
288 <tr><th scope="row">Rental charge</th><td>[% rentalcharge %]</td></tr></table>
289 <form action="[% script_name %]" method="post">
290 <input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
293 <form action="[% script_name %]" method="post"><input type="submit" class="approve" value="OK" /></form>
295 <input type="submit" class="approve" value="Delete this Item Type" /></form> <form action="[% script_name %]" method="post"><input type="submit" class="deny" value="Do Not Delete" /></form>
302 <h2>Item types administration</h2>
304 <table id="table_item_type">
306 [% UNLESS ( noItemTypeImages ) %]<th>Image</th>[% END %]
309 <th>Search category</th>
310 <th>Not for loan</th>
311 <th>Hide in OPAC</th>
313 <th>Checkin message</th>
316 [% FOREACH loo IN loop %]
318 [% UNLESS ( noItemTypeImages ) %] <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt="" />[% ELSE %] [% END %]</td>[% END %]
320 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">
325 [% IF loo.translated_descriptions.size %]
326 [% loo.description %] (default)<br/>
327 [% FOR description IN loo.translated_descriptions %]
328 [% IF description.translation == loo.translated_description %]
329 <b>[% description.translation %]</b>
331 [% description.translation %] ([% description.lang %])
336 [% loo.description %]
339 <td>[% loo.searchcategory %]</td>
340 <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %] [% END %]</td>
341 <td>[% IF ( loo.hideinopac ) %]Yes[% ELSE %] [% END %]</td>
343 [% UNLESS ( loo.notforloan ) %]
344 [% loo.rentalcharge %]
347 <td>[% loo.checkinmsg | html_line_break %]</td>
349 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">Edit</a>
350 <a href="[% loo.script_name %]?op=delete_confirm&itemtype=[% loo.itemtype |html %]">Delete</a>
355 <div class="dialog message">There are no itemtypes defined</div>
358 <div class="pages">[% pagination_bar %]</div>
367 [% INCLUDE 'admin-menu.inc' %]
370 [% INCLUDE 'intranet-bottom.inc' %]