Lines 1-10
Link Here
|
1 |
[% USE Asset %] |
1 |
[% USE Asset %] |
2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
|
|
3 |
[% USE KohaDates %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
<title>Koha › Basket grouping for [% booksellername |html %]</title> |
5 |
[% IF booksellerid %] |
|
|
6 |
<title>Koha › Basket groups for [% booksellername |html %]</title> |
7 |
[% ELSE %] |
8 |
<title>Koha › Basket groups</title> |
9 |
[% END %] |
5 |
[% Asset.css("css/datatables.css") %] |
10 |
[% Asset.css("css/datatables.css") %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'datatables.inc' %] |
12 |
[% INCLUDE 'datatables.inc' %] |
|
|
13 |
[% Asset.js("lib/jquery/plugins/jQuery.dataTables.columnFilter.js") %] |
8 |
[% Asset.js("lib/yui/utilities/utilities.js") %] |
14 |
[% Asset.js("lib/yui/utilities/utilities.js") %] |
9 |
[% Asset.js("lib/yui/button/button-min.js") %] |
15 |
[% Asset.js("lib/yui/button/button-min.js") %] |
10 |
[% Asset.js("lib/yui/container/container_core-min.js") %] |
16 |
[% Asset.js("lib/yui/container/container_core-min.js") %] |
Lines 108-122
function submitForm(form) {
Link Here
|
108 |
} |
114 |
} |
109 |
|
115 |
|
110 |
$(document).ready(function() { |
116 |
$(document).ready(function() { |
111 |
$("#basket_groups").tabs(); |
117 |
$(".basket_groups").tabs(); |
112 |
|
118 |
|
113 |
$("table").dataTable($.extend(true, {}, dataTablesDefaults, { |
119 |
$("table").each(function () { |
114 |
"aoColumnDefs": [ |
120 |
var column_filter_options = { |
115 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
121 |
sPlaceHolder: "head:after", |
116 |
], |
122 |
aoColumns: [ |
117 |
"bAutoWidth": false, |
123 |
{ type: "text" }, |
118 |
"sPaginationType": "four_button" |
124 |
{ type: "text" }, |
119 |
} )); |
125 |
{ type: "text" }, |
|
|
126 |
{ type: "text" }, |
127 |
{ type: "text" }, |
128 |
{ type: "text" }, |
129 |
{ type: "text" }, |
130 |
null |
131 |
] |
132 |
}; |
133 |
if ($(this).hasClass('basket_group_closed')) { |
134 |
// There is one more column in closed basketgroups tables |
135 |
column_filter_options.aoColumns.unshift({ type: "text" }); |
136 |
} |
137 |
$(this).dataTable($.extend(true, {}, dataTablesDefaults, { |
138 |
"aoColumnDefs": [ |
139 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
140 |
], |
141 |
"bPaginate": false, |
142 |
"bAutoWidth": false |
143 |
} )) |
144 |
.columnFilter(column_filter_options); |
145 |
}); |
120 |
|
146 |
|
121 |
}); |
147 |
}); |
122 |
|
148 |
|
Lines 130-139
function submitForm(form) {
Link Here
|
130 |
|
156 |
|
131 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
157 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
132 |
[% IF ( grouping ) %] |
158 |
[% IF ( grouping ) %] |
133 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket grouping</a> › Add basket group for [% booksellername |html %]</div> |
159 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket groups</a> › Add basket group for [% booksellername |html %] |
134 |
[% ELSE %] |
160 |
[% ELSE %] |
135 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket grouping</div> |
161 |
[% IF (booksellerid) %] |
|
|
162 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › |
163 |
[% END %] |
164 |
Basket groups |
136 |
[% END %] |
165 |
[% END %] |
|
|
166 |
</div> |
137 |
|
167 |
|
138 |
<div id="doc3" class="yui-t2"> |
168 |
<div id="doc3" class="yui-t2"> |
139 |
<div id="bd"> |
169 |
<div id="bd"> |
Lines 286-382
function submitForm(form) {
Link Here
|
286 |
</div> |
316 |
</div> |
287 |
</div> |
317 |
</div> |
288 |
[% ELSE %] |
318 |
[% ELSE %] |
289 |
<div id="toolbar" class="btn-toolbar"> |
319 |
[% IF booksellerid %] |
290 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a></div> |
320 |
<div id="toolbar" class="btn-toolbar"> |
291 |
</div> |
321 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a></div> |
292 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
322 |
</div> |
293 |
<div id="basket_groups" class="toptabs"> |
323 |
[% END %] |
294 |
<ul class="ui-tabs-nav"> |
324 |
|
295 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened">Open</a></li> |
325 |
[% FOREACH bookseller IN booksellers %] |
296 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
326 |
[% IF bookseller.basketgroups.size > 0 %] |
297 |
[% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed">Closed</a></li> |
327 |
<h1>Basket groups for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name |html %]</a></h1> |
298 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
328 |
<div class="basket_groups toptabs"> |
299 |
</ul> |
329 |
<ul class="ui-tabs-nav"> |
300 |
<div id="opened"> |
330 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened[% bookseller.id %]">Open</a></li> |
301 |
<table id="basket_group_opened"> |
331 |
[% ELSE%]<li><a href="#opened[% bookseller.id %]">Open</a></li>[% END %] |
302 |
<thead> |
332 |
[% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed[% bookseller.id %]">Closed</a></li> |
303 |
<tr> |
333 |
[% ELSE %]<li><a href="#closed[% bookseller.id %]">Closed</a></li>[% END %] |
304 |
<th>Name</th> |
334 |
</ul> |
305 |
<th>Number</th> |
335 |
<div id="opened[% bookseller.id %]"> |
306 |
<th>Billing place</th> |
336 |
<table id="basket_group_opened"> |
307 |
<th>Delivery place</th> |
337 |
<thead> |
308 |
<th>Number of baskets</th> |
|
|
309 |
<th>Action</th> |
310 |
</tr> |
311 |
</thead> |
312 |
<tbody> |
313 |
[% FOREACH basketgroup IN basketgroups %] |
314 |
[% UNLESS ( basketgroup.closed ) %] |
315 |
<tr> |
338 |
<tr> |
316 |
<td>[% IF ( basketgroup.name ) %] |
339 |
<th>Search name</th> |
317 |
[% basketgroup.name %] |
340 |
<th>Search no.</th> |
318 |
[% ELSE %] |
341 |
<th>Search billing place</th> |
319 |
Basket group no. [% basketgroup.id %] |
342 |
<th>Search delivery place</th> |
320 |
[% END %] |
343 |
<th>Search no. of baskets</th> |
321 |
</td> |
344 |
<th>Search no. of ordered titles</th> |
322 |
<td>[% basketgroup.id %]</td> |
345 |
<th>Search no. of received titles</th> |
323 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
346 |
<th></th> |
324 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
|
|
325 |
<td>[% basketgroup.basketsqty %]</td> |
326 |
<td> |
327 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" /> |
328 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> |
329 |
[% UNLESS basketgroup.basketsqty %] |
330 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> |
331 |
[% END %] |
332 |
</td> |
333 |
</tr> |
347 |
</tr> |
334 |
[% END %] |
|
|
335 |
[% END %] |
336 |
</tbody> |
337 |
</table> |
338 |
</div> |
339 |
<div id="closed"> |
340 |
<table id="basket_group_closed"> |
341 |
<thead> |
342 |
<tr> |
343 |
<th>Name</th> |
344 |
<th>Number</th> |
345 |
<th>Billing place</th> |
346 |
<th>Delivery place</th> |
347 |
<th>Number of baskets</th> |
348 |
<th>Action</th> |
349 |
</tr> |
350 |
</thead> |
351 |
<tbody> |
352 |
[% FOREACH basketgroup IN basketgroups %] |
353 |
[% IF ( basketgroup.closed ) %] |
354 |
<tr> |
348 |
<tr> |
355 |
<td> |
349 |
<th>Name</th> |
356 |
[% IF ( basketgroup.name ) %] |
350 |
<th>No.</th> |
357 |
[% basketgroup.name %] |
351 |
<th>Billing place</th> |
358 |
[% ELSE %] |
352 |
<th>Delivery place</th> |
359 |
Basket group no. [% basketgroup.id %] |
353 |
<th>No. of baskets</th> |
360 |
[% END %] |
354 |
<th>No. of ordered titles</th> |
361 |
</td> |
355 |
<th>No. of received titles</th> |
362 |
<td>[% basketgroup.id %]</td> |
356 |
<th>Action</th> |
363 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
|
|
364 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
365 |
<td>[% basketgroup.basketsqty %]</td> |
366 |
<td> |
367 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="View" /></form> |
368 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form> |
369 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as PDF" /></form> |
370 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form> |
371 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Generate EDIFACT order" /></form> |
372 |
</td> |
373 |
</tr> |
357 |
</tr> |
374 |
[% END %] |
358 |
</thead> |
375 |
[% END %] |
359 |
<tbody> |
376 |
</tbody> |
360 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
377 |
</table> |
361 |
[% UNLESS ( basketgroup.closed ) %] |
378 |
</div> |
362 |
<tr> |
379 |
</div> |
363 |
<td> |
|
|
364 |
[% IF ( basketgroup.name ) %] |
365 |
[% basketgroup.name %] |
366 |
[% ELSE %] |
367 |
Basket group no. [% basketgroup.id %] |
368 |
[% END %] |
369 |
</td> |
370 |
<td>[% basketgroup.id %]</td> |
371 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
372 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
373 |
<td>[% basketgroup.basketsqty %]</td> |
374 |
<td>[% basketgroup.ordered_titles_count %]</td> |
375 |
<td>[% basketgroup.received_titles_count %]</td> |
376 |
<td> |
377 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" /> |
378 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> |
379 |
[% UNLESS basketgroup.basketsqty %] |
380 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> |
381 |
[% END %] |
382 |
</td> |
383 |
</tr> |
384 |
[% END %] |
385 |
[% END %] |
386 |
</tbody> |
387 |
</table> |
388 |
</div> |
389 |
<div id="closed[% bookseller.id %]"> |
390 |
<table class="basket_group_closed"> |
391 |
<thead> |
392 |
<tr> |
393 |
<th>Search name</th> |
394 |
<th>Search no.</th> |
395 |
<th>Search date closed</th> |
396 |
<th>Search billing place</th> |
397 |
<th>Search delivery place</th> |
398 |
<th>Search no. of baskets</th> |
399 |
<th>Search no. of ordered titles</th> |
400 |
<th>Search no. of received titles</th> |
401 |
<th></th> |
402 |
</tr> |
403 |
<tr> |
404 |
<th>Name</th> |
405 |
<th>No.</th> |
406 |
<th>Date closed</th> |
407 |
<th>Billing place</th> |
408 |
<th>Delivery place</th> |
409 |
<th>No. of baskets</th> |
410 |
<th>No. of ordered titles</th> |
411 |
<th>No. of received titles</th> |
412 |
<th>Action</th> |
413 |
</tr> |
414 |
</thead> |
415 |
<tbody> |
416 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
417 |
[% IF ( basketgroup.closed ) %] |
418 |
<tr> |
419 |
<td> |
420 |
[% IF ( basketgroup.name ) %] |
421 |
[% basketgroup.name %] |
422 |
[% ELSE %] |
423 |
Basket group no. [% basketgroup.id %] |
424 |
[% END %] |
425 |
</td> |
426 |
<td>[% basketgroup.id %]</td> |
427 |
<td>[% basketgroup.closeddate |$KohaDates %]</td> |
428 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
429 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
430 |
<td>[% basketgroup.basketsqty %]</td> |
431 |
<td>[% basketgroup.ordered_titles_count %]</td> |
432 |
<td>[% basketgroup.received_titles_count %]</td> |
433 |
<td> |
434 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="View" /></form> |
435 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form> |
436 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as PDF" /></form> |
437 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form> |
438 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Generate EDIFACT order" /></form> |
439 |
</td> |
440 |
</tr> |
441 |
[% END %] |
442 |
[% END %] |
443 |
</tbody> |
444 |
</table> |
445 |
</div> |
446 |
</div> |
447 |
[% END %] |
448 |
[% END %] |
380 |
[% END %] |
449 |
[% END %] |
381 |
</div> |
450 |
</div> |
382 |
</div> |
451 |
</div> |
383 |
- |
|
|