Owen Leonard
e6ebf10bba
- Adding template flag to indicate valid results (hidden or not) - Clarifying warning messages based on various outcomes Signed-off-by: Galen Charlton <gmcharlt@gmail.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
182 lines
7.4 KiB
Cheetah
182 lines
7.4 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Tools › Batch item deletion</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="background-job.inc" -->
|
|
<style type="text/css">
|
|
#jobpanel,#jobstatus,#jobfailed { display : none; }
|
|
#jobstatus { margin:.4em; }
|
|
#jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; }
|
|
</style>
|
|
<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({
|
|
widgets : ['zebra']
|
|
});
|
|
$("#selectallbutton").click(function() {
|
|
$("#itemst").find("input:checkbox").each(function() {
|
|
$(this).attr("checked", true);
|
|
});
|
|
});
|
|
$("#clearallbutton").click(function() {
|
|
$("#itemst").find("input:checkbox").each(function() {
|
|
$(this).attr("checked", false);
|
|
});
|
|
});
|
|
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.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> ›
|
|
<a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Batch item deletion</a>
|
|
</div>
|
|
|
|
<div id="doc3" class="yui-t7">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<!-- TMPL_IF NAME="show" --><h1>Batch item deletion</h1><!-- TMPL_ELSE --><h1>Batch item deletion results</h1><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="barcode_not_unique" --><div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="no_next_barcode" --><div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="book_on_loan" --><div class="dialog alert"><strong>Cannot Delete</strong>: item is checked out.</div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="book_reserved" --><div class="dialogalert"><strong>Cannot Delete</strong>: item has a waiting hold.</div><!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_UNLESS name="action" -->
|
|
|
|
<!-- TMPL_IF name="notfoundbarcodes" -->
|
|
<div class="dialog alert">
|
|
<!-- TMPL_IF NAME="itemresults" --><p>Warning, the following barcodes were not found:</p><!-- TMPL_ELSE --><p>Warning: no barcodes were found</p><!-- /TMPL_IF -->
|
|
</div>
|
|
<table style="margin:auto;">
|
|
<thead>
|
|
<tr>
|
|
<th>Barcode</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- TMPL_LOOP name="notfoundbarcodes" -->
|
|
<tr><td><!-- TMPL_VAR name="barcode" --></td></tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</tbody>
|
|
</table>
|
|
<!-- TMPL_UNLESS name="too_many_items" -->
|
|
<!-- TMPL_IF name="item_loop" --><h4>The following barcodes were found: </h4><!-- /TMPL_IF -->
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
|
|
<form name="f" action="batchMod.pl" method="post">
|
|
<input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
|
|
<input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
|
|
<input type="hidden" name="completedJobID" id="completedJobID" value="" />
|
|
|
|
<!-- TMPL_IF name="item_loop" -->
|
|
<!-- TMPL_IF NAME="show" --><div id="toolbar"><a id="selectallbutton" href="#">Select All</a> | <a id="clearallbutton" href="#">Clear All</a></div><!-- /TMPL_IF -->
|
|
<div id="cataloguing_additem_itemlist">
|
|
<div style="overflow:auto">
|
|
<table id="itemst">
|
|
<thead>
|
|
<tr>
|
|
<!-- TMPL_IF NAME="show" --><th> </th><!-- /TMPL_IF -->
|
|
<!-- TMPL_LOOP NAME="item_header_loop" -->
|
|
<th> <!-- TMPL_VAR NAME="header_value" --> </th>
|
|
<!-- /TMPL_LOOP -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- TMPL_LOOP NAME="item_loop" --> <tr> <!-- TMPL_IF NAME="show" --><!-- TMPL_IF Name="nomod"--> <td class="error">Cannot Edit</td><!--TMPL_ELSE--><td><input type="checkbox" name="itemnumber" value="<!--TMPL_VAR Name="itemnumber"-->" id="row<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" /></td><!--/TMPL_IF--><!--/TMPL_IF-->
|
|
<!-- TMPL_LOOP NAME="item_value" --> <td><!-- TMPL_VAR ESCAPE="HTML" NAME="field" --></td>
|
|
<!-- /TMPL_LOOP --> </tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="simple_items_display" -->
|
|
<ul>
|
|
<!-- TMPL_LOOP NAME="simple_items_display" -->
|
|
<li>
|
|
<a href="<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a>
|
|
</li>
|
|
<!-- /TMPL_LOOP -->
|
|
</ul>
|
|
<!-- /TMPL_IF -->
|
|
|
|
|
|
<!-- TMPL_IF name="show" -->
|
|
|
|
<!-- TMPL_IF name="too_many_items" -->
|
|
<p>Too many items (<!-- TMPL_VAR NAME="too_many_items" -->) to display individually.</p>
|
|
<!-- TMPL_LOOP name="itemnumbers_hashref" -->
|
|
<input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="itemresults" -->
|
|
<div id="cataloguing_additem_newitem">
|
|
<input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
|
|
<p>This will delete <!-- TMPL_IF NAME="too_many_items" -->all the<!-- TMPL_ELSE -->the selected<!-- /TMPL_IF --> items.</p>
|
|
<input type="hidden" name="del" value="1" />
|
|
<fieldset class="action">
|
|
<div id="jobpanel">
|
|
<div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
|
|
<div id="jobfailed"></div>
|
|
</div>
|
|
<!-- TMPL_IF NAME="too_many_items" --><input type="submit" name="mainformsubmit" value="Delete ALL submitted items" onclick="return submitBackgroundJob(this.form);" /><!-- TMPL_ELSE -->
|
|
<input type="submit" name="mainformsubmit" value="Delete selected items" onclick="return submitBackgroundJob(this.form);" /><!-- /TMPL_IF -->
|
|
|
|
<a href="/cgi-bin/koha/tools/batchMod.pl?del=1" class="cancel">Cancel</a>
|
|
</fieldset>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<p><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Return to batch item deletion</a></p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_UNLESS -->
|
|
|
|
<!-- TMPL_IF name="action" -->
|
|
<div class="dialog message"><p><!-- TMPL_VAR NAME="deleted_items" --> item(s) deleted.</p></div>
|
|
<!-- TMPL_IF NAME="not_deleted_items" -->
|
|
<div style="width:55%;margin:auto;">
|
|
<p><!-- TMPL_VAR NAME="not_deleted_items" --> item(s) could not be deleted: <!-- TMPL_LOOP NAME="not_deleted_itemnumbers" --><!-- TMPL_VAR NAME="itemnumber" --><!-- /TMPL_LOOP --></p>
|
|
<!-- TMPL_IF NAME="not_deleted_loop" -->
|
|
<table id="itemst">
|
|
<thead>
|
|
<tr>
|
|
<th>Itemnumber</th>
|
|
<th>Barcode</th>
|
|
<th>Reason</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- TMPL_LOOP name="not_deleted_loop" -->
|
|
<tr>
|
|
<td><!-- TMPL_VAR name="itemnumber" --></td>
|
|
<td><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR name="barcode" --></a></td>
|
|
<td><!-- TMPL_IF name="book_on_loan" -->Item is checked out<!-- TMPL_ELSIF name="book_reserved" -->Item has a waiting hold<!-- /TMPL_IF --></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</tbody>
|
|
</table>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<p><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Return to batch item deletion</a></p>
|
|
<!-- /TMPL_IF -->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|