Bumping DB to 061 - Adding the ability to choose font type to the Label tool.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-manager.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo;  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');
6 }
7 </script>
8 </head>
9 <body>
10 <!-- TMPL_INCLUDE NAME="header.inc" -->
11 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
12
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Labels</div>
14  <div id="doc3" class="yui-t2">
15   <div id="bd">
16    <div id="yui-main">
17         <div class="yui-b">
18
19 <!-- TMPL_IF NAME="message" -->
20         <!-- TMPL_LOOP NAME="message_loop" -->
21         <div style="color: red; margin: 5pt; font-weight: bold;" class="message"><!-- TMPL_VAR NAME="message_text" --></div>
22         <!-- /TMPL_LOOP -->
23 <!-- /TMPL_IF -->
24
25 <!-- TMPL_UNLESS NAME="batch_id" -->
26 <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
27 <!-- TMPL_IF NAME="batches" -->
28 <div class="yui-g">
29
30 <div class="yui-u first">
31 <h2>Label Batches</h2>
32 <table>
33 <tr>
34         <th>ID</th>
35         <th>#</th>
36         <th>Edit</th>
37         <th>Delete</th>
38         <th>Print</th>
39 </tr>
40 <!-- TMPL_LOOP NAME="batches" -->
41 <tr>
42         <td><!-- TMPL_VAR NAME="batch_id" --></td>
43         <td><!-- TMPL_VAR NAME="num" --> records</td>
44         <td>
45                 <a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Edit</a>
46         </td>
47         <td>
48                 <a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
49                                 <!-- FIXME: should use POST to change server state, not GET -->
50         </td>
51         <td>
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>
53         </td></tr>
54 <!-- /TMPL_LOOP -->
55 </table>
56 </div>
57 <div class="yui-u">
58 <!-- TMPL_INCLUDE NAME="label-status.inc" -->
59 </div>
60 </div>
61 <!-- TMPL_ELSE -->
62 <div class="yui-g">
63 <div class="yui-u first">
64 <h2>No Label Batches Currently Defined</h2>
65 </div>
66 <div class="yui-u">
67 <!-- TMPL_INCLUDE NAME="label-status.inc" -->
68 </div>
69 </div>
70 <!-- /TMPL_IF --><!-- /batches -->
71
72 <!-- TMPL_ELSE -->
73
74 <div id="toolbar">
75         <script type="text/javascript">
76         //<![CDATA[
77
78         // prepare DOM for YUI Toolbar
79
80          $(document).ready(function() {
81                 $("#additemsc").empty();
82             yuiToolbar();
83          });
84
85         // YUI Toolbar Functions
86
87         function yuiToolbar() {
88                 new YAHOO.widget.Button({
89                                             id: "additems", 
90                                             type: "button", 
91                                             label: "Add item(s) to batch", 
92                                             container: "additemsc",
93                                                                                         onclick: {fn:function(){Plugin(<!-- TMPL_VAR NAME="batch_id" -->)}}
94                                         });
95                 new YAHOO.widget.Button("deletebatch");
96                 new YAHOO.widget.Button("dedup");
97                 new YAHOO.widget.Button("generate");
98         }
99
100         //]]>
101         </script>
102         <ul class="toolbar">
103         <li id="additemsc"><a id="additems" href="#" onclick="Plugin(<!-- TMPL_VAR NAME="batch_id" -->); return false;">Add item(s) to batch</a></li>
104         <li><a id="deletebatch" href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete current batch</a></li>
105                                 <!-- FIXME: should use POST to change server state, not GET -->
106         <li><a id="dedup" href="/cgi-bin/koha/labels/label-manager.pl?op=deduplicate&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Remove duplicate barcodes</a></li>
107         <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>
108 </ul></div>
109
110 <h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" -->  (<!-- TMPL_VAR NAME="batch_count" -->  items)</h2>
111
112 <table>
113 <tr>
114         <th>Label<br />Num.</th>
115         <th>Summary</th>
116         <th>Item<br />Type</th>
117         <th>Barcode</th>
118         <th>Delete</th>
119 </tr>
120 <!-- TMPL_LOOP NAME="resultsloop" -->
121 <tr>
122         <td><!-- TMPL_VAR NAME="labelno" --></td>
123         <td><b><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" --></a></b>:
124                         <!-- TMPL_VAR NAME="author" -->:
125             <!-- TMPL_VAR NAME="isbn" --></td>
126         <td><!-- TMPL_VAR NAME="itemtype" --></td>
127         <td><!-- TMPL_VAR NAME="barcode" --></td>
128         <td>
129                 <a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&amp;labelid=<!-- TMPL_VAR NAME="labelid" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
130                                 <!-- FIXME: should use POST to change server state, not GET -->
131         </td>
132 </tr>
133 <!-- /TMPL_LOOP -->
134 </table>
135 <!-- /TMPL_UNLESS --><!-- batch_id -->
136
137 </div>
138 </div>
139 <div class="yui-b">
140 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
141 </div>
142 </div>
143 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->