1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Labels</title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <script type="text/javascript">
4 function Plugin(batch_id) {
5 window.open("label-item-search.pl?batch_id="+batch_id+"",'FindABibIndex','width=640,height=400,toolbar=no,scrollbars=yes');
10 <!-- TMPL_INCLUDE NAME="header.inc" -->
11 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Labels</div>
15 <div id="doc3" class="yui-t2">
21 <!-- TMPL_UNLESS NAME="batch_id" -->
22 <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
24 <!-- TMPL_IF NAME="batches" -->
27 <div class="yui-u first">
28 <h2>Label Batches</h2>
37 <!-- TMPL_LOOP NAME="batches" -->
40 <!-- TMPL_VAR NAME="batch_id" -->
43 <!-- TMPL_VAR NAME="num" --> records
46 <a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Edit</a>
49 <a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
52 <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>
58 <!-- TMPL_INCLUDE NAME="label-status.inc" -->
62 <!-- TMPL_INCLUDE NAME="label-status.inc" -->
68 <script type="text/javascript">
71 // prepare DOM for YUI Toolbar
73 $(document).ready(function() {
74 $("#additemsc").empty();
78 // YUI Toolbar Functions
80 function yuiToolbar() {
81 new YAHOO.widget.Button({
84 label: "Add item(s) to batch",
85 container: "additemsc",
86 onclick: {fn:function(){Plugin(<!-- TMPL_VAR NAME="batch_id" -->)}}
88 new YAHOO.widget.Button("deletebatch");
89 new YAHOO.widget.Button("generate");
95 <li id="additemsc"><a id="additems" href="#" onclick="Plugin(<!-- TMPL_VAR NAME="batch_id" -->); return false;">Add item(s) to batch</a></li>
96 <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>
97 <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>
100 <h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" --> (<!-- TMPL_VAR NAME="batch_count" --> items)</h2>
104 <th>Label Number</th>
110 <!-- TMPL_LOOP NAME="resultsloop" -->
113 <!-- TMPL_VAR NAME="labelno" -->
116 <b> <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" -->:</a></b> <!-- TMPL_VAR NAME="author" -->:
117 <!-- TMPL_VAR NAME="isbn" --> </td>
118 <td> <!-- TMPL_VAR NAME="itemtype" --> </td>
119 <td> <!-- TMPL_VAR NAME="barcode" --> </td>
121 <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>
128 <!-- /TMPL_UNLESS -->
133 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
136 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->