Lines 1-4
Link Here
|
1 |
[% USE KohaDates %] |
1 |
[% USE KohaDates %] |
|
|
2 |
[% USE ColumnsSettings %] |
2 |
[% USE AuthorisedValues %] |
3 |
[% USE AuthorisedValues %] |
3 |
[%- USE Branches -%] |
4 |
[%- USE Branches -%] |
4 |
[%- USE ItemTypes -%] |
5 |
[%- USE ItemTypes -%] |
Lines 9-25
Link Here
|
9 |
<!-- Plugin datatables --> |
10 |
<!-- Plugin datatables --> |
10 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
11 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
11 |
[% INCLUDE 'datatables.inc' %] |
12 |
[% INCLUDE 'datatables.inc' %] |
|
|
13 |
[% INCLUDE 'columns_settings.inc' %] |
12 |
<script type="text/JavaScript"> |
14 |
<script type="text/JavaScript"> |
13 |
//<![CDATA[ |
15 |
//<![CDATA[ |
14 |
$(document).ready(function() { |
16 |
$(document).ready(function() { |
15 |
var holdst = $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, { |
17 |
var columns_settings = [% ColumnsSettings.GetColumns('circ', 'holds', 'holds-to-pull', 'json') %]; |
|
|
18 |
var holdst = KohaTable("#holdst", { |
16 |
"aoColumnDefs": [ |
19 |
"aoColumnDefs": [ |
17 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
20 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
18 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] }, |
21 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] }, |
19 |
{ "sType": "string", "aTargets": [ "string-sort" ] } //Target columns that use <br> separators and pull-down menus. |
22 |
{ "sType": "string", "aTargets": [ "string-sort" ] } //Target columns that use <br> separators and pull-down menus. |
20 |
], |
23 |
], |
21 |
"sPaginationType": "full_numbers" |
24 |
"sPaginationType": "full_numbers" |
22 |
})); |
25 |
}, columns_settings); |
23 |
holdst.fnAddFilters("filter"); |
26 |
holdst.fnAddFilters("filter"); |
24 |
[%# add separateData function to cleanse jQuery select lists by breaking apart strings glued with BR tags and then de-duplicating any repeated library codes %] |
27 |
[%# add separateData function to cleanse jQuery select lists by breaking apart strings glued with BR tags and then de-duplicating any repeated library codes %] |
25 |
function separateData ( ColumnData ){ |
28 |
function separateData ( ColumnData ){ |
Lines 47-68
$(document).ready(function() {
Link Here
|
47 |
return r+'</select>'; |
50 |
return r+'</select>'; |
48 |
} |
51 |
} |
49 |
$("#homebranchfilter").each( function () { |
52 |
$("#homebranchfilter").each( function () { |
50 |
$(this).html( createSelect( holdst.fnGetColumnData(4) ) ); |
53 |
$(this).html( createSelect( holdst.fnGetColumnData(5) ) ); |
51 |
$('select', this).change( function () { |
54 |
$('select', this).change( function () { |
52 |
var filter_value = $(this).val(); |
55 |
var filter_value = $(this).val(); |
53 |
holdst.fnFilter( filter_value, 4, true ); |
56 |
holdst.fnFilter( filter_value, 5, true ); |
54 |
} ); |
57 |
} ); |
55 |
} ); |
58 |
} ); |
56 |
$("#itypefilter").each( function () { |
59 |
$("#itypefilter").each( function () { |
57 |
$(this).html( createSelect( holdst.fnGetColumnData(8) ) ); |
60 |
$(this).html( createSelect( holdst.fnGetColumnData(9) ) ); |
58 |
$('select', this).change( function () { |
61 |
$('select', this).change( function () { |
59 |
holdst.fnFilter( $(this).val(), 8 ); |
62 |
holdst.fnFilter( $(this).val(), 9 ); |
60 |
} ); |
63 |
} ); |
61 |
} ); |
64 |
} ); |
62 |
$("#locationfilter").each( function () { |
65 |
$("#locationfilter").each( function () { |
63 |
$(this).html( createSelect( holdst.fnGetColumnData(9) ) ); |
66 |
$(this).html( createSelect( holdst.fnGetColumnData(10) ) ); |
64 |
$('select', this).change( function () { |
67 |
$('select', this).change( function () { |
65 |
holdst.fnFilter( $(this).val(), 9 ); |
68 |
holdst.fnFilter( $(this).val(), 10 ); |
66 |
} ); |
69 |
} ); |
67 |
} ); |
70 |
} ); |
68 |
}); |
71 |
}); |
Lines 93-98
$(document).ready(function() {
Link Here
|
93 |
<th>Pull this many items</th> |
96 |
<th>Pull this many items</th> |
94 |
<th>Items available</th> |
97 |
<th>Items available</th> |
95 |
<th>Patrons with holds</th> |
98 |
<th>Patrons with holds</th> |
|
|
99 |
<th>First patron</td> |
96 |
<th class="anti-the">Title</th> |
100 |
<th class="anti-the">Title</th> |
97 |
<th class="string-sort">Libraries</th> |
101 |
<th class="string-sort">Libraries</th> |
98 |
<th>Available call numbers</th> |
102 |
<th>Available call numbers</th> |
Lines 110-115
$(document).ready(function() {
Link Here
|
110 |
<td><p><b>[% reserveloo.pullcount %]</b></p></td> |
114 |
<td><p><b>[% reserveloo.pullcount %]</b></p></td> |
111 |
<td>[% reserveloo.count %]</td> |
115 |
<td>[% reserveloo.count %]</td> |
112 |
<td>[% reserveloo.rcount %]</td> |
116 |
<td>[% reserveloo.rcount %]</td> |
|
|
117 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrowernumber %]">[% reserveloo.name %]</a></td> |
113 |
<td> |
118 |
<td> |
114 |
<p> |
119 |
<p> |
115 |
[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] |
120 |
[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] |
Lines 121-126
$(document).ready(function() {
Link Here
|
121 |
<td>"</td> |
126 |
<td>"</td> |
122 |
<td>"</td> |
127 |
<td>"</td> |
123 |
<td>"</td> |
128 |
<td>"</td> |
|
|
129 |
<td>"</td> |
124 |
[% END %] |
130 |
[% END %] |
125 |
<td> |
131 |
<td> |
126 |
[% FOREACH holdingbranch IN reserveloo.holdingbranches %] |
132 |
[% FOREACH holdingbranch IN reserveloo.holdingbranches %] |
Lines 151-161
$(document).ready(function() {
Link Here
|
151 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Pull this many items" style="width:95%"/></td> |
157 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Pull this many items" style="width:95%"/></td> |
152 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td> |
158 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td> |
153 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td> |
159 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td> |
154 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td> |
160 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Patron name" style="width:95%"/></td> |
|
|
161 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Title" style="width:95%"/></td> |
155 |
<td id="homebranchfilter"></td> |
162 |
<td id="homebranchfilter"></td> |
156 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td> |
163 |
<td><input type="text" class="filter" data-column_num="6" placeholder="Call number" style="width:95%"/></td> |
157 |
<td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td> |
164 |
<td><input type="text" class="filter" data-column_num="7" placeholder="Available copy" style="width:95%"/></td> |
158 |
<td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td> |
165 |
<td><input type="text" class="filter" data-column_num="8" placeholder="Available enumeration" style="width:95%"/></td> |
159 |
<td id="itypefilter"></td> |
166 |
<td id="itypefilter"></td> |
160 |
<td id="locationfilter"></td> |
167 |
<td id="locationfilter"></td> |
161 |
<td></td> |
168 |
<td></td> |
162 |
- |
|
|