Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl
Joshua Ferraro 27d45375d0 moving calendar to lib
Output.pm: sanatizing variable names
ran  perl -pi~ -e 's/\/includes\/calendar\//\/lib\/calendar\//' * in every staff template dir

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-23 21:30:49 -05:00

163 lines
8.4 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Inventory</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!--TMPL_INCLUDE NAME="menus.inc" --><!-- TMPL_INCLUDE NAME="menu-reports.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 -->
<h1>Inventory/Stocktaking</h1>
<form method="post">
<fieldset>
<legend>Select items you want to check</legend>
<p>
<label>Branch</label><select id="branchloop" name="branchcode">
<!-- TMPL_LOOP NAME="branchloop" -->
<!-- TMPL_IF name="selected" -->
<option value="<!-- TMPL_VAR NAME='value' -->" SELECTED><!-- TMPL_VAR NAME='branchname' --></option>
<!-- TMPL_ELSE -->
<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>
<!-- TMPL_IF NAME="authorised_values" -->
<p>
Item Location (items.location) is
<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><!-- TMPL_VAR NAME='lib' --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME='authorised_value' -->"><!-- TMPL_VAR NAME='lib' --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select> </p>
<!-- /TMPL_IF -->
<p><label>Not seen since:</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">
Calendar.setup(
{
inputField : "datelastseen",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "datelastseen_button"
}
);
</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>
<input type="hidden" name="op" value="do_it" />
<input type="submit" value="OK" class="button reports"/>
</p>
</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-->
<!-- TMPL_IF NAME="loop" -->
<form method="post">
<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="location" value="<!-- TMPL_VAR NAME="location" -->">
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->">
<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" -->">
<table>
<tr>
<th>Seen</th>
<th>Barcode</th>
<th>Title</th>
<th>Unseen since</th>
</tr>
<!-- TMPL_LOOP NAME="loop" -->
<tr>
<td>
<input type="checkbox" name="SEEN-<!-- TMPL_VAR NAME="itemnumber" -->" value="1">
</td>
<td>
<!-- TMPL_VAR NAME="barcode" -->
</td>
<td>
<p><b><!-- TMPL_VAR NAME="itemcallnumber" --></b> - <a href=# onclick="javascript: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><!-- TMPL_VAR NAME="author" --></p>
</td>
<td>
<p><!-- TMPL_VAR name="datelastseen" --></p>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<input type="submit" value="Mark seen">
</form>
<!-- TMPL_IF NAME="offset" -->
<form method="post">
<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="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->">
<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="&lt;&lt;&lt;" class="button reports">
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextoffset" -->
<form method="post">
<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="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="nextoffset" -->">
<input type="submit" value="&gt;&gt;&gt;" class="button reports">
</form>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->