Fix for Bug 3659, Add place hold option from patron checkout tab
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / waitingreserves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Holds awaiting pickup</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.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          $('#resultlist > ul').tabs();
15          $("th a").hide();
16          $.tablesorter.defaults.widgets = ['zebra'];
17          $("#holdst,#holdso").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
18             dateFormat: 'uk',<!-- /TMPL_IF -->
19             sortList: [[3,0]],
20             headers: { 1:{sorter:'articles'},3: { sorter: 'articles' },4:{sorter:false}}
21         }); 
22       });
23 //]]>
24 </script>
25 </head>
26 <body>
27 <!-- TMPL_INCLUDE NAME="header.inc" -->
28 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
29
30 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
31 &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
32 &rsaquo; <a href="/cgi-bin/koha/circ/waitingreserves.pl">Holds awaiting pickup</a>
33 </div>
34
35 <div id="doc" class="yui-t7">
36
37    <div id="bd">
38     <div id="yui-main">
39     <div class="yui-g">
40
41         <h2>Holds awaiting pickup for your library on: <!-- TMPL_VAR NAME="show_date" -->
42             <!-- TMPL_IF NAME="all_branches_link" -->
43             <span style="margin-left:20px"><a href="<!-- TMPL_VAR NAME="all_branches_link" -->">
44             View all branches</a></span>
45             <!-- /TMPL_IF -->
46         </h2>
47         <!-- TMPL_IF NAME="messagetransfert" -->
48             <div>
49                 <h2>Hold find for (<!-- TMPL_VAR NAME="nextreservtitle" -->), must be transferred</h2>
50                 <p>This hold placed by : <b> <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b> at the library : <b> <!-- TMPL_VAR NAME="branchname" --> </b>, Please transfer this hold.
51                 </p>
52                 <form name="cancelReservewithtransfert" action="waitingreserves.pl" method="post">
53                     <input type="submit" class="button" />
54                 </form>
55             </div>
56         <!-- /TMPL_IF -->
57         <!-- TMPL_IF NAME="waiting" -->
58             <div id="bloc25">
59                 <h2>This hold is waiting</h2>
60                 <p>This hold (<!-- TMPL_VAR NAME="nextreservtitle" -->) was placed by <b> : <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b>,
61                 Please retain this hold.
62                 </p>
63                 <form name="cancelReservewithwaiting" action="waitingreserves.pl" method="post">
64                     <input type="submit" />
65                 </form>
66             </div>
67         <!-- /TMPL_IF -->
68         <!-- TMPL_UNLESS NAME="message" -->
69         <div id="resultlist" class="toptabs">
70             <ul>
71                 <li><a href="/cgi-bin/koha/circ/waitingreserves.pl#holdswaiting"><!-- TMPL_VAR NAME="reservecount" --> Hold(s) waiting</a></li>
72                 <li><a href="/cgi-bin/koha/circ/waitingreserves.pl#holdsover"><!-- TMPL_VAR NAME="overcount" --> Hold(s) over</a></li>
73             </ul>
74             <div id="holdswaiting">
75             <!-- TMPL_IF NAME="reserveloop" -->
76                <table id="holdst">
77                <thead><tr>
78                     <th>Available since</th>
79                     <th>Title</th>
80                     <th>Patron</th>
81                     <th>Location</th>
82                     <th>Action</th>
83                </tr></thead>
84                <tbody><!-- TMPL_LOOP NAME="reserveloop" -->
85                 <tr>
86                     <td><p><!-- TMPL_VAR NAME="waitingdate" --></p></td>
87                     <td><!-- TMPL_INCLUDE NAME="biblio-default-view.inc" -->
88                         <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" ESCAPE="html" -->
89                         </a>
90                             &nbsp; (<b><!-- TMPL_VAR NAME="itemtype" --></b>)
91                             <br />Barcode: <!-- TMPL_VAR NAME="barcode" -->
92                     </td>
93                     <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernum"-->"><!-- TMPL_VAR NAME="borrowername" -->, <!-- TMPL_VAR NAME="borrowerfirstname" --></a><br /><!-- TMPL_VAR NAME="borrowerphone" --><br />
94                         <!-- TMPL_IF NAME="borrowermail" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
95                         <!-- TMPL_VAR NAME="borrowermail" --></a><!--/TMPL_IF-->
96                     </td>
97                     <td><!-- TMPL_VAR NAME="homebranch" --><br /><!-- TMPL_VAR NAME="itemcallnumber" --></td>
98                     <td>
99                         <form name="cancelReserve" action="waitingreserves.pl" method="post">
100                             <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernum" -->" />
101                             <input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
102                             <input type="hidden" name="fbr" value="<!-- TMPL_VAR NAME="holdingbranch" -->" />
103                             <input type="hidden" name="tbr" value="<!-- TMPL_VAR NAME="homebranch" -->" />
104                             <!-- TMPL_IF NAME="dotransfer" -->
105                             <input type="submit" value="Cancel hold and return to : <!-- TMPL_VAR NAME="homebranch" -->" /> 
106                             <!-- TMPL_ELSE -->
107                             <input type="submit" value="Cancel hold" />
108                             <!-- /TMPL_IF -->
109                        </form>
110                     </td>
111                 </tr>
112                 <!-- /TMPL_LOOP --></tbody>
113         </table>
114         <!-- TMPL_ELSE -->
115             <div class="dialog message">No holds found.</div>
116         <!-- /TMPL_IF -->
117         </div>
118         <div id="holdsover">
119                 <!-- TMPL_IF NAME="overloop" -->
120                <table id="holdso">
121                <thead><tr>
122                     <th>Available since</th>
123                     <th>Title</th>
124                     <th>Patron</th>
125                     <th>Location</th>
126                     <th>Action</th>
127                </tr></thead>
128                <tbody><!-- TMPL_LOOP NAME="overloop" -->
129                     <tr>
130                         <td><p><!-- TMPL_VAR NAME="waitingdate" --></p></td>
131                         <td><!-- TMPL_INCLUDE NAME="biblio-default-view.inc" --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" ESCAPE="html" -->
132                         </a>
133                             &nbsp; (<b><!-- TMPL_VAR NAME="itemtype" --></b>)
134                         <br />Barcode: <!-- TMPL_VAR NAME="barcode" -->
135                     </td>
136                     <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernum"-->"><!-- TMPL_VAR NAME="borrowername" -->, <!-- TMPL_VAR NAME="borrowerfirstname" --></a><br /><!-- TMPL_VAR NAME="borrowerphone" --><br />
137                         <!-- TMPL_IF NAME="borrowermail" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" ESCAPE="url" -->">
138         <!-- TMPL_VAR NAME="borrowermail" --></a><!--/TMPL_IF-->
139                     </td>
140                     <td><!-- TMPL_VAR NAME="homebranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></td>
141                     <td><form name="cancelReserve" action="waitingreserves.pl" method="post">
142                             <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernum" -->" />
143                             <input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
144                             <input type="hidden" name="fbr" value="<!-- TMPL_VAR NAME="holdingbranch" -->" />
145                             <input type="hidden" name="tbr" value="<!-- TMPL_VAR NAME="homebranch" -->" />
146                             <!-- TMPL_IF NAME="dotransfer" -->
147                             <input type="submit" value="Cancel hold and return to : <!-- TMPL_VAR NAME="homebranch" -->" />
148                             <!-- TMPL_ELSE -->
149                             <input type="submit" value="Cancel hold" />
150                             <!-- /TMPL_IF -->
151                        </form>
152                     </td>
153                 </tr>
154                 <!-- /TMPL_LOOP --></tbody>
155         </table>
156         <!-- TMPL_ELSE -->
157             <div class="dialog message">No holds found.</div>
158                 <!-- /TMPL_IF -->
159         </div>
160         </div>
161     <!-- /TMPL_UNLESS -->
162
163 </div>
164 </div>
165 </div>
166 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->