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-120
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 |
"bAutoWidth": false |
122 |
{ type: "text" }, |
117 |
} )); |
123 |
{ type: "text" }, |
|
|
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 |
"bAutoWidth": false |
143 |
} )) |
144 |
.columnFilter(column_filter_options); |
145 |
}); |
118 |
|
146 |
|
119 |
}); |
147 |
}); |
120 |
|
148 |
|
Lines 128-137
function submitForm(form) {
Link Here
|
128 |
|
156 |
|
129 |
<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> › |
130 |
[% IF ( grouping ) %] |
158 |
[% IF ( grouping ) %] |
131 |
<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 grouping</a> › Add basket group for [% booksellername |html %] |
132 |
[% ELSE %] |
160 |
[% ELSE %] |
133 |
<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 grouping |
134 |
[% END %] |
165 |
[% END %] |
|
|
166 |
</div> |
135 |
|
167 |
|
136 |
<div id="doc3" class="yui-t2"> |
168 |
<div id="doc3" class="yui-t2"> |
137 |
<div id="bd"> |
169 |
<div id="bd"> |
Lines 299-392
function submitForm(form) {
Link Here
|
299 |
</div> |
331 |
</div> |
300 |
</div> |
332 |
</div> |
301 |
[% ELSE %] |
333 |
[% ELSE %] |
302 |
<div id="toolbar" class="btn-toolbar"> |
334 |
[% IF booksellerid %] |
303 |
<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> |
335 |
<div id="toolbar" class="btn-toolbar"> |
304 |
</div> |
336 |
<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> |
305 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
337 |
</div> |
306 |
<div id="basket_groups" class="toptabs"> |
338 |
[% END %] |
307 |
<ul class="ui-tabs-nav"> |
339 |
[% FOREACH bookseller IN booksellers %] |
308 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened">Open</a></li> |
340 |
[% IF bookseller.basketgroups.size > 0 %] |
309 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
341 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
310 |
[% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed">Closed</a></li> |
342 |
<div class="basket_groups toptabs"> |
311 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
343 |
<ul class="ui-tabs-nav"> |
312 |
</ul> |
344 |
[% UNLESS ( listclosed ) %]<li class="ui-tabs-active"><a href="#opened[% bookseller.id %]">Open</a></li> |
313 |
<div id="opened"> |
345 |
[% ELSE%]<li><a href="#opened[% bookseller.id %]">Open</a></li>[% END %] |
314 |
<table id="basket_group_opened"> |
346 |
[% IF ( listclosed ) %]<li class="ui-tabs-active"><a href="#closed[% bookseller.id %]">Closed</a></li> |
315 |
<thead> |
347 |
[% ELSE %]<li><a href="#closed[% bookseller.id %]">Closed</a></li>[% END %] |
316 |
<tr> |
348 |
</ul> |
317 |
<th>Name</th> |
349 |
<div id="opened[% bookseller.id %]"> |
318 |
<th>Number</th> |
350 |
<table class="basket_group_opened"> |
319 |
<th>Billing place</th> |
351 |
<thead> |
320 |
<th>Delivery place</th> |
|
|
321 |
<th>Number of baskets</th> |
322 |
<th>Action</th> |
323 |
</tr> |
324 |
</thead> |
325 |
<tbody> |
326 |
[% FOREACH basketgroup IN basketgroups %] |
327 |
[% UNLESS ( basketgroup.closed ) %] |
328 |
<tr> |
352 |
<tr> |
329 |
<td>[% IF ( basketgroup.name ) %] |
353 |
<th>Search name</th> |
330 |
[% basketgroup.name %] |
354 |
<th>Search no.</th> |
331 |
[% ELSE %] |
355 |
<th>Search billing place</th> |
332 |
Basket group no. [% basketgroup.id %] |
356 |
<th>Search delivery place</th> |
333 |
[% END %] |
357 |
<th>Search no. of baskets</th> |
334 |
</td> |
358 |
<th>Search no. of ordered titles</th> |
335 |
<td>[% basketgroup.id %]</td> |
359 |
<th>Search no. of received titles</th> |
336 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
360 |
<th></th> |
337 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
361 |
<th></th> |
338 |
<td>[% basketgroup.basketsqty %]</td> |
362 |
<th></th> |
339 |
<td> |
|
|
340 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and print" /> |
341 |
<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> |
342 |
<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> |
343 |
</td> |
344 |
</tr> |
363 |
</tr> |
345 |
[% END %] |
|
|
346 |
[% END %] |
347 |
</tbody> |
348 |
</table> |
349 |
</div> |
350 |
<div id="closed"> |
351 |
<table id="basket_group_closed"> |
352 |
<thead> |
353 |
<tr> |
354 |
<th>Name</th> |
355 |
<th>Number</th> |
356 |
<th>Billing place</th> |
357 |
<th>Delivery place</th> |
358 |
<th>Number of baskets</th> |
359 |
<th>Action</th> |
360 |
</tr> |
361 |
</thead> |
362 |
<tbody> |
363 |
[% FOREACH basketgroup IN basketgroups %] |
364 |
[% IF ( basketgroup.closed ) %] |
365 |
<tr> |
364 |
<tr> |
366 |
<td> |
365 |
<th>Name</th> |
367 |
[% IF ( basketgroup.name ) %] |
366 |
<th>No.</th> |
368 |
[% basketgroup.name %] |
367 |
<th>Billing place</th> |
369 |
[% ELSE %] |
368 |
<th>Delivery place</th> |
370 |
Basket group no. [% basketgroup.id %] |
369 |
<th>No. of baskets</th> |
371 |
[% END %] |
370 |
<th>No. of ordered titles</th> |
372 |
</td> |
371 |
<th>No. of received titles</th> |
373 |
<td>[% basketgroup.id %]</td> |
372 |
<th>Ordered amount</th> |
374 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
373 |
<th>Charged amount</th> |
375 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
374 |
<th>Action</th> |
376 |
<td>[% basketgroup.basketsqty %]</td> |
|
|
377 |
<td> |
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="View" /></form> |
379 |
<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> |
380 |
<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> |
381 |
<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> |
382 |
</td> |
383 |
</tr> |
375 |
</tr> |
384 |
[% END %] |
376 |
</thead> |
385 |
[% END %] |
377 |
<tbody> |
386 |
</tbody> |
378 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
387 |
</table> |
379 |
[% UNLESS ( basketgroup.closed ) %] |
388 |
</div> |
380 |
<tr> |
389 |
</div> |
381 |
<td> |
|
|
382 |
[% IF ( basketgroup.name ) %] |
383 |
[% basketgroup.name %] |
384 |
[% ELSE %] |
385 |
Basket group no. [% basketgroup.id %] |
386 |
[% END %] |
387 |
</td> |
388 |
<td>[% basketgroup.id %]</td> |
389 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
390 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
391 |
<td>[% basketgroup.basketsqty %]</td> |
392 |
<td>[% basketgroup.ordered_titles_count %]</td> |
393 |
<td>[% basketgroup.received_titles_count %]</td> |
394 |
<td>[% basketgroup.ordered_amount %]</td> |
395 |
<td>[% basketgroup.charged_amount %]</td> |
396 |
<td> |
397 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and print" /> |
398 |
<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> |
399 |
<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> |
400 |
</td> |
401 |
</tr> |
402 |
[% END %] |
403 |
[% END %] |
404 |
</tbody> |
405 |
</table> |
406 |
</div> |
407 |
<div id="closed[% bookseller.id %]"> |
408 |
<table class="basket_group_closed"> |
409 |
<thead> |
410 |
<tr> |
411 |
<th>Search name</th> |
412 |
<th>Search no.</th> |
413 |
<th>Search date closed</th> |
414 |
<th>Search billing place</th> |
415 |
<th>Search delivery place</th> |
416 |
<th>Search no. of baskets</th> |
417 |
<th>Search no. of ordered titles</th> |
418 |
<th>Search no. of received titles</th> |
419 |
<th></th> |
420 |
<th></th> |
421 |
<th></th> |
422 |
</tr> |
423 |
<tr> |
424 |
<th>Name</th> |
425 |
<th>No.</th> |
426 |
<th>Date closed</th> |
427 |
<th>Billing place</th> |
428 |
<th>Delivery place</th> |
429 |
<th>No. of baskets</th> |
430 |
<th>No. of ordered titles</th> |
431 |
<th>No. of received titles</th> |
432 |
<th>Ordered amount</th> |
433 |
<th>Charged amount</th> |
434 |
<th>Action</th> |
435 |
</tr> |
436 |
</thead> |
437 |
<tbody> |
438 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
439 |
[% IF ( basketgroup.closed ) %] |
440 |
<tr> |
441 |
<td> |
442 |
[% IF ( basketgroup.name ) %] |
443 |
[% basketgroup.name %] |
444 |
[% ELSE %] |
445 |
Basket group no. [% basketgroup.id %] |
446 |
[% END %] |
447 |
</td> |
448 |
<td>[% basketgroup.id %]</td> |
449 |
<td>[% basketgroup.closeddate |$KohaDates %]</td> |
450 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
451 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
452 |
<td>[% basketgroup.basketsqty %]</td> |
453 |
<td>[% basketgroup.ordered_titles_count %]</td> |
454 |
<td>[% basketgroup.received_titles_count %]</td> |
455 |
<td>[% basketgroup.ordered_amount %]</td> |
456 |
<td>[% basketgroup.charged_amount %]</td> |
457 |
<td> |
458 |
<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> |
459 |
<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> |
460 |
<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> |
461 |
<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> |
462 |
</td> |
463 |
</tr> |
464 |
[% END %] |
465 |
[% END %] |
466 |
</tbody> |
467 |
</table> |
468 |
</div> |
469 |
</div> |
470 |
[% END %] |
471 |
[% END %] |
390 |
[% END %] |
472 |
[% END %] |
391 |
</div> |
473 |
</div> |
392 |
</div> |
474 |
</div> |
393 |
- |
|
|