1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Item Types <!-- TMPL_IF name="add_form" -->›
3 <!-- TMPL_IF name="itemtype" -->
4 Modify Item Type '<!-- TMPL_VAR name="itemtype" -->'
9 <!-- TMPL_IF name="delete_confirm" -->›
10 <!-- TMPL_IF name="total" -->
11 Cannot Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'
13 Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?
16 <!-- TMPL_IF name="delete_confirmed" -->›
20 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" --><script type="text/javascript">
23 function isNotNull(f,noalert) {
24 if (f.value.length ==0) {
31 var x=f.value.toUpperCase();
36 function isNum(v,maybenull) {
37 var n = new Number(v.value);
41 if (maybenull==0 && v.value=='') {
48 var t = Date.parse(f.value);
58 if (f.itemtype.value.length==0) {
59 _alertString += "\n- " + _("Itemtype missing");
61 if (!(isNotNull(window.document.Aform.description,1))) {
62 _alertString += "\n- " + _("Description missing");
64 if ((!isNum(f.rentalcharge,0)) && f.rentalcharge.value.length > 0) {
65 _alertString += "\n- " + _("Rental charge is not a number");
67 if (_alertString.length==0) {
68 document.Aform.submit();
70 alertString2 = _("Form not submitted because of the following problem(s)");
71 alertString2 += "\n------------------------------------------------------------------------------------\n";
72 alertString2 += _alertString;
76 $(document).ready(function() {
77 $('#icons > ul').tabs();
78 alert($("input:radio[@name=image]:checked").parents("div:first").attr("id"));
82 <style type="text/css">
83 fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
84 fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : transparent; }
85 fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
89 <!-- TMPL_INCLUDE NAME="header.inc" -->
90 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
92 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF name="add_form" -->
93 <!-- TMPL_IF name="itemtype" -->
94 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Modify Item Type '<!-- TMPL_VAR name="itemtype" -->'
96 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Add Item Type
99 <!-- TMPL_IF name="delete_confirm" -->
100 <!-- TMPL_IF name="total" -->
101 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Cannot Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'
103 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> › Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?
106 <!-- TMPL_IF name="delete_confirmed" -->
107 <a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> ›Data Deleted
109 <!-- TMPL_IF name="else" -->
110 Item Types Administration
111 <!-- /TMPL_IF --></div>
113 <div id="doc3" class="yui-t2">
119 <!-- TMPL_IF NAME="else" --><div id="toolbar">
120 <script type="text/javascript">
123 // prepare DOM for YUI Toolbar
125 $(document).ready(function() {
129 // YUI Toolbar Functions
131 function yuiToolbar() {
132 new YAHOO.widget.Button("newitemtype");
138 <li><a id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form">New Item Type</a></li>
139 </ul></div><!-- TMPL_ELSE --> <!-- /TMPL_IF -->
141 <!-- TMPL_IF name="add_form" -->
142 <!-- TMPL_IF name="itemtype" -->
143 <h3>Modify Item Type</h3>
145 <h3>Add Item Type</h3>
147 <form action="<!-- TMPL_VAR name="script_name" -->" name="Aform" method="post">
148 <input type="hidden" name="op" value="add_validate" />
149 <input type="hidden" name="checked" value="0" />
151 <fieldset class="rows">
153 <!-- TMPL_IF name="itemtype" -->
155 <span class="label">Item type</span> <input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->" />
156 <!-- TMPL_VAR name="itemtype" -->
160 <label for="itemtype">Item type</label> <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" onblur="toUC(this)" />
164 <label for="description">Description</label><input type="text" id="description" name="description" size="48" maxlength="80" value="<!-- TMPL_VAR name="description" escape="HTML" -->" /> </li>
165 <!-- TMPL_IF NAME="noItemTypeImages" -->
166 <li><span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=all&searchfield=noItemTypeImages">noItemTypeImages system preference</a></li></ol>
167 <!-- TMPL_ELSE --></ol>
168 <div id="icons" class="toptabs">
169 <h5 style="margin-left:10px;">Choose an Icon:</h5>
171 <li><a href="/cgi-bin/koha/admin/itemtypes.pl#none">None</a></li>
172 <!-- TMPL_LOOP NAME="imagesets" -->
173 <li><a href="/cgi-bin/koha/admin/itemtypes.pl#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
175 <li><a href="/cgi-bin/koha/admin/itemtypes.pl#remote">Remote Image</a></li>
179 <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
181 <br class="clear" /></div>
183 <!-- TMPL_LOOP NAME="imagesets" -->
184 <div id="<!-- TMPL_VAR NAME="imagesetname" -->"><ul>
185 <!-- TMPL_LOOP NAME="images" -->
186 <li style="float: none; display: inline; clear : none; width: auto;">
187 <label> <!-- TMPL_IF NAME="StaffImageUrl" -->
188 <img src="<!-- TMPL_VAR name="StaffImageUrl" -->" alt="<!-- TMPL_VAR name="StaffImageUrl" -->" title="<!-- TMPL_VAR name="StaffImageUrl" -->" />
191 <!-- TMPL_IF name="checked" -->
192 <input type="radio" name="image" value="<!-- TMPL_VAR name="KohaImage" -->" checked="checked" />
194 <!-- TMPL_IF NAME="KohaImage" --> <!-- to delete the radio button if there is no image after -->
195 <input type="radio" name="image" value="<!-- TMPL_VAR name="KohaImage" -->" />
205 <div id="remote"><ul>
206 <li> <label for="remote_image_check"> Remote image:</label>
207 <!-- TMPL_IF name="remote_image" -->
208 <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
210 <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
211 <!-- /TMPL_IF --><input type="text" name="remoteImage" size="48" maxlength="200" value="<!-- TMPL_VAR name="remote_image" -->" onmousedown="document.getElementById('remote_image_check').checked = true;" /> <!-- TMPL_IF name="remote_image" -->
212 <img src="<!-- TMPL_VAR name="remote_image" -->" alt="" />
213 <!-- /TMPL_IF --></li>
220 <label for="notforloan">Not for loan</label> <!-- TMPL_IF name="notforloan" -->
221 <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
223 <input type="checkbox" id="notforloan" name="notforloan" value="1" />
225 (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)
229 <label for="renewalsallowed">Renewals: </label>
230 <input type="text" id="renewalsallowed" name="renewalsallowed" size="3" maxlength="3" value="<!-- TMPL_VAR NAME="renewalsallowed" -->" />
233 <label for="rentalcharge">Rental charge: </label>
234 <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="<!-- TMPL_VAR name="rentalcharge" -->" />
237 <label for="summary">Summary: </label>
238 <textarea id="summary" name="summary" cols="55" rows="5"><!-- TMPL_VAR NAME="summary" --></textarea>
239 <p>Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </p>
240 <p><b><a href="[856u]">open site</a></b> will show the link just below the title</p>
245 <fieldset class="action">
246 <input type="button" value="Save Changes" onclick="Check(this.form)" />
247 <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
252 <!-- TMPL_IF name="delete_confirm" -->
253 <!-- TMPL_IF name="total" --><div class="dialog message">
254 <h3>Cannot Delete Item Type</h3>
255 <p><strong>This record is used <!-- TMPL_VAR name="total" --> times</strong>. Deletion is not possible.</p>
256 <!-- TMPL_ELSE --><div class="dialog alert">
257 <h3>Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?</h3>
261 <th scope="row">Item type</th>
262 <td><!-- TMPL_VAR name="itemtype" --></td>
265 <tr><th scope="row">Description</th><td><!-- TMPL_VAR name="description" --></td></tr>
266 <tr><th scope="row">Loan length</th><td><!-- TMPL_VAR name="loanlength" --></td></tr>
267 <tr><th scope="row">Renewals</th><td><!-- TMPL_IF name="renewalsallowed" -->Allowed<!-- TMPL_ELSE -->Not allowed<!-- /TMPL_IF --></td></tr>
268 <tr><th scope="row">Rental charge</th><td><!-- TMPL_VAR name="rentalcharge" --></td></tr></table>
269 <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
270 <input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->" /><!-- TMPL_IF name="total" -->
273 <form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" class="approve" value="OK" /></form>
275 <input type="submit" class="approve" value="Delete this Item Type" /></form> <form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" class="deny" value="Do Not Delete" /></form>
281 <!-- TMPL_IF name="else" -->
282 <h2>Item Types Administration</h2>
285 <!-- TMPL_UNLESS NAME="noItemTypeImages" --><th>Image</th><!-- /TMPL_UNLESS -->
288 <th>Not for loan</th>
293 <!-- TMPL_LOOP name="loop" -->
294 <!-- TMPL_IF NAME="toggle" -->
297 <tr class="highlight">
299 <!-- TMPL_UNLESS NAME="noItemTypeImages" --> <td><img src="<!-- TMPL_VAR name="imageurl" -->" alt="" /></td><!-- /TMPL_UNLESS -->
301 <a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->">
302 <!-- TMPL_VAR name="itemtype" -->
305 <td><!-- TMPL_VAR name="description" --></td>
306 <td><!-- TMPL_IF NAME="notforloan" -->Yes<!-- TMPL_ELSE --> <!-- /TMPL_IF --></td>
308 <!-- TMPL_IF NAME="renewalsallowed" -->
309 <!-- TMPL_VAR name="renewalsallowed" --> times
315 <!-- TMPL_UNLESS name="notforloan" -->
316 <!-- TMPL_VAR NAME="rentalcharge" -->
317 <!-- /TMPL_UNLESS -->
320 <a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->">Edit</a>
321 <a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->">Delete</a>
327 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
336 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
339 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->