1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Item Types [% IF ( add_form ) %]›
4 Modify Item Type '[% itemtype %]'
9 [% IF ( delete_confirm ) %]›
11 Cannot Delete Item Type '[% itemtype %]'
13 Delete Item Type '[% itemtype %]'?
16 [% IF ( delete_confirmed ) %]›
20 [% INCLUDE 'doc-head-close.inc' %]
21 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
22 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
23 <script type="text/javascript" id="js">$(document).ready(function() {
24 // call the tablesorter plugin
25 $("#table_item_type").tablesorter({
27 headers: { 0: { sorter: false},5: { sorter: false}}
28 }).tablesorterPager({container: $("#pagertable_item_type"),positionFixed: false,size: 10});
31 <script type="text/javascript">
34 function isNotNull(f,noalert) {
35 if (f.value.length ==0) {
42 var x=f.value.toUpperCase();
47 function isNum(v,maybenull) {
48 var n = new Number(v.value);
52 if (maybenull==0 && v.value=='') {
59 var t = Date.parse(f.value);
69 if (f.itemtype.value.length==0) {
70 _alertString += "\n- " + _("Itemtype missing");
72 if (!(isNotNull(window.document.Aform.description,1))) {
73 _alertString += "\n- " + _("Description missing");
75 if ((!isNum(f.rentalcharge,0)) && f.rentalcharge.value.length > 0) {
76 _alertString += "\n- " + _("Rental charge is not a number");
78 if (_alertString.length==0) {
79 document.Aform.submit();
81 alertString2 = _("Form not submitted because of the following problem(s)");
82 alertString2 += "\n------------------------------------------------------------------------------------\n";
83 alertString2 += _alertString;
87 $(document).ready(function() {
88 $('#icons > ul').tabs();
92 <style type="text/css">
93 fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
94 fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : transparent; }
95 fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
99 [% INCLUDE 'header.inc' %]
100 [% INCLUDE 'cat-search.inc' %]
102 <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 ) %]
103 [% IF ( itemtype ) %]
104 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Modify Item Type '[% itemtype %]'
106 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Add Item Type
109 [% IF ( delete_confirm ) %]
111 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Cannot Delete Item Type '[% itemtype %]'
113 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Delete Item Type '[% itemtype %]'?
116 [% IF ( delete_confirmed ) %]
117 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> ›Data Deleted
120 Item Types Administration
123 <div id="doc3" class="yui-t2">
129 [% IF ( else ) %]<div id="toolbar">
130 <script type="text/javascript">
133 // prepare DOM for YUI Toolbar
135 $(document).ready(function() {
139 // YUI Toolbar Functions
141 function yuiToolbar() {
142 new YAHOO.widget.Button("newitemtype");
148 <li><a id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form">New Item Type</a></li>
149 </ul></div>[% ELSE %] [% END %]
151 [% IF ( add_form ) %]
152 [% IF ( itemtype ) %]
153 <h3>Modify Item Type</h3>
155 <h3>Add Item Type</h3>
157 <form action="[% script_name %]" name="Aform" method="post">
158 <input type="hidden" name="op" value="add_validate" />
159 <input type="hidden" name="checked" value="0" />
161 <fieldset class="rows">
163 [% IF ( itemtype ) %]
165 <span class="label">Item type</span> <input type="hidden" name="itemtype" value="[% itemtype %]" />
170 <label for="itemtype">Item type</label> <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" onblur="toUC(this)" />
174 <label for="description">Description</label><input type="text" id="description" name="description" size="48" maxlength="80" value="[% description |html %]" /> </li>
175 [% IF ( noItemTypeImages ) %]
176 <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>
178 <div id="icons" class="toptabs">
179 <h5 style="margin-left:10px;">Choose an Icon:</h5>
181 <li><a href="/cgi-bin/koha/admin/itemtypes.pl#none">None</a></li>
182 [% FOREACH imageset IN imagesets %]
183 [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/admin/itemtypes.pl#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
185 [% IF ( remote_image ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/admin/itemtypes.pl#remote">Remote Image</a></li>
189 <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
191 <br class="clear" /></div>
193 [% FOREACH imageset IN imagesets %]
194 <div id="[% imageset.imagesetname %]"><ul>
195 [% FOREACH image IN imageset.images %]
196 <li style="float: none; display: inline; clear : none; width: auto;">
197 <label> [% IF ( image.StaffImageUrl ) %]
198 <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
201 [% IF ( image.checked ) %]
202 <input type="radio" name="image" value="[% image.KohaImage %]" checked="checked" />
204 [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
205 <input type="radio" name="image" value="[% image.KohaImage %]" />
215 <div id="remote"><ul>
216 <li> <label for="remote_image_check"> Remote image:</label>
217 [% IF ( remote_image ) %]
218 <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
220 <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
221 [% END %]<input type="text" name="remoteImage" size="48" maxlength="200" value="[% remote_image %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> [% IF ( remote_image ) %]
222 <img src="[% remote_image %]" alt="" />
230 <label for="notforloan">Not for loan</label> [% IF ( notforloan ) %]
231 <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
233 <input type="checkbox" id="notforloan" name="notforloan" value="1" />
235 (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)
239 <label for="rentalcharge">Rental charge: </label>
240 <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
243 <label for="summary">Summary: </label>
244 <textarea id="summary" name="summary" cols="55" rows="5">[% summary %]</textarea>
245 <p>Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </p>
246 <p><b><a href="[856u]">open site</a></b> will show the link just below the title</p>
251 <fieldset class="action">
252 <input type="button" value="Save Changes" onclick="Check(this.form)" />
253 <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
258 [% IF ( delete_confirm ) %]
259 [% IF ( total ) %]<div class="dialog message">
260 <h3>Cannot Delete Item Type</h3>
261 <p><strong>This record is used [% total %] times</strong>. Deletion is not possible.</p>
262 [% ELSE %]<div class="dialog alert">
263 <h3>Delete Item Type '[% itemtype %]'?</h3>
267 <th scope="row">Item type</th>
268 <td>[% itemtype %]</td>
271 <tr><th scope="row">Description</th><td>[% description %]</td></tr>
272 <tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
273 <tr><th scope="row">Rental charge</th><td>[% rentalcharge %]</td></tr></table>
274 <form action="[% script_name %]" method="post">
275 <input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
278 <form action="[% script_name %]" method="post"><input type="submit" class="approve" value="OK" /></form>
280 <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>
287 <h2>Item Types Administration</h2>
288 [% IF ( loop ) %]<span id="pagertable_item_type" class="pager">
289 <form class="formpager"> <strong>page(s)</strong>:
290 <img src="[% interface %]/prog/img/first.png" class="first"/>
291 <img src="[% interface %]/prog/img/prev.png" class="prev"/>
292 <input type="text" size="5" class="pagedisplay"/>
293 <img src="[% interface %]/prog/img/next.png" class="next"/>
294 <img src="[% interface %]/prog/img/last.png" class="last"/>
296 <select class="pagesize">
297 <option selected="selected" value="10">10</option>
298 <option value="20">20</option>
299 <option value="30">30</option>
300 <option value="40">40</option>
301 <option value="50">50</option>
302 <option value="100">100</option>
306 <table id="table_item_type">
308 [% UNLESS ( noItemTypeImages ) %]<th>Image</th>[% END %]
311 <th>Not for loan</th>
315 [% FOREACH loo IN loop %]
316 [% UNLESS ( loop.odd ) %]
317 <tr class="highlight">
321 [% UNLESS ( noItemTypeImages ) %] <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt="" />[% ELSE %] [% END %]</td>[% END %]
323 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">
327 <td>[% loo.description %]</td>
328 <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %] [% END %]</td>
330 [% UNLESS ( loo.notforloan ) %]
331 [% loo.rentalcharge %]
335 <a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">Edit</a>
336 <a href="[% loo.script_name %]?op=delete_confirm&itemtype=[% loo.itemtype |html %]">Delete</a>
341 <div class="dialog message">There are no itemtypes defined</div>
344 <div class="pages">[% pagination_bar %]</div>
353 [% INCLUDE 'admin-menu.inc' %]
356 [% INCLUDE 'intranet-bottom.inc' %]