|
Lines 20-45
$(document).ready(function() {
Link Here
|
| 20 |
function createSelect( data ) { |
20 |
function createSelect( data ) { |
| 21 |
var r='<select style="width:99%"><option value="">None</option>', i, len=data.length; |
21 |
var r='<select style="width:99%"><option value="">None</option>', i, len=data.length; |
| 22 |
for ( i=0 ; i<len ; i++ ) { |
22 |
for ( i=0 ; i<len ; i++ ) { |
| 23 |
r += '<option value="'+data[i]+'">'+data[i]+'</option>'; |
23 |
r += '<option value="'+data[i]+'">'+data[i]+'</option>'; |
| 24 |
} |
24 |
} |
| 25 |
return r+'</select>'; |
25 |
return r+'</select>'; |
| 26 |
} |
26 |
} |
| 27 |
$("#homebranchfilter").each( function () { |
27 |
$("#homebranchfilter").each( function () { |
| 28 |
$(this).html( createSelect( holdst.fnGetColumnData(4) ) ); |
28 |
$(this).html( createSelect( holdst.fnGetColumnData(4) ) ); |
| 29 |
$('select', this).change( function () { |
29 |
$('select', this).change( function () { |
| 30 |
holdst.fnFilter( $(this).val(), 4 ); |
30 |
holdst.fnFilter( $(this).val(), 4 ); |
| 31 |
} ); |
31 |
} ); |
| 32 |
} ); |
32 |
} ); |
| 33 |
$("#itypefilter").each( function () { |
33 |
$("#itypefilter").each( function () { |
| 34 |
$(this).html( createSelect( holdst.fnGetColumnData(8) ) ); |
34 |
$(this).html( createSelect( holdst.fnGetColumnData(8) ) ); |
| 35 |
$('select', this).change( function () { |
35 |
$('select', this).change( function () { |
| 36 |
holdst.fnFilter( $(this).val(), 8 ); |
36 |
holdst.fnFilter( $(this).val(), 8 ); |
| 37 |
} ); |
37 |
} ); |
| 38 |
} ); |
38 |
} ); |
| 39 |
$("#locationfilter").each( function () { |
39 |
$("#locationfilter").each( function () { |
| 40 |
$(this).html( createSelect( holdst.fnGetColumnData(9) ) ); |
40 |
$(this).html( createSelect( holdst.fnGetColumnData(9) ) ); |
| 41 |
$('select', this).change( function () { |
41 |
$('select', this).change( function () { |
| 42 |
holdst.fnFilter( $(this).val(), 9 ); |
42 |
holdst.fnFilter( $(this).val(), 9 ); |
| 43 |
} ); |
43 |
} ); |
| 44 |
} ); |
44 |
} ); |
| 45 |
}); |
45 |
}); |
|
Lines 54-63
$(document).ready(function() {
Link Here
|
| 54 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Holds to Pull</div> |
54 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Holds to Pull</div> |
| 55 |
|
55 |
|
| 56 |
<div id="doc3" class="yui-t2"> |
56 |
<div id="doc3" class="yui-t2"> |
| 57 |
|
57 |
|
| 58 |
<div id="bd"> |
58 |
<div id="bd"> |
| 59 |
<div id="yui-main"> |
59 |
<div id="yui-main"> |
| 60 |
<div class="yui-b"> |
60 |
<div class="yui-b"> |
| 61 |
|
61 |
|
| 62 |
<h2>Holds to Pull[% IF ( run_report ) %] placed between [% from %] and [% to %][% END %]</h2> |
62 |
<h2>Holds to Pull[% IF ( run_report ) %] placed between [% from %] and [% to %][% END %]</h2> |
| 63 |
[% IF ( run_report ) %] |
63 |
[% IF ( run_report ) %] |
|
Lines 66-135
$(document).ready(function() {
Link Here
|
| 66 |
<div class="searchresults"> |
66 |
<div class="searchresults"> |
| 67 |
[% IF ( reserveloop ) %] |
67 |
[% IF ( reserveloop ) %] |
| 68 |
<table id="holdst"> |
68 |
<table id="holdst"> |
| 69 |
<thead> |
69 |
<thead> |
| 70 |
<tr> |
70 |
<tr> |
| 71 |
<th>Pull This Many Items</th> |
71 |
<th>Pull This Many Items</th> |
| 72 |
<th>Items Available</th> |
72 |
<th>Items Available</th> |
| 73 |
<th>Patrons with Holds</th> |
73 |
<th>Patrons with Holds</th> |
| 74 |
<th>Title</th> |
74 |
<th>Title</th> |
| 75 |
<th>Libraries</th> |
75 |
<th>Libraries</th> |
| 76 |
<th>Available Call Numbers</th> |
76 |
<th>Available Call Numbers</th> |
| 77 |
<th>Available Copy No</th> |
77 |
<th>Available Copy No</th> |
| 78 |
<th>Available Enumeration</th> |
78 |
<th>Available Enumeration</th> |
| 79 |
<th>Available Itypes</th> |
79 |
<th>Available Itypes</th> |
| 80 |
<th>Available Locations</th> |
80 |
<th>Available Locations</th> |
| 81 |
<th>Earliest Hold Date</th> |
81 |
<th>Earliest Hold Date</th> |
| 82 |
</tr> |
82 |
</tr> |
| 83 |
</thead> |
83 |
</thead> |
| 84 |
<tbody> |
84 |
<tbody> |
| 85 |
[% FOREACH reserveloo IN reserveloop %] |
85 |
[% FOREACH reserveloo IN reserveloop %] |
| 86 |
<tr> |
86 |
<tr> |
| 87 |
[% IF ( reserveloo.borrowernumber ) %] |
87 |
[% IF ( reserveloo.borrowernumber ) %] |
| 88 |
<td><p><b>[% reserveloo.pullcount %]</b></p></td> |
88 |
<td><p><b>[% reserveloo.pullcount %]</b></p></td> |
| 89 |
<td>[% reserveloo.count %]</td> |
89 |
<td>[% reserveloo.count %]</td> |
| 90 |
<td>[% reserveloo.rcount %]</td> |
90 |
<td>[% reserveloo.rcount %]</td> |
| 91 |
<td> |
91 |
<td> |
| 92 |
<p> |
92 |
<p> |
| 93 |
[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] |
93 |
[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] |
| 94 |
[% reserveloo.title |html %] [% reserveloo.subtitle %] |
94 |
[% reserveloo.title |html %] [% reserveloo.subtitle %] |
| 95 |
</a> |
95 |
</a> |
| 96 |
</p> |
96 |
</p> |
| 97 |
</td> |
97 |
</td> |
| 98 |
[% ELSE %] |
98 |
[% ELSE %] |
| 99 |
<td>"</td> |
99 |
<td>"</td> |
| 100 |
<td>"</td> |
100 |
<td>"</td> |
| 101 |
<td>"</td> |
101 |
<td>"</td> |
| 102 |
<td>"</td> |
102 |
<td>"</td> |
| 103 |
[% END %] |
103 |
[% END %] |
| 104 |
<td>[% reserveloo.holdingbranch %]</td> |
104 |
<td>[% reserveloo.holdingbranch %]</td> |
| 105 |
<td><p>[% reserveloo.itemcallnumber %]</p></td> |
105 |
<td><p>[% reserveloo.itemcallnumber %]</p></td> |
| 106 |
<td><p>[% reserveloo.copyno %]</p></td> |
106 |
<td><p>[% reserveloo.copyno %]</p></td> |
| 107 |
<td><p>[% reserveloo.enumchron %]</p></td> |
107 |
<td><p>[% reserveloo.enumchron %]</p></td> |
| 108 |
<td>[% reserveloo.itype %]</td> |
108 |
<td>[% reserveloo.itype %]</td> |
| 109 |
<td>[% reserveloo.location %]</td> |
109 |
<td>[% reserveloo.location %]</td> |
| 110 |
<td width="15%"> |
110 |
<td width="15%"> |
| 111 |
<p>[% reserveloo.reservedate %]</p> |
111 |
<p>[% reserveloo.reservedate %]</p> |
| 112 |
<p>in [% reserveloo.branch %]</p> |
112 |
<p>in [% reserveloo.branch %]</p> |
| 113 |
[% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %] |
113 |
[% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %] |
| 114 |
</td> |
114 |
</td> |
| 115 |
</tr> |
115 |
</tr> |
| 116 |
[% END %] |
116 |
[% END %] |
| 117 |
</tbody> |
117 |
</tbody> |
| 118 |
<tfoot> |
118 |
<tfoot> |
| 119 |
<tr> |
119 |
<tr> |
| 120 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Pull This many items" style="width:95%"/></td> |
120 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Pull This many items" style="width:95%"/></td> |
| 121 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td> |
121 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td> |
| 122 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td> |
122 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td> |
| 123 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td> |
123 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td> |
| 124 |
<td id="homebranchfilter"></td> |
124 |
<td id="homebranchfilter"></td> |
| 125 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td> |
125 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td> |
| 126 |
<td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td> |
126 |
<td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td> |
| 127 |
<td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td> |
127 |
<td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td> |
| 128 |
<td id="itypefilter"></td> |
128 |
<td id="itypefilter"></td> |
| 129 |
<td id="locationfilter"></td> |
129 |
<td id="locationfilter"></td> |
| 130 |
<td></td> |
130 |
<td></td> |
| 131 |
</tr> |
131 |
</tr> |
| 132 |
</tfoot> |
132 |
</tfoot> |
| 133 |
</table> |
133 |
</table> |
| 134 |
[% ELSE %] |
134 |
[% ELSE %] |
| 135 |
<b>No items found.</b> |
135 |
<b>No items found.</b> |
| 136 |
- |
|
|