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