<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha › Tools › Inventory</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/JavaScript" language="JavaScript">
+//<![CDATA[
+ $(document).ready(function() {
+ $("#itemst").tablesorter();
+ });
+//]]>
+</script>
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
</head>
<body>
<a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
<!-- TMPL_IF name="del" -->
- <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Delete batches of notices</a>
+ <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Delete batches of items</a>
<!-- TMPL_ELSE -->
- <a href="/cgi-bin/koha/tools/batchMod.pl">Modify batches of notices</a>
+ <a href="/cgi-bin/koha/tools/batchMod.pl">Modify batches of items</a>
<!-- /TMPL_IF -->
</div>
<div id="yui-main">
<div class="yui-b">
<h1>Batch <!-- TMPL_IF name="del" -->deletion<!-- TMPL_ELSE -->modification<!-- /TMPL_IF --></h1>
- <!-- TMPL_UNLESS name="op" -->
- <div class="yui-g">
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batchMod.pl">
<fieldset class="rows">
- <legend>Use a barcode file</legend>
+ <legend>Use a file</legend>
<ol>
- <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes"></input></li>
+ <li>
+ <label for="barcode_file">Barcodes file</label><input type="radio" name="filecontent" value="barcode_file" id="barcode_file" checked="checked" /><br />
+ <label for="itemid_file">Item Id's file</label><input type="radio" name="filecontent" value="itemid_file" id="itemid_file" />
+ </li>
+ <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile"></input></li>
</ol>
</fieldset>
<fieldset class="rows">
<ol>
<li>
<label for="barcodelist">Barcodes list (one barcode per line): </label>
- <textarea rows="10" cols="30" name="barcodelist"></textarea>
+ <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea>
</li>
</ol>
</fieldset>
- <input type="hidden" name="op" value="barcodes" />
+ <input type="hidden" name="op" value="show" />
<!-- TMPL_IF name="del" --><input type="hidden" name="del" value="1" /><!-- /TMPL_IF -->
<fieldset class="action">
<input type="submit" value="Continue" class="button" />
</fieldset>
</form>
</div>
- <!-- /TMPL_UNLESS -->
- <!-- TMPL_IF name="actions" -->
- <!-- TMPL_IF name="itemsloop" -->
- <table>
- <tr>
- <th>title</th>
- <th>homebranch</th>
- <th>holdingbranch</th>
- <!-- TMPL_LOOP name="authloop" -->
- <th><!-- TMPL_VAR name="description" --></th>
- <!-- /TMPL_LOOP -->
- <!-- TMPL_IF name="itemtypes" -->
- <th>item type</th>
- <!-- /TMPL_UNLESS -->
- </tr>
- <!-- TMPL_LOOP name="itemsloop" -->
- <tr>
- <td><!-- TMPL_VAR name="title" --></td>
- <td><!-- TMPL_VAR name="homebranch" --></td>
- <td><!-- TMPL_VAR name="holdingbranch" --></td>
- <!-- TMPL_LOOP name="authloop" -->
- <td><!-- TMPL_VAR name="authvalue" --></td>
- <!-- /TMPL_LOOP -->
- <!-- TMPL_IF name="itemtypes" -->
- <td><!-- TMPL_VAR name="itemtypedesc" --></td>
- <!-- /TMPL_UNLESS -->
- </tr>
- <!-- /TMPL_LOOP -->
- </table>
- <form method="post" action="/cgi-bin/koha/tools/batchMod.pl">
- <!-- TMPL_IF name="del" -->
- <p>This will delete the selected items.</p>
- <input type="hidden" name="del" value="1" />
- <!-- TMPL_ELSE -->
- <fieldset class="rows">
- <legend>Change items' properties</legend>
- <ol>
- <!-- TMPL_LOOP name="authloop" -->
- <li>
- <label for="<!-- TMPL_VAR name="authcode" -->">Change <!-- TMPL_VAR name="description" --></label>
- <select name="<!-- TMPL_VAR name="authcode" -->" id="<!-- TMPL_VAR name="authcode" -->">
- <option selected="selected" value="0">No change</option>
- <!-- TMPL_LOOP name="values" -->
- <option value="<!-- TMPL_VAR name="authorised_value" -->"><!-- TMPL_VAR NAME="lib" --></option>
- <!-- /TMPL_LOOP -->
- </select>
- </li>
- <!-- /TMPL_LOOP -->
- <li>
- <label for="homebranch">Change the homebranch</label>
- <select name="homebranch" id="homebranch">
- <option selected="selected" value="0">No change</option>
- <!-- TMPL_LOOP name="branches" -->
- <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR NAME="name" --></option>
- <!-- /TMPL_LOOP -->
- </select>
- </li>
- <li>
- <label for="holdingbranch">Change the holdingbranch</label>
- <select name="holdingbranch" id="holdingbranch">
- <option selected="selected" value="0">No change</option>
- <!-- TMPL_LOOP name="branches" -->
- <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR NAME="name" --></option>
- <!-- /TMPL_LOOP -->
- </select>
- </li>
- <!-- TMPL_IF name="itemtypes" -->
- <li>
- <label for="itemtypes">Change the itemtypes</label>
- <select name="itemtypes" id="itemtypes">
- <option selected="selected" value="0">No change</option>
- <!-- TMPL_LOOP name="itemtypes" -->
- <option value="<!-- TMPL_VAR name="itemtype" -->"><!-- TMPL_VAR name="description" --></option>
- <!-- /TMPL_LOOP -->
- </li>
- <!-- /TMPL_IF -->
- <li>
- <label for="itemnotes">Change item note</label>
- <textarea name="itemnotes" id="itemnotes" rows="10" cols="40" ></textarea>
- </li>
- </ol>
- </fieldset>
- <!-- /TMPL_IF -->
- <input type="hidden" name="itemslst" value="<!-- TMPL_VAR name="itemslst" -->"/>
- <fieldset class="action">
- <input type="submit" value="Go" class="button" />
- </fieldset>
- </form>
- <!-- TMPL_ELSE -->
- <h3>No results!</h3>
- <a href="javascript:window.history.back()">Go back</a>
- <!-- /TMPL_IF -->
- <!-- /TMPL_IF -->
- </div>
- </div>
- <div class="yui-b">
+ </div>
+ <div class="yui-b">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
</div>
</div>