Merge remote-tracking branch 'origin/new/bug_6720'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / pendingreserves.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Circulation &rsaquo; Holds to pull</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <!-- Plugin datatables -->
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/JavaScript" language="JavaScript">
10 //<![CDATA[
11 $(document).ready(function() {
12   var holdst = $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
13   }));
14   holdst.fnAddFilters("filter");
15   function createSelect( data ) {
16       var r='<select style="width:99%"><option value="">None</option>', i, len=data.length;
17       for ( i=0 ; i<len ; i++ ) {
18           r += '<option value="'+data[i]+'">'+data[i]+'</option>';
19       }
20       return r+'</select>';
21   }
22   $("#homebranchfilter").each( function () {
23       $(this).html( createSelect( holdst.fnGetColumnData(4) ) );
24       $('select', this).change( function () {
25           holdst.fnFilter( $(this).val(), 4 );
26       } );
27   } );
28   $("#itypefilter").each( function () {
29       $(this).html( createSelect( holdst.fnGetColumnData(8) ) );
30       $('select', this).change( function () {
31           holdst.fnFilter( $(this).val(), 8 );
32       } );
33   } );
34   $("#locationfilter").each( function () {
35       $(this).html( createSelect( holdst.fnGetColumnData(9) ) );
36       $('select', this).change( function () {
37           holdst.fnFilter( $(this).val(), 9 );
38       } );
39   } );
40 });
41 //]]>
42 </script>
43 </head>
44 <body id="circ_pendingreserves" class="circ">
45 [% INCLUDE 'header.inc' %]
46 [% INCLUDE 'circ-search.inc' %]
47
48
49 <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; Holds to pull</div>
50
51 <div id="doc3" class="yui-t2">
52
53    <div id="bd">
54     <div id="yui-main">
55     <div class="yui-b">
56
57 <h2>Holds to pull[% IF ( run_report ) %] placed between [% from %] and [% to %][% END %]</h2>
58 [% IF ( run_report ) %]
59 <h3>Reported on [% todaysdate %]</h3>
60 <p>The following holds have not been filled. Please retrieve them and check them in.</p>
61 <div class="searchresults">
62     [% IF ( reserveloop ) %]
63     <table id="holdst">
64     <thead>
65         <tr>
66         <th>Pull this many items</th>
67         <th>Items available</th>
68         <th>Patrons with holds</th>
69         <th>Title</th>
70         <th>Libraries</th>
71         <th>Available call numbers</th>
72         <th>Available copy No</th>
73         <th>Available enumeration</th>
74         <th>Available itypes</th>
75         <th>Available locations</th>
76         <th>Earliest hold date</th>
77         </tr>
78     </thead>
79     <tbody>
80         [% FOREACH reserveloo IN reserveloop %]
81         <tr>
82         [% IF ( reserveloo.borrowernumber ) %]
83             <td><p><b>[% reserveloo.pullcount %]</b></p></td>
84             <td>[% reserveloo.count %]</td>
85             <td>[% reserveloo.rcount %]</td>
86             <td>
87             <p>
88         [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %]
89                     [% reserveloo.title |html %]
90                 </a> [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author %]</p>[% END %]
91             </p>
92             </td>
93         [% ELSE %]
94             <td>"</td>
95             <td>"</td>
96             <td>"</td>
97             <td>"</td>
98         [% END %]
99         <td>[% reserveloo.holdingbranch %]</td>
100         <td><p>[% reserveloo.itemcallnumber %]</p></td>
101         <td><p>[% reserveloo.copyno %]</p></td>
102         <td><p>[% reserveloo.enumchron %]</p></td>
103         <td>[% reserveloo.itype %]</td>
104         <td>[% reserveloo.location %]</td>
105         <td width="15%">
106             <p>[% reserveloo.reservedate %]</p>
107             <p>in [% reserveloo.branch %]</p>
108             [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %]
109         </td>
110         </tr>
111         [% END %]
112     </tbody>
113     <tfoot>
114         <tr>
115         <td><input type="text" class="filter" data-column_num="0" placeholder="Pull this many items" style="width:95%"/></td>
116         <td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td>
117         <td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td>
118         <td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td>
119         <td id="homebranchfilter"></td>
120         <td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td>
121         <td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td>
122         <td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td>
123         <td id="itypefilter"></td>
124         <td id="locationfilter"></td>
125         <td></td>
126         </tr>
127     </tfoot>
128     </table>
129     [% ELSE %]
130         <b>No items found.</b>
131     [% END %]
132 </div>
133 [% END %]
134
135 </div>
136 </div>
137 <div class="yui-b">
138 <div id="filters">
139
140 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
141 <fieldset class="brief">
142 <h4>Refine results</h4>
143 <ol>
144 <li>
145 <label for="from">
146     Start date:
147 </label>
148 <input type="text" size="10" id="from" name="from" value="[% from %]" class="datepickerfrom" />
149 </li>
150 <li><label for="to">
151     End date:
152 </label>
153 <input type="text" size="10" id="to" name="to" value="[% to %]" class="datepickerto" />
154 </li>
155 </ol>
156 <p><i>(Inclusive, default is two days ago to today, set other date ranges as needed. )</i></p>
157 <fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
158 </fieldset>
159 </form>
160
161 </div>
162 </div>
163 </div>
164 [% INCLUDE 'intranet-bottom.inc' %]