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 'datatables.inc' %]
24 <script type="text/javascript">
26 $(document).ready(function() {
28 $("#table_item_type").dataTable($.extend(true, {}, dataTablesDefaults, {
30 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
32 "aaSorting": [[ 2, "asc" ]],
34 "sPaginationType": "four_button"
36 $( "#itemtypeentry" ).validate({
38 itemtype: { required: true },
39 description: { required: true },
40 rentalcharge: { number: true }
46 <style type="text/css">
47 fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
48 fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-active {background-color : #F4F8F9; }
49 fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
50 fieldset.rows .ui-tabs-nav { margin-left : 10px; }
53 <body id="admin_itemtypes" class="admin">
54 [% INCLUDE 'header.inc' %]
55 [% INCLUDE 'cat-search.inc' %]
57 <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 ) %]
59 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Modify item type '[% itemtype %]'
61 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Add item type
64 [% IF ( delete_confirm ) %]
66 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Cannot delete item type '[% itemtype %]'
68 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Delete item type '[% itemtype %]'?
71 [% IF ( delete_confirmed ) %]
72 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> ›Data deleted
75 Item types administration
78 <div id="doc3" class="yui-t2">
84 [% IF ( else ) %]<div id="toolbar" class="btn-toolbar">
85 <a class="btn btn-small" id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form"><i class="icon-plus"></i> New item type</a>
88 [% FOREACH message IN messages %]
89 [% IF message.type == 'success' %]
90 <div class="dialog message">
91 [% ELSIF message.type == 'warning' %]
92 <div class="dialog alert">
93 [% ELSIF message.type == 'error' %]
94 <div class="dialog error" style="margin:auto;">
96 [% IF message.code == 'already_exists' %]
97 This item type already exists.
103 [% IF ( add_form ) %]
104 [% IF ( itemtype ) %]
105 <h3>Modify item type</h3>
107 <h3>Add item type</h3>
109 <form action="[% script_name %]" name="Aform" method="post" id="itemtypeentry">
110 <input type="hidden" name="op" value="add_validate" />
111 <input type="hidden" name="checked" value="0" />
113 <fieldset class="rows">
115 [% IF ( itemtype ) %]
117 <input type="hidden" name="is_a_modif" value="1" />
118 <span class="label">Item type: </span> <input type="hidden" name="itemtype" value="[% itemtype %]" />
123 <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>
127 <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></li>
128 [% IF ( noItemTypeImages ) %]
129 <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>
131 <div id="icons" class="toptabs" style="clear:both">
132 <h5 style="margin-left:10px;">Choose an icon:</h5>
134 <li><a href="#none">None</a></li>
135 [% FOREACH imageset IN imagesets %]
136 [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
138 [% IF ( remote_image ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#remote">Remote image</a></li>
141 <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
143 <br class="clear" /></div>
145 [% FOREACH imageset IN imagesets %]
146 <div id="[% imageset.imagesetname %]"><ul>
147 [% FOREACH image IN imageset.images %]
148 <li style="float: none; display: inline-block; clear : none; width: auto;">
149 <label> [% IF ( image.StaffImageUrl ) %]
150 <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
153 [% IF ( image.checked ) %]
154 <input type="radio" name="image" value="[% image.KohaImage %]" checked="checked" />
156 [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
157 <input type="radio" name="image" value="[% image.KohaImage %]" />
167 <div id="remote"><ul>
168 <li> <label for="remote_image_check"> Remote image:</label>
169 [% IF ( remote_image ) %]
170 <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
172 <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
173 [% END %]<input type="text" name="remoteImage" size="48" maxlength="200" value="[% remote_image %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> [% IF ( remote_image ) %]
174 <img src="[% remote_image %]" alt="" />
183 <label for="notforloan">Not for loan: </label> [% IF ( notforloan ) %]
184 <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
186 <input type="checkbox" id="notforloan" name="notforloan" value="1" />
188 (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)
192 <label for="rentalcharge">Rental charge: </label>
193 <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
196 <label for="checkinmsg">Checkin message: </label>
197 <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% checkinmsg %]</textarea>
200 <label for="checkinmsgtype">Checkin message type: </label>
201 <select type="text" id="checkinmsgtype" name="checkinmsgtype">
202 [% IF ( checkinmsgtype == 'message' ) %]
203 <option value="message" selected="selected">Message</option>
205 <option value="message">Message</option>
207 [% IF ( checkinmsgtype == 'alert' ) %]
208 <option value="alert" selected="selected">Alert</option>
210 <option value="alert">Alert</option>
215 <label for="sip_media_type">SIP media type: </label>
216 <select id="sip_media_type" name="sip_media_type">
217 <option value=""></option>
218 [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE', sip_media_type ) %]
220 <option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
222 <option value="[% a.authorised_value %]">[% a.lib %]</option>
228 <label for="summary">Summary: </label>
229 <textarea id="summary" name="summary" cols="55" rows="5">[% summary %]</textarea>
230 <p>Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </p>
231 <p><b><a href="[856u]">open site</a></b> will show the link just below the title</p>
236 <fieldset class="action">
237 <input type="submit" value="Save changes" />
238 <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
243 [% IF ( delete_confirm ) %]
244 [% IF ( total ) %]<div class="dialog message">
245 <h3>Cannot delete item type</h3>
246 <p><strong>This record is used [% total %] times</strong>. Deletion is not possible.</p>
247 [% ELSE %]<div class="dialog alert">
248 <h3>Delete item type '[% itemtype %]'?</h3>
252 <th scope="row">Item type</th>
253 <td>[% itemtype %]</td>
256 <tr><th scope="row">Description</th><td>[% description %]</td></tr>
257 <tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
258 <tr><th scope="row">Rental charge</th><td>[% rentalcharge %]</td></tr></table>
259 <form action="[% script_name %]" method="post">
260 <input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
263 <form action="[% script_name %]" method="post"><input type="submit" class="approve" value="OK" /></form>
265 <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>
272 <h2>Item types administration</h2>
274 <table id="table_item_type">
276 [% UNLESS ( noItemTypeImages ) %]<th>Image</th>[% END %]
279 <th>Not for loan</th>
281 <th>Checkin message</th>
284 [% FOREACH loo IN loop %]
286 [% UNLESS ( noItemTypeImages ) %] <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt="" />[% ELSE %] [% END %]</td>[% END %]
288 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">
292 <td>[% loo.description %]</td>
293 <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %] [% END %]</td>
295 [% UNLESS ( loo.notforloan ) %]
296 [% loo.rentalcharge %]
299 <td>[% loo.checkinmsg | html_line_break %]</td>
301 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">Edit</a>
302 <a href="[% loo.script_name %]?op=delete_confirm&itemtype=[% loo.itemtype |html %]">Delete</a>
307 <div class="dialog message">There are no itemtypes defined</div>
310 <div class="pages">[% pagination_bar %]</div>
319 [% INCLUDE 'admin-menu.inc' %]
322 [% INCLUDE 'intranet-bottom.inc' %]