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