Lines 57-67
Link Here
|
57 |
[% END %] |
57 |
[% END %] |
58 |
</select> |
58 |
</select> |
59 |
</p> |
59 |
</p> |
60 |
[% END %] |
60 |
[% IF ( allbaskets ) %] |
61 |
[% IF ( allbaskets ) %] |
61 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier | uri %]&booksellerid=[% booksellerid | uri %]">Show active baskets only</a> |
62 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier | uri %]&booksellerid=[% booksellerid | uri %]">Show active baskets only</a> |
62 |
[% ELSE %] |
63 |
[% ELSE %] |
63 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier | uri %]&booksellerid=[% booksellerid | uri %]&allbaskets=1">Show all baskets</a> |
64 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier | uri %]&booksellerid=[% booksellerid | uri %]&allbaskets=1">Show all baskets</a> |
64 |
[% END %] |
65 |
[% END %] |
65 |
[% END %] |
66 |
[% UNLESS booksellerid %] |
66 |
[% UNLESS booksellerid %] |
67 |
| <a href="#" id="show_active_vendors">Show active vendors only</a><a href="#" id="show_all_vendors">Show all vendors</a> |
67 |
| <a href="#" id="show_active_vendors">Show active vendors only</a><a href="#" id="show_all_vendors">Show all vendors</a> |
Lines 73-97
Link Here
|
73 |
[% ELSE %] |
73 |
[% ELSE %] |
74 |
<div class="supplier inactive"> |
74 |
<div class="supplier inactive"> |
75 |
[% END %] |
75 |
[% END %] |
76 |
<span class="suppliername"> |
76 |
[% IF ( supplier.active ) %] |
77 |
[% IF (supplier.name) %] |
77 |
<h2 class="suppliername"> |
78 |
<a name="[% supplier.booksellerid | html %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid | uri %]">[% supplier.name | html %]</a> |
78 |
[% ELSE %] |
|
|
79 |
<h2 class="suppliername inactive"> |
80 |
[% END %] |
81 |
<a name="[% supplier.booksellerid | html %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid | uri %]"> |
82 |
[% IF (supplier.name) %] |
83 |
[% supplier.name | html %] |
84 |
[% ELSE %] |
85 |
NO NAME |
86 |
[% END %] |
87 |
</a> |
88 |
<a name="[% supplier.booksellerid | html %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid | uri %]"></a> |
89 |
[% IF ( !supplier.active ) %]<span class="vendor_inactive">(inactive)</span>[% END %] |
90 |
</h2> |
91 |
<span class="basketcounts"> |
92 |
[% IF ( count > 1 ) %] |
93 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% supplier.booksellerid | uri %]">[% supplier.basketcount | html %] [% tn('basket', 'baskets', supplier.basketcount) | $raw %]</a>, |
79 |
[% ELSE %] |
94 |
[% ELSE %] |
80 |
<a name="[% supplier.booksellerid | html %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid | uri %]">NO NAME</a> |
95 |
[% supplier.basketcount | html %] [% tn('basket', 'baskets', supplier.basketcount) | $raw %], |
81 |
[% END %] |
96 |
[% END %] |
82 |
</span> |
97 |
[% IF supplier.subscriptioncount > 0 %] |
83 |
<span class="action"> |
98 |
<a href="/cgi-bin/koha/serials/serials-search.pl?bookseller_filter=[% supplier.name | uri %]&searched=1"> |
84 |
[% IF ( CAN_user_acquisition_order_manage ) %] |
99 |
[% supplier.subscriptioncount | html %] [% tn('subscription', 'subscriptions', supplier.subscriptioncount) | $raw %] |
85 |
[% IF ( supplier.active ) %] |
100 |
</a> |
86 |
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid | uri %]&op=add_form"><i class="fa fa-plus"></i> New basket</a> |
101 |
[% ELSE %] |
87 |
[% ELSE %] |
102 |
[% supplier.subscriptioncount | html %] [% tn('subscription', 'subscriptions', supplier.subscriptioncount) | $raw %] |
88 |
(inactive) |
|
|
89 |
[% END %] |
90 |
[% END %] |
103 |
[% END %] |
91 |
[% IF ( supplier.loop_basket.size ) %] |
|
|
92 |
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid | uri %]"><i class="fa fa-inbox"></i> Receive shipment</a> |
93 |
[% END %] |
94 |
</span> |
104 |
</span> |
|
|
105 |
[% IF ( count == 1 ) %] |
106 |
[% IF ( supplier.basketcount > 0 ) %] |
107 |
<div> |
108 |
[% IF ( allbaskets ) %] |
109 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier.booksellerid | uri %]&booksellerid=[% booksellerid | uri %]">Show active baskets only</a> |
110 |
[% ELSE %] |
111 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier.booksellerid | uri %]&booksellerid=[% booksellerid | uri %]&allbaskets=1">Show all baskets</a> |
112 |
[% END %] |
113 |
</div> |
114 |
[% END %] |
115 |
[% ELSE %] |
116 |
[% INCLUDE "acquisitions-toolbar.inc" booksellerid=supplier.booksellerid active=supplier.active basketcount=supplier.loop_basket.size basketcount=supplier.basketcount subscriptioncount=supplier.subscriptioncount %] |
117 |
[% END %] |
118 |
|
95 |
<div class="baskets"> |
119 |
<div class="baskets"> |
96 |
[% IF ( supplier.loop_basket.size ) %] |
120 |
[% IF ( supplier.loop_basket.size ) %] |
97 |
<table class="baskets"> |
121 |
<table class="baskets"> |
Lines 195-201
Link Here
|
195 |
</table> |
219 |
</table> |
196 |
|
220 |
|
197 |
[% ELSE %] |
221 |
[% ELSE %] |
198 |
<p>No pending baskets</p> |
222 |
<p> |
|
|
223 |
No pending baskets. |
224 |
[% IF ( supplier.basketcount > 0 && count > 1 ) %] |
225 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=1&booksellerid=[% supplier.booksellerid | uri %]&allbaskets=1">View all baskets</a>. |
226 |
[% END %] |
227 |
</p> |
228 |
|
199 |
[% END %][%# IF ( supplier.loop_basket.size ) %] |
229 |
[% END %][%# IF ( supplier.loop_basket.size ) %] |
200 |
</div> |
230 |
</div> |
201 |
</div> |
231 |
</div> |