2 [% USE AuthorisedValues %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Administration › Item types [% IF ( add_form ) %]›
6 Modify item type '[% itemtype %]'
11 [% IF ( delete_confirm ) %]›
13 Cannot delete item type '[% itemtype %]'
15 Delete item type '[% itemtype %]'?
18 [% IF ( delete_confirmed ) %]›
22 [% INCLUDE 'doc-head-close.inc' %]
23 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
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" ]],
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>
90 <h3>Modify item type</h3>
92 <h3>Add item type</h3>
94 <form action="[% script_name %]" name="Aform" method="post" id="itemtypeentry">
95 <input type="hidden" name="op" value="add_validate" />
96 <input type="hidden" name="checked" value="0" />
98 <fieldset class="rows">
100 [% IF ( itemtype ) %]
102 <span class="label">Item type: </span> <input type="hidden" name="itemtype" value="[% itemtype %]" />
107 <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>
111 <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>
112 [% IF ( noItemTypeImages ) %]
113 <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>
115 <div id="icons" class="toptabs" style="clear:both">
116 <h5 style="margin-left:10px;">Choose an icon:</h5>
118 <li><a href="#none">None</a></li>
119 [% FOREACH imageset IN imagesets %]
120 [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
122 [% IF ( remote_image ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#remote">Remote image</a></li>
125 <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
127 <br class="clear" /></div>
129 [% FOREACH imageset IN imagesets %]
130 <div id="[% imageset.imagesetname %]"><ul>
131 [% FOREACH image IN imageset.images %]
132 <li style="float: none; display: inline-block; clear : none; width: auto;">
133 <label> [% IF ( image.StaffImageUrl ) %]
134 <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
137 [% IF ( image.checked ) %]
138 <input type="radio" name="image" value="[% image.KohaImage %]" checked="checked" />
140 [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
141 <input type="radio" name="image" value="[% image.KohaImage %]" />
151 <div id="remote"><ul>
152 <li> <label for="remote_image_check"> Remote image:</label>
153 [% IF ( remote_image ) %]
154 <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
156 <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
157 [% END %]<input type="text" name="remoteImage" size="48" maxlength="200" value="[% remote_image %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> [% IF ( remote_image ) %]
158 <img src="[% remote_image %]" alt="" />
167 <label for="notforloan">Not for loan: </label> [% IF ( notforloan ) %]
168 <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
170 <input type="checkbox" id="notforloan" name="notforloan" value="1" />
172 (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)
176 <label for="rentalcharge">Rental charge: </label>
177 <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
180 <label for="checkinmsg">Checkin message: </label>
181 <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% checkinmsg %]</textarea>
184 <label for="checkinmsgtype">Checkin message type: </label>
185 <select type="text" id="checkinmsgtype" name="checkinmsgtype">
186 [% IF ( checkinmsgtype == 'message' ) %]
187 <option value="message" selected="selected">Message</option>
189 <option value="message">Message</option>
191 [% IF ( checkinmsgtype == 'alert' ) %]
192 <option value="alert" selected="selected">Alert</option>
194 <option value="alert">Alert</option>
199 <label for="sip_media_type">SIP media type: </label>
200 <select id="sip_media_type" name="sip_media_type">
201 <option value=""></option>
202 [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE', sip_media_type ) %]
204 <option value="[% a.authorised_value %]" selected="selected">[% a.lib | $EncodeUTF8 %]</option>
206 <option value="[% a.authorised_value %]">[% a.lib | $EncodeUTF8 %]</option>
212 <label for="summary">Summary: </label>
213 <textarea id="summary" name="summary" cols="55" rows="5">[% summary %]</textarea>
214 <p>Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </p>
215 <p><b><a href="[856u]">open site</a></b> will show the link just below the title</p>
220 <fieldset class="action">
221 <input type="submit" value="Save changes" />
222 <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
227 [% IF ( delete_confirm ) %]
228 [% IF ( total ) %]<div class="dialog message">
229 <h3>Cannot delete item type</h3>
230 <p><strong>This record is used [% total %] times</strong>. Deletion is not possible.</p>
231 [% ELSE %]<div class="dialog alert">
232 <h3>Delete item type '[% itemtype %]'?</h3>
236 <th scope="row">Item type</th>
237 <td>[% itemtype %]</td>
240 <tr><th scope="row">Description</th><td>[% description %]</td></tr>
241 <tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
242 <tr><th scope="row">Rental charge</th><td>[% rentalcharge %]</td></tr></table>
243 <form action="[% script_name %]" method="post">
244 <input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
247 <form action="[% script_name %]" method="post"><input type="submit" class="approve" value="OK" /></form>
249 <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>
256 <h2>Item types administration</h2>
258 <table id="table_item_type">
260 [% UNLESS ( noItemTypeImages ) %]<th>Image</th>[% END %]
263 <th>Not for loan</th>
265 <th>Checkin message</th>
268 [% FOREACH loo IN loop %]
270 [% UNLESS ( noItemTypeImages ) %] <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt="" />[% ELSE %] [% END %]</td>[% END %]
272 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">
276 <td>[% loo.description %]</td>
277 <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %] [% END %]</td>
279 [% UNLESS ( loo.notforloan ) %]
280 [% loo.rentalcharge %]
283 <td>[% loo.checkinmsg | html_line_break %]</td>
285 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">Edit</a>
286 <a href="[% loo.script_name %]?op=delete_confirm&itemtype=[% loo.itemtype |html %]">Delete</a>
291 <div class="dialog message">There are no itemtypes defined</div>
294 <div class="pages">[% pagination_bar %]</div>
303 [% INCLUDE 'admin-menu.inc' %]
306 [% INCLUDE 'intranet-bottom.inc' %]