119 lines
4.1 KiB
Cheetah
119 lines
4.1 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Labels</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<script type="text/javascript">
|
|
function Plugin(batch_id) {
|
|
window.open("label-item-search.pl?batch_id="+batch_id+"",'FindABibIndex','width=600,height=460,toolbar=no,scrollbars=yes');
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="menu-labels.inc" -->
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b"><div class="yui-g">
|
|
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
|
|
<!-- TMPL_UNLESS NAME="batch_id" -->
|
|
<div class="details">
|
|
<a class="button" href="/cgi-bin/koha/labels/label-manager.pl?op=add_batch">Create New Batch</a>
|
|
|
|
<!-- <form style="padding: 3px 30px; border-left: 1px solid black;border-right: 1px solid black;margin: 0 20px;" name="input" action="/cgi-bin/koha/labels/label-manager.pl" method="get">
|
|
<select name="batch_id">
|
|
<!-- TMPL_LOOP NAME="batches" -->
|
|
<option value="<!-- TMPL_VAR NAME="batch_id" -->" <!-- TMPL_IF NAME="active" --> selected <!-- /TMPL_IF -->>
|
|
<!-- TMPL_VAR NAME="batch_id" --></option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<input type="submit" value="Open Existing Batch">
|
|
</form>
|
|
-->
|
|
</div>
|
|
<!-- TMPL_IF NAME="batches" -->
|
|
<h2>Label Batches</h2>
|
|
<table>
|
|
<tr>
|
|
<th>Batch id</th>
|
|
<th>#</th>
|
|
<th>Edit</th>
|
|
<th>Delete</th>
|
|
<th>Print</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="batches" -->
|
|
<tr>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="batch_id" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="num" --> records
|
|
</td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Edit</a>
|
|
</td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
|
|
</td>
|
|
<td>
|
|
<a class="button" style="float: right;" href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Generate PDF for Batch <!-- TMPL_VAR NAME="batch_id" --></a>
|
|
</td></tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_ELSE -->
|
|
<div class="details">
|
|
<br />
|
|
|
|
<a class="button" href="#" onclick="Plugin(<!-- TMPL_VAR NAME="batch_id" -->); return false;">Add item(s) to batch</a>
|
|
<a class="button" href="/cgi-bin/koha/labels/label-manager.pl?batch_id=">Return to batch summary</a>
|
|
<a class="button" style="border:2px solid #634;" href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete current batch (<!-- TMPL_VAR NAME="batch_id" -->)</a>
|
|
<a class="button" href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Generate PDF for Batch: <!-- TMPL_VAR NAME="batch_id" --></a>
|
|
</div>
|
|
|
|
<h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" --> (<!-- TMPL_VAR NAME="batch_count" --> items)</h2>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Label Number</th>
|
|
<th>Summary</th>
|
|
<th>Item Type</th>
|
|
<th>Barcode</th>
|
|
<th>Delete</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="resultsloop" -->
|
|
<tr>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="labelno" -->
|
|
</td>
|
|
<td>
|
|
<b> <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" -->:</a></b> <!-- TMPL_VAR NAME="author" -->:
|
|
<!-- TMPL_VAR NAME="isbn" --> </td>
|
|
<td> <!-- TMPL_VAR NAME="itemtype" --> </td>
|
|
<td> <!-- TMPL_VAR NAME="barcode" --> </td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
|
|
|
|
<!-- /TMPL_UNLESS -->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|
|
|
|
|
|
|
|
|
|
|
|
|