Refining some circ reports interfaces, adding table sorting.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / transferstodo.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Transfers to do</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pack.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
6 //<![CDATA[
7 $.tablesorter.addParser({
8     id: 'articles', 
9     is: function(s) {return false;  }, 
10     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
11     type: 'text' 
12 });
13          $(document).ready(function() {
14                 $.tablesorter.defaults.widgets = ['zebra']; 
15                 $("#transferst").tablesorter({
16                         sortList: [[1,0]],
17                         headers: { 1: { sorter: 'articles' },4:{sorter:false}}
18                 }); 
19          });
20 //]]>
21 </script>
22 </head>
23 <body>
24 <!-- TMPL_INCLUDE NAME="header.inc" -->
25 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
26
27 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Transfers to do</div>
28
29 <div id="doc" class="yui-t7">
30    
31    <div id="bd">
32         <div id="yui-main">
33         <div class="yui-g">
34
35
36     <h1>Transfers to do, <!-- TMPL_VAR NAME="show_date" --></h1>
37     <!-- TMPL_IF name="branchesloop" -->
38     <div id="resultlist">
39         <!-- TMPL_LOOP NAME="branchesloop" -->
40             <!-- TMPL_IF NAME="branchcode" -->
41                         <h4>Holds waiting for: <!-- TMPL_VAR NAME="branchname" --></h4>
42             <table id="transferst">
43             <thead><tr>
44                 <th>Date of hold</th>
45                 <th>Title</th>
46                 <th>Patron</th>
47                 <th>Localisation</th>
48                 <th>Action</th>
49             </tr></thead>
50             <tbody><!-- TMPL_LOOP NAME="reserv" -->
51                 <tr <!-- TMPL_IF NAME="messcompa" --> class="problem" <!-- /TMPL_IF -->>
52                     <td><p><!-- TMPL_VAR NAME="reservedate" --></p> <!-- TMPL_IF NAME="messcompa" --> Hold over <!-- /TMPL_IF --></td>
53                     <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>&nbsp; (<b><!-- TMPL_VAR NAME="itemtype" --> </b>) <br />Barcode : <!-- TMPL_VAR NAME="barcode" --></td>
54                     <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernum"-->"><!-- TMPL_VAR NAME="borrowername" --> &nbsp; <!-- TMPL_VAR NAME="borrowerfirstname" --></a><br />
55                             <!-- TMPL_VAR NAME="borrowerphone" --><br />
56                             <!-- TMPL_IF NAME="borrowermail" -->
57                                 <a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
58                                     <!-- TMPL_VAR NAME="borrowermail" -->
59                                 </a>
60                             <!--/TMPL_IF-->
61                     </td>
62                     <td><!-- TMPL_VAR NAME="holdingbranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></td>
63                     <td>
64                     <form name="dotransfer" action="/cgi-bin/koha/circ/waitingreserves.pl" method="post">
65                         <input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
66                         <input type="hidden" name="fbr" value="<!-- TMPL_VAR NAME="holdingbranch" -->" />
67                         <input type="hidden" name="tbr" value="<!-- TMPL_VAR NAME="branchcode" -->" />
68                     <input type="submit" value="Transfer this item" />
69                     </form>
70                     </td>
71                 </tr>
72             <!-- /TMPL_LOOP --></tbody>
73             </table>
74             <!-- /TMPL_IF -->
75         <!-- /TMPL_LOOP -->
76     </div>
77     <!-- TMPL_ELSE -->
78         <p>No transfers to do</p>
79     <!-- /TMPL_IF -->
80
81 </div>
82 </div>
83 </div>
84 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->