519edb2f74
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
136 lines
4.2 KiB
Cheetah
136 lines
4.2 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=640,height=400,toolbar=no,scrollbars=yes');
|
|
}
|
|
</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> › Labels</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<!-- TMPL_UNLESS NAME="batch_id" -->
|
|
<!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
|
|
|
|
<!-- TMPL_IF NAME="batches" -->
|
|
<div class="yui-g">
|
|
|
|
<div class="yui-u first">
|
|
<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 style="float: left;" 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>
|
|
</div>
|
|
<div class="yui-u">
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_ELSE -->
|
|
|
|
<div id="toolbar">
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
// prepare DOM for YUI Toolbar
|
|
|
|
$(document).ready(function() {
|
|
$("#additemsc").empty();
|
|
yuiToolbar();
|
|
});
|
|
|
|
// YUI Toolbar Functions
|
|
|
|
function yuiToolbar() {
|
|
new YAHOO.widget.Button({
|
|
id: "additems",
|
|
type: "button",
|
|
label: "Add item(s) to batch",
|
|
container: "additemsc",
|
|
onclick: {fn:function(){Plugin(<!-- TMPL_VAR NAME="batch_id" -->)}}
|
|
});
|
|
new YAHOO.widget.Button("deletebatch");
|
|
new YAHOO.widget.Button("generate");
|
|
}
|
|
|
|
//]]>
|
|
</script>
|
|
<ul class="toolbar">
|
|
<li id="additemsc"><a id="additems" href="#" onclick="Plugin(<!-- TMPL_VAR NAME="batch_id" -->); return false;">Add item(s) to batch</a></li>
|
|
<li><a id="deletebatch" href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete current batch</a></li>
|
|
<li><a id="generate" href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Generate PDF for Batch</a></li>
|
|
</ul></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 class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|