|
Lines 172-201
Link Here
|
| 172 |
[% MACRO jsinclude BLOCK %] |
172 |
[% MACRO jsinclude BLOCK %] |
| 173 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
173 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
| 174 |
[% INCLUDE 'datatables.inc' %] |
174 |
[% INCLUDE 'datatables.inc' %] |
| 175 |
[% INCLUDE 'columns_settings.inc' %] |
|
|
| 176 |
<script> |
175 |
<script> |
| 177 |
var checkouts_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %]; |
176 |
var checkouts_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %]; |
| 178 |
var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %]; |
177 |
var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %]; |
| 179 |
var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %]; |
178 |
var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %]; |
| 180 |
|
179 |
|
| 181 |
function initTables(){ |
180 |
function initTables(){ |
| 182 |
KohaTable("print-summary-checkouts", { |
181 |
$("#print-summary-checkouts").kohaTable( |
| 183 |
"dom": '<"dt-info"><"top pager"<"table_controls"B>>t', |
182 |
{ |
| 184 |
"paging": false, |
183 |
dom: '<"dt-info"><"top pager"<"table_controls"B>>t', |
| 185 |
"autoWidth": false, |
184 |
paging: false, |
| 186 |
}, checkouts_columns); |
185 |
autoWidth: false, |
|
|
186 |
}, |
| 187 |
checkouts_columns |
| 188 |
); |
| 187 |
|
189 |
|
| 188 |
KohaTable("print-summary-holds", { |
190 |
$("#print-summary-holds").kohaTable( |
| 189 |
"dom": '<"dt-info"><"top pager"<"table_controls"B>>t', |
191 |
{ |
| 190 |
"paging": false, |
192 |
dom: '<"dt-info"><"top pager"<"table_controls"B>>t', |
| 191 |
"autoWidth": false, |
193 |
paging: false, |
| 192 |
}, holds_columns); |
194 |
autoWidth: false, |
|
|
195 |
}, |
| 196 |
holds_columns |
| 197 |
); |
| 193 |
|
198 |
|
| 194 |
KohaTable("print-summary-fines", { |
199 |
$("#print-summary-fines").kohaTable( |
| 195 |
"dom": '<"dt-info"><"top pager"<"table_controls"B>>t', |
200 |
{ |
| 196 |
"paging": false, |
201 |
dom: '<"dt-info"><"top pager"<"table_controls"B>>t', |
| 197 |
"autoWidth": false, |
202 |
paging: false, |
| 198 |
}, fines_columns); |
203 |
autoWidth: false, |
|
|
204 |
}, |
| 205 |
fines_columns |
| 206 |
); |
| 199 |
} |
207 |
} |
| 200 |
|
208 |
|
| 201 |
if( autoprint ){ |
209 |
if( autoprint ){ |