if ($userenv->{'flags'} & 1 || #user is superlibrarian
(haspermission( $uid, { acquisition => q{*} } ) && #user has acq permissions and
($viewbaskets eq 'all' || #user is allowed to see all baskets
- ($viewbaskets eq 'branch' && $authorisedby && $userbranch eq GetMember( borrowernumber => $authorisedby )->{branchcode}) || #basket belongs to user's branch
- ($basket->{authorisedby} && $viewbaskets == 'user' && $authorisedby == $loggedinuser) #user created this basket
+ ($viewbaskets eq 'branch' && $authorisedby && $userbranch eq $basketbranch) || #basket belongs to user's branch
+ ($basket->{authorisedby} && $viewbaskets eq 'user' && $authorisedby == $loggedinuser) #user created this basket
)
)
) {
{ 'aTargets': [-1], 'bSortable': false }
]
}));
+ $("#supplierlist").change(function() {
+ var id = $(this).find("option:selected").val();
+ window.location.href = "#" + id;
+ });
});
//]]>
</script>
[% END %]
[% IF ( loop_suppliers.size ) %]
[% UNLESS (count == 1) %]
- <ul class="suppliers_anchors">
+ <p>Choose a vendor in the list to jump directly to the right place.
+ <select id="supplierlist">
[% FOREACH supplier IN loop_suppliers %]
- <li><a href="#[% supplier.booksellerid %]">[% supplier.name %]</a></li>
+ <option value="[% supplier.booksellerid %]">[% supplier.name %]</option>
[% END %]
- </ul>
+ </select>
+ </p>
[% END %]
<div id="acqui_order_supplierlist">
[% FOREACH supplier IN loop_suppliers %]
<span class="action">
[% IF ( CAN_user_acquisition_order_manage ) %]
[% IF ( supplier.active ) %]
- <input type="button" value="New basket" onclick="window.location.href='/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid %]&op=add_form'" />
+ <input type="button" value="New basket" onclick="window.location.href='/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid %]&op=add_form'" />
[% ELSE %]
(inactive)
[% END %]
<thead>
<tr>
<th>Basket (#)</th>
- <th>Biblios</th>
- <th>Items</th>
- <th>Expected items</th>
+ <th>Item count</th>
+ <th>Biblio count</th>
+ <th>Items expected</th>
<th>Created by</th>
<th>Date</th>
<th> </th>
<tr>
[% END %]
<td>[% basket.basketname %] (#[% basket.basketno %])</td>
- <td>[% basket.total_biblios %]</td>
<td>[% basket.total_items %]</td>
+ <td>[% basket.total_biblios %]</td>
<td>[% basket.expected_items %]</td>
<td>
[% basket.authorisedby_firstname %]