Bug 4199: Adds ability to print routing slip from serials-collection.
authorGarry Collum <gcollum@gmail.com>
Sat, 22 May 2010 18:54:46 +0000 (14:54 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Tue, 25 May 2010 19:52:58 +0000 (15:52 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl

index 5c3900e..b761de8 100644 (file)
@@ -4,6 +4,10 @@
 
 <script type="text/javascript">
 //<![CDATA[
+function print_slip(subscriptionid,issue){
+    var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
+    window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes');
+}
 function addsubscriptionid()
 {
        var tab=new Array();
@@ -192,6 +196,8 @@ $(document).ready(function() {
                 </th>
                 <th>Branch
                 </th>
+               <th>Routing
+               </th>
                 <th>Edit
                 </th>
             </tr>
@@ -218,6 +224,9 @@ $(document).ready(function() {
                 <td>
                     <!-- TMPL_VAR Name="branchcode" -->
                 </td>
+               <td>
+                  <a href="" onclick="print_slip(<!-- TMPL_VAR NAME="subscriptionid" ESCAPE="HTML" -->, '<!-- TMPL_VAR NAME="serialseq" ESCAPE="HTML" -->'); return false" />Print list</a>
+               </td>
                 <td>
                   <!--TMPL_IF Name="cannotedit"-->
                     disabled