<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha › Inventory</title>
+<title>Koha › Tools › Inventory</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
-<!-- Additions to enable Calendar system -->
-<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
-<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
-<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
-<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
-<!-- End of additions -->
+<!-- TMPL_INCLUDE NAME="calendar.inc" -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
+<script type="text/javascript">
+//<![CDATA[
+$(document).ready(function(){
+ $(".checkall").click(function(){
+ $(".checkboxed").checkCheckboxes();
+ return false;
+ });
+ $(".clearall").click(function(){
+ $(".checkboxed").unCheckCheckboxes();
+ return false;
+ });
+<!-- TMPL_IF NAME="offset" -->$("#markseen").before("<input type=\"submit\" value=\"<< Mark Seen and Continue\" id=\"markback\" />");<!-- /TMPL_IF -->
+<!-- TMPL_IF NAME="nextoffset" -->$("#markseen").after("<input type=\"submit\" id=\"marknext\" value=\"Mark Seen and Continue >>\" />");<!-- /TMPL_IF -->
+ $("#markback").click(function(){
+ $(".checkboxed").find("input").filter("[name=offset]").attr("value","<!-- TMPL_VAR NAME="prevoffset" -->");
+ return true;
+ });
+ $("#marknext").click(function(){
+ $(".checkboxed").find("input").filter("[name=offset]").attr("value","<!-- TMPL_VAR NAME="nextoffset" -->");
+ return true;
+ });
+ });
+//]]>
+</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
-<!-- TMPL_INCLUDE NAME="menu-reports.inc"-->
+<!-- TMPL_INCLUDE NAME="cat-search.inc"-->
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <!-- TMPL_IF NAME="loop" --><a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a> › Results<!-- TMPL_ELSE -->Inventory<!-- /TMPL_IF --></div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
- <div class="yui-b"><div class="yui-g">
-
+ <div class="yui-b">
<h1>Inventory/Stocktaking</h1>
- <form method="post">
- <fieldset>
+ <!--TMPL_IF Name="Number" --><div class="dialog message"><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></div><!-- /TMPL_IF-->
+ <!--TMPL_IF Name="errorfile" --><div class="dialog alert"><!--TMPL_VAR Name="errorfile"--> can't be opened</div><!-- /TMPL_IF-->
+ <!--TMPL_LOOP Name="errorloop"-->
+ <div class="dialog alert">
+ <!--TMPL_VAR Name="barcode"-->
+ <!--TMPL_IF Name="ERR_BARCODE"-->: barcode not found<!--/TMPL_IF-->
+ <!--TMPL_IF Name="ERR_WTHDRAWN"-->: item withdrawn<!--/TMPL_IF-->
+ <!--TMPL_IF Name="ERR_ONLOAN_RET"-->: item was on loan. It was returned before marked as seen<!--/TMPL_IF-->
+ <!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"-->: item was on loan. couldn't be returned.<!--/TMPL_IF-->
+ </div>
+ <!-- /TMPL_LOOP-->
+ <!-- TMPL_UNLESS name="loop" -->
+ <div class="yui-g">
+ <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
+ <fieldset class="rows">
+ <legend>Use a barcode file</legend>
+ <ol>
+ <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
+ <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="<!-- TMPL_VAR name="today" -->" />
+ <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="setdate_button" alt="Show Calendar" />
+ <script type="text/javascript">
+ Calendar.setup(
+ {
+ inputField : "setdate",
+ ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
+ button : "setdate_button"
+ }
+ );
+ </script>
+ <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
+ </li>
+ </ol>
+ </fieldset>
+ <fieldset class="rows">
<legend>Select items you want to check</legend>
- <p>
- <label>Branch</label><select id="branchloop" name="branchcode">
+ <ol><li>
+ <label for="branch">Branch</label>
+ <input type="radio" name="branch" value="homebranch">Home Branch</input>
+ <input type="radio" name="branch" value="holdingbranch">Holding Branch</input>
+ </li><li>
+ <label for="branchloop">Library</label><select id="branchloop" name="branchcode" style="width:12em;">
+ <option value="">All Locations</option>
<!-- TMPL_LOOP NAME="branchloop" -->
<!-- TMPL_IF name="selected" -->
- <option value="<!-- TMPL_VAR NAME='value' -->" selected="selected"><!-- TMPL_VAR NAME='branchname' --></option>
+ <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
<!-- TMPL_ELSE -->
- <option value="<!-- TMPL_VAR NAME='value' -->"><!-- TMPL_VAR NAME='branchname' --></option>
+ <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
- </p>
- <p>
- Item Location (items.itemcallnumber) between
- <input type="text" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
- and
- <input type="text" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
- </p>
+ </li>
<!-- TMPL_IF NAME="authorised_values" -->
- <p>
- Item Location (items.location) is
+ <li>
+ <label for="locationloop">Item Location (items.location) is</label>
<select id="locationloop" name="location">
<option value="">Filter location</option>
<!-- TMPL_LOOP NAME="authorised_values" -->
<!-- TMPL_IF name="selected" -->
- <option value="<!-- TMPL_VAR NAME='authorised_value' -->" selected="selected"><!-- TMPL_VAR NAME='lib' --></option>
+ <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected"><!-- TMPL_VAR NAME="lib" --></option>
<!-- TMPL_ELSE -->
- <option value="<!-- TMPL_VAR NAME='authorised_value' -->"><!-- TMPL_VAR NAME='lib' --></option>
+ <option value="<!-- TMPL_VAR NAME="authorised_value" -->"><!-- TMPL_VAR NAME="lib" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
- </select> </p>
+ </select> </li>
+ <!-- /TMPL_IF -->
+ <li>
+ <label for="minlocation">Item callnumber between: </label>
+ <input type="text" name="minlocation" id="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" /> (items.itemcallnumber) </li>
+ <li><label for="maxlocation">...and: </label>
+ <input type="text" name="maxlocation" id="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
+ </li>
+ <!-- TMPL_IF name="statuses" -->
+ </ol>
+ </fieldset>
+ <fieldset class="rows">
+ <legend>Item statuses:</legend>
+ <div name="statuses" style="display: block;">
+ <!-- TMPL_LOOP name="statuses" -->
+ <!-- TMPL_IF name="values" -->
+ <fieldset style="float: left; padding: 5px; margin: 5px;text-align:right">
+ <legend><!-- TMPL_VAR name="fieldname" --></legend>
+ <ul id="statuses-<!-- TMPL_VAR name="fieldname" -->" style="display: inline;">
+ <!-- TMPL_LOOP name="values" -->
+ <!-- TMPL_IF NAME="lib" --><li>
+ <label for="<!-- TMPL_VAR name="id" -->">
+ <!-- TMPL_VAR name="lib" -->
+ </label>
+ <input type="checkbox" name="status-<!-- TMPL_VAR name="fieldname" -->-<!-- TMPL_VAR name="id" -->" id="<!-- TMPL_VAR name="id" -->" />
+ </li><!-- /TMPL_IF -->
+ <!-- /TMPL_LOOP -->
+ </ul>
+ </fieldset>
+ <!-- /TMPL_IF -->
+ <!-- /TMPL_LOOP -->
+ </div>
+ </fieldset>
+ <fieldset class="rows">
+ <ol>
<!-- /TMPL_IF -->
- <p><label>Not seen since:</label>
+
+ <li><label for="datelastseen">Inventory date:</label>
<input type="text" id="datelastseen" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
- <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="datelastseen_button" />
- <script language="JavaScript" type="text/javascript">
+ <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="datelastseen_button" alt="Show Calendar" />
+ <script type="text/javascript">
Calendar.setup(
{
inputField : "datelastseen",
}
);
</script>
- </p>
- <p><label>Show:</label>
- <input type="text" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" maxlength="5" size="5" />
- <i> items beginning at offset</i>
- <input type="text" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" size="5" maxlength="5" />
- </p>
- <p>
+ <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
+ </li>
+ <li><label for="ignoreissued">Skip copies on loan: </label>
+ <!-- TMPL_IF NAME="ignoreissued" -->
+ <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li>
+ <!-- TMPL_ELSE -->
+ <input type="checkbox" id="ignoreissued" name="ignoreissued" /></li>
+ <!-- /TMPL_IF -->
+ <li><label for="pagesize">Show: </label>
+ <input type="text" id="pagesize" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" maxlength="5" size="5" /> items</li>
+ <li><label for="offset">Beginning at offset: </label>
+ <input type="text" id="offset" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" size="5" maxlength="5" />
+ </li>
+ <li>
+ <label for="CSVexport">Export to csv file</label>
+ <input type="checkbox" name="CSVexport" id="CSVexport" />
+ </li>
+ <li>
+ <label for="compareinv2barcd">Compare barcodes list to results</label>
+ <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
+ </li>
+ </ol>
+ </fieldset>
<input type="hidden" name="op" value="do_it" />
- <input type="submit" value="OK" class="button reports" />
- </p>
- </fieldset>
+ <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
</form>
- <form name="barcodefile" method="post">
- <fieldset>
- <legend>Use a barcode file</legend>
- <p>barcode filename : <input type="file" name="uploadbarcodes" /></p>
- <p>Set datelastseen to : <input type="text" id="setdate" name="setdate" />
- <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="setdate_button" />
- <script language="JavaScript" type="text/javascript">
- Calendar.setup(
- {
- inputField : "setdate",
- ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
- button : "setdate_button"
- }
- );
- </script>
-</p>
- <p><input type="submit" value="OK" class="button reports"></p>
- </fieldset>
- </form>
- <!--TMPL_IF Name="Number" --><p><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></p><!-- /TMPL_IF-->
- <!--TMPL_IF Name="errorfile" --><p class="error"><!--TMPL_VAR Name="errorfile"--> can't be opened</p><!-- /TMPL_IF-->
- <!--TMPL_LOOP Name="errorloop"-->
- <p class="error">
- <!--TMPL_VAR Name="barcode"-->
- <!--TMPL_IF Name="ERR_BARCODE"--> : barcode not found<!--/TMPL_IF-->
- <!--TMPL_IF Name="ERR_WTHDRAWN"--> : item withdrawn<!--/TMPL_IF-->
- <!--TMPL_IF Name="ERR_ONLOAN_RET"--> : item was on loan. It was returned before marked as seen<!--/TMPL_IF-->
- <!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"--> : item was on loan. couldn't be returned.<!--/TMPL_IF-->
- </p>
- <!-- /TMPL_LOOP-->
+ </div>
+ </div>
+ <!--/TMPL_UNLESS-->
<!-- TMPL_IF NAME="loop" -->
- <form method="post">
+ <form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed">
<input type="hidden" name="markseen" value="1" />
<input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
<input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
<input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
<input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
<input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" />
+ <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
<table>
<tr>
<th>Seen</th>
<th>Barcode</th>
<th>Title</th>
<th>Unseen since</th>
+ <th>Problems</th>
</tr>
<!-- TMPL_LOOP NAME="loop" -->
<tr>
<!-- TMPL_VAR NAME="barcode" -->
</td>
<td>
- <p><b><!-- TMPL_VAR NAME="itemcallnumber" --></b> - <a href=# onclick="window.open('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!--TMPL_VAR Name="biblionumber"-->','Catalogue -- Biblio <!--TMPL_VAR Name="biblionumber"-->','width=800,height=600,toolbar=false');"><!-- TMPL_VAR NAME="title" --></a></p>
+ <p><b><!-- TMPL_VAR NAME="itemcallnumber" --></b> - <a href="#" onclick="window.open('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!--TMPL_VAR Name="biblionumber"-->','marcview','width=800,height=600,toolbar=0,scrollbars=1');"><!-- TMPL_VAR NAME="title" escape="html" --></a></p>
<p><!-- TMPL_VAR NAME="author" --></p>
</td>
<td>
<p><!-- TMPL_VAR name="datelastseen" --></p>
</td>
+ <td>
+ <!-- TMPL_IF name="notfoundbarcode" -->
+ <p style="background: red;">Not found among barcodes in barcodes file.</p>
+ <!-- TMPL_ELSIF name="notfoundkoha" -->
+ <p style="background: red;">Not found in koha.</p>
+ <!-- TMPL_ELSE -->
+ <p style="background: green;">None</p>
+ <!-- /TMPL_IF -->
+ </td>
</tr>
<!-- /TMPL_LOOP -->
</table>
- <input type="submit" value="Mark seen" />
+ <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
+ <input type="submit" id="markseen" value="Mark seen" />
</form>
<!-- TMPL_IF NAME="offset" -->
- <form method="post">
+ <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
+ <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
<input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
<input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
<input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
<input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
<input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
<input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevoffset" -->" />
- <input type="submit" value="<<<" class="button" />
+ <input type="hidden" name="op" value="do_it" />
+ <input type="submit" value="<< Continue without Marking" class="submit" />
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextoffset" -->
<form method="post">
+ <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
<input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
<input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
<input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
<input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
<input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextoffset" -->" />
- <input type="submit" value=">>>" class="button" />
+ <input type="hidden" name="op" value="do_it" />
+ <input type="submit" value="Continue without Marking >>" class="submit" />
</form>
+ </div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
-
</div>
+<div class="yui-b">
+<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
</div>
</div>
-
-
-<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->