dt_add_type_uk_date();
[% END %]
$("table.baskets").dataTable($.extend(true, {}, dataTablesDefaults, {
+ 'sDom': 't',
'bPaginate': false,
'bFilter': false,
'bInfo': false,
+ "aaSorting": [[ 1, "asc" ]],
'aoColumnDefs': [
{ 'aTargets': [-1], 'bSortable': false }
]
</script>
</head>
-<body>
+<body id="acq_booksellers" class="acq">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › Search for Vendor <em>[% supplier %]</em> </div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › Search for vendor <em>[% supplier %]</em> </div>
<div id="doc3" class="yui-t2">
<div class="yui-b">
[% INCLUDE 'acquisitions-toolbar.inc' %]
-[% IF ( count == 1 ) %]
-<h1> [% supplier_name %] </h1>
-[% ELSE %]
+[% UNLESS ( count == 1 ) %]
<h1>You searched on <b>vendor [% supplier %],</b> [% count %] results found</h1>
[% END %]
[% IF ( loop_suppliers.size ) %]
[% UNLESS (count == 1) %]
<p>Choose a vendor in the list to jump directly to the right place.
<select id="supplierlist">
- [% FOREACH supplier IN loop_suppliers %]
- <option value="[% supplier.booksellerid %]">[% supplier.name %]</option>
+ [% FOREACH supplier1 IN loop_suppliers %]
+ <option value="[% supplier1.booksellerid %]">[% supplier1.name %]</option>
[% END %]
</select>
</p>
[% END %]
+ [% IF ( allbaskets ) %]
+ <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]">Show active baskets only</a></p>
+ [% ELSE %]
+ <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]&allbaskets=1">Show all baskets</a></p>
+ [% END %]
<div id="acqui_order_supplierlist">
[% FOREACH supplier IN loop_suppliers %]
<div class="supplier">
<table class="baskets">
<thead>
<tr>
- <th>Basket (#)</th>
+ <th>No.</th>
+ <th>Name</th>
<th>Item count</th>
<th>Biblio count</th>
<th>Items expected</th>
[% ELSE %]
<tr>
[% END %]
- <td>[% basket.basketname %] (#[% basket.basketno %])</td>
+ <td>[% basket.basketno %]</td>
+ <td>[% basket.basketname %]</td>
<td>[% basket.total_items %]</td>
<td>[% basket.total_biblios %]</td>
<td>[% basket.expected_items %]</td>
</div>
</div>
<div class="yui-b">
+[% IF ( booksellerid ) %]
+[% INCLUDE 'vendor-menu.inc' %]
+[% END %]
[% INCLUDE 'acquisitions-menu.inc' %]
</div>
</div>