Lines 15-21
Link Here
|
15 |
<script type="text/javascript" src="[% interface %]/lib/yui/container/container_core-min_[% KOHA_VERSION %].js"></script> |
15 |
<script type="text/javascript" src="[% interface %]/lib/yui/container/container_core-min_[% KOHA_VERSION %].js"></script> |
16 |
<script type="text/javascript" src="[% interface %]/lib/yui/menu/menu-min_[% KOHA_VERSION %].js"></script> |
16 |
<script type="text/javascript" src="[% interface %]/lib/yui/menu/menu-min_[% KOHA_VERSION %].js"></script> |
17 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/basketgroup_[% KOHA_VERSION %].js"></script> |
17 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/basketgroup_[% KOHA_VERSION %].js"></script> |
18 |
[% IF ( grouping ) %] |
|
|
19 |
<script type="text/javascript" src="[% interface %]/lib/yui/yahoo-dom-event/yahoo-dom-event_[% KOHA_VERSION %].js"></script> |
18 |
<script type="text/javascript" src="[% interface %]/lib/yui/yahoo-dom-event/yahoo-dom-event_[% KOHA_VERSION %].js"></script> |
20 |
<script type="text/javascript" src="[% interface %]/lib/yui/animation/animation-min_[% KOHA_VERSION %].js"></script> |
19 |
<script type="text/javascript" src="[% interface %]/lib/yui/animation/animation-min_[% KOHA_VERSION %].js"></script> |
21 |
<script type="text/javascript" src="[% interface %]/lib/yui/dragdrop/dragdrop-min_[% KOHA_VERSION %].js"></script> |
20 |
<script type="text/javascript" src="[% interface %]/lib/yui/dragdrop/dragdrop-min_[% KOHA_VERSION %].js"></script> |
Lines 91-97
fieldset.various li {
Link Here
|
91 |
} |
90 |
} |
92 |
|
91 |
|
93 |
</style> |
92 |
</style> |
94 |
[% END %] |
|
|
95 |
<script type="text/javascript"> |
93 |
<script type="text/javascript"> |
96 |
//<![CDATA[ |
94 |
//<![CDATA[ |
97 |
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true); |
95 |
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true); |
Lines 154-457
function submitForm(form) {
Link Here
|
154 |
[% INCLUDE 'acquisitions-search.inc' %] |
152 |
[% INCLUDE 'acquisitions-search.inc' %] |
155 |
|
153 |
|
156 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
154 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
157 |
[% IF ( grouping ) %] |
155 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> |
158 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket groups</a> › Add basket group for [% booksellername |html %] |
156 |
› |
159 |
[% ELSE %] |
157 |
<a href="/cgi-bin/koha/acqui/basketgroups.pl?booksellerid=[% booksellerid %]">Basket groups</a> |
160 |
[% IF (booksellerid) %] |
158 |
› |
161 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › |
159 |
Add basket group for [% booksellername |html %] |
162 |
[% END %] |
|
|
163 |
Basket groups |
164 |
[% END %] |
165 |
</div> |
160 |
</div> |
166 |
|
161 |
|
167 |
<div id="doc3" class="yui-t2"> |
162 |
<div id="doc3" class="yui-t2"> |
168 |
<div id="bd"> |
163 |
<div id="bd"> |
169 |
<div id="yui-main"> |
164 |
<div id="yui-main"> |
170 |
<div class="yui-b"> |
165 |
<div class="yui-b"> |
171 |
[% IF ( grouping ) %] |
166 |
[% IF (closedbg) %] |
172 |
[% IF (closedbg) %] |
167 |
<div id="toolbar" class="btn-toolbar"> |
173 |
<div id="toolbar" class="btn-toolbar"> |
168 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div> |
174 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div> |
169 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div> |
175 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div> |
170 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div> |
176 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div> |
171 |
<div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div> |
177 |
<div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div> |
172 |
</div> |
|
|
173 |
[% END %] |
174 |
[% IF (name && closedbg) %] |
175 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
176 |
[% ELSIF (name) %] |
177 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
178 |
[% ELSE %] |
179 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
180 |
[% END %] |
181 |
<div id="basketgroupcolumns" class="yui-g"> |
182 |
[% UNLESS (closedbg) %] |
183 |
<div class="yui-u"> |
184 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
185 |
<div id="groups"> |
186 |
<fieldset class="brief"> |
187 |
<div class="workarea_alt" > |
188 |
<h3>Ungrouped baskets</h3> |
189 |
<ul id="ungrouped" class="draglist_alt"> |
190 |
[% IF ( baskets ) %] |
191 |
[% FOREACH basket IN baskets %] |
192 |
<li class="ungrouped" id="b-[% basket.basketno %]" > |
193 |
<a href="basket.pl?basketno=[% basket.basketno %]"> |
194 |
[% IF ( basket.basketname ) %] |
195 |
[% basket.basketname %] |
196 |
[% ELSE %] |
197 |
No name, basketnumber: [% basket.basketno %] |
198 |
[% END %] |
199 |
</a>, <br /> |
200 |
Total: [% basket.total %] |
201 |
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" /> |
202 |
</li> |
203 |
[% END %] |
204 |
[% END %] |
205 |
</ul> |
206 |
</div> |
207 |
</fieldset> |
208 |
</div> |
209 |
</form> |
178 |
</div> |
210 |
</div> |
179 |
[% END %] |
211 |
[% END %] |
180 |
[% IF (name && closedbg) %] |
212 |
<div class="yui-u first"> |
181 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
213 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
182 |
[% ELSIF (name) %] |
214 |
<fieldset id="various" class="brief"> |
183 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
215 |
<ol> |
184 |
[% ELSE %] |
216 |
[% UNLESS (closedbg) %] |
185 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
217 |
<li> |
186 |
[% END %] |
218 |
<label for="basketgroupname">Basket group name:</label> |
187 |
<div id="basketgroupcolumns" class="yui-g"> |
219 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
188 |
[% UNLESS (closedbg) %] |
220 |
</li> |
189 |
<div class="yui-u"> |
221 |
[% ELSE %] |
190 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
222 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
191 |
<div id="groups"> |
223 |
[% END %] |
192 |
<fieldset class="brief"> |
224 |
<li> |
193 |
<div class="workarea_alt" > |
|
|
194 |
<h3>Ungrouped baskets</h3> |
195 |
<ul id="ungrouped" class="draglist_alt"> |
196 |
[% IF ( baskets ) %] |
197 |
[% FOREACH basket IN baskets %] |
198 |
<li class="ungrouped" id="b-[% basket.basketno %]" > |
199 |
<a href="basket.pl?basketno=[% basket.basketno %]"> |
200 |
[% IF ( basket.basketname ) %] |
201 |
[% basket.basketname %] |
202 |
[% ELSE %] |
203 |
No name, basketnumber: [% basket.basketno %] |
204 |
[% END %] |
205 |
</a>, <br /> |
206 |
Total: [% basket.total %] |
207 |
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" /> |
208 |
</li> |
209 |
[% END %] |
210 |
[% END %] |
211 |
</ul> |
212 |
</div> |
213 |
</fieldset> |
214 |
</div> |
215 |
</form> |
216 |
</div> |
217 |
[% END %] |
218 |
<div class="yui-u first"> |
219 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
220 |
<fieldset id="various" class="brief"> |
221 |
<ol> |
222 |
[% UNLESS (closedbg) %] |
225 |
[% UNLESS (closedbg) %] |
223 |
<li> |
226 |
<label for="billingplace">Billing place:</label> |
224 |
<label for="basketgroupname">Basket group name:</label> |
227 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
225 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
228 |
<option value="">--</option> |
226 |
</li> |
229 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %] |
|
|
230 |
</select> |
227 |
[% ELSE %] |
231 |
[% ELSE %] |
228 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
232 |
<span class="label">Billing place:</span> |
|
|
233 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %] |
229 |
[% END %] |
234 |
[% END %] |
|
|
235 |
</li> |
236 |
[% UNLESS (closedbg) %] |
230 |
<li> |
237 |
<li> |
231 |
[% UNLESS (closedbg) %] |
238 |
<label for="deliveryplace">Delivery place:</label> |
232 |
<label for="billingplace">Billing place:</label> |
239 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
233 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
240 |
<option value="">--</option> |
234 |
<option value="">--</option> |
241 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %] |
235 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %] |
242 |
<select> |
236 |
</select> |
|
|
237 |
[% ELSE %] |
238 |
<span class="label">Billing place:</span> |
239 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %] |
240 |
[% END %] |
241 |
</li> |
243 |
</li> |
242 |
[% UNLESS (closedbg) %] |
244 |
<li><p>or</p></li> |
243 |
<li> |
245 |
<li> |
244 |
<label for="deliveryplace">Delivery place:</label> |
246 |
<label for="freedeliveryplace">Delivery place:</label> |
245 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
247 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea> |
246 |
<option value="">--</option> |
248 |
</li> |
247 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %] |
249 |
[% ELSE %] |
248 |
<select> |
|
|
249 |
</li> |
250 |
<li><p>or</p></li> |
251 |
<li> |
252 |
<label for="freedeliveryplace">Delivery place:</label> |
253 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea> |
254 |
</li> |
255 |
[% ELSE %] |
256 |
<li> |
257 |
<span class="label">Delivery place:</span> |
258 |
[% IF (freedeliveryplace) %] |
259 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
260 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
261 |
[% ELSE %] |
262 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %] |
263 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
264 |
[% END %] |
265 |
</li> |
266 |
[% END %] |
267 |
<li> |
250 |
<li> |
268 |
[% UNLESS (closedbg) %] |
251 |
<span class="label">Delivery place:</span> |
269 |
<label for="deliverycomment">Delivery comment:</label> |
252 |
[% IF (freedeliveryplace) %] |
270 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
253 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
|
|
254 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
271 |
[% ELSE %] |
255 |
[% ELSE %] |
272 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
256 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %] |
273 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
257 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
274 |
[% END %] |
258 |
[% END %] |
275 |
</li> |
259 |
</li> |
276 |
<li> |
260 |
[% END %] |
277 |
<span class="label">Baskets in this group:</span> |
261 |
<li> |
278 |
[% UNLESS (closedbg) %] |
262 |
[% UNLESS (closedbg) %] |
279 |
<ul class="draglist" id="bg"> |
263 |
<label for="deliverycomment">Delivery comment:</label> |
280 |
[% ELSE %] |
264 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
281 |
<ul> |
265 |
[% ELSE %] |
282 |
[% END %] |
266 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
283 |
[% FOREACH selectedbasket IN selectedbaskets %] |
267 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
284 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
268 |
[% END %] |
285 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
|
|
286 |
[% IF ( selectedbasket.basketname ) %] |
287 |
[% selectedbasket.basketname %] |
288 |
[% ELSE %] |
289 |
No name, basketnumber: [% selectedbasket.basketno %] |
290 |
[% END %] |
291 |
</a>, <br /> |
292 |
Total: [% selectedbasket.total %] |
293 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
294 |
</li> |
295 |
[% END %] |
296 |
</ul> |
297 |
</li> |
269 |
</li> |
|
|
270 |
<li> |
271 |
<span class="label">Baskets in this group:</span> |
298 |
[% UNLESS (closedbg) %] |
272 |
[% UNLESS (closedbg) %] |
299 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
273 |
<ul class="draglist" id="bg"> |
300 |
[% ELSE %] |
274 |
[% ELSE %] |
301 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
275 |
<ul> |
302 |
[% END %] |
276 |
[% END %] |
303 |
</ol> |
277 |
[% FOREACH selectedbasket IN selectedbaskets %] |
304 |
</fieldset> |
278 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
305 |
[% UNLESS (closedbg) %] |
279 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
306 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
280 |
[% IF ( selectedbasket.basketname ) %] |
307 |
[% IF ( basketgroupid ) %] |
281 |
[% selectedbasket.basketname %] |
308 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
282 |
[% ELSE %] |
|
|
283 |
No name, basketnumber: [% selectedbasket.basketno %] |
284 |
[% END %] |
285 |
</a>, <br /> |
286 |
Total: [% selectedbasket.total %] |
287 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
288 |
</li> |
289 |
[% END %] |
290 |
</ul> |
291 |
</li> |
292 |
[% UNLESS (closedbg) %] |
293 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
294 |
[% ELSE %] |
295 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
309 |
[% END %] |
296 |
[% END %] |
310 |
<input type="hidden" name="op" value="attachbasket" /> |
297 |
</ol> |
311 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
298 |
</fieldset> |
312 |
</fieldset> |
299 |
[% UNLESS (closedbg) %] |
313 |
[% END %] |
300 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
314 |
</form> |
301 |
[% IF ( basketgroupid ) %] |
315 |
</div> |
302 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
|
|
303 |
[% END %] |
304 |
<input type="hidden" name="op" value="attachbasket" /> |
305 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
306 |
</fieldset> |
307 |
[% END %] |
308 |
</form> |
316 |
</div> |
309 |
</div> |
317 |
[% ELSE %] |
310 |
</div> |
318 |
[% IF booksellerid %] |
|
|
319 |
<div id="toolbar" class="btn-toolbar"> |
320 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a></div> |
321 |
</div> |
322 |
[% END %] |
323 |
|
324 |
[% FOREACH bookseller IN booksellers %] |
325 |
[% IF bookseller.basketgroups.size > 0 %] |
326 |
<h1>Basket groups for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name |html %]</a></h1> |
327 |
<div class="basket_groups toptabs"> |
328 |
<ul class="ui-tabs-nav"> |
329 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened[% bookseller.id %]">Open</a></li> |
330 |
[% ELSE%]<li><a href="#opened[% bookseller.id %]">Open</a></li>[% END %] |
331 |
[% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed[% bookseller.id %]">Closed</a></li> |
332 |
[% ELSE %]<li><a href="#closed[% bookseller.id %]">Closed</a></li>[% END %] |
333 |
</ul> |
334 |
<div id="opened[% bookseller.id %]"> |
335 |
<table id="basket_group_opened"> |
336 |
<thead> |
337 |
<tr> |
338 |
<th>Search name</th> |
339 |
<th>Search no.</th> |
340 |
<th>Search billing place</th> |
341 |
<th>Search delivery place</th> |
342 |
<th>Search no. of baskets</th> |
343 |
<th>Search no. of ordered titles</th> |
344 |
<th>Search no. of received titles</th> |
345 |
<th></th> |
346 |
</tr> |
347 |
<tr> |
348 |
<th>Name</th> |
349 |
<th>No.</th> |
350 |
<th>Billing place</th> |
351 |
<th>Delivery place</th> |
352 |
<th>No. of baskets</th> |
353 |
<th>No. of ordered titles</th> |
354 |
<th>No. of received titles</th> |
355 |
<th>Action</th> |
356 |
</tr> |
357 |
</thead> |
358 |
<tbody> |
359 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
360 |
[% UNLESS ( basketgroup.closed ) %] |
361 |
<tr> |
362 |
<td> |
363 |
[% IF ( basketgroup.name ) %] |
364 |
[% basketgroup.name %] |
365 |
[% ELSE %] |
366 |
Basket group no. [% basketgroup.id %] |
367 |
[% END %] |
368 |
</td> |
369 |
<td>[% basketgroup.id %]</td> |
370 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
371 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
372 |
<td>[% basketgroup.basketsqty %]</td> |
373 |
<td>[% basketgroup.ordered_titles_count %]</td> |
374 |
<td>[% basketgroup.received_titles_count %]</td> |
375 |
<td> |
376 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" /> |
377 |
<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> |
378 |
[% UNLESS basketgroup.basketsqty %] |
379 |
<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> |
380 |
[% END %] |
381 |
</td> |
382 |
</tr> |
383 |
[% END %] |
384 |
[% END %] |
385 |
</tbody> |
386 |
</table> |
387 |
</div> |
388 |
<div id="closed[% bookseller.id %]"> |
389 |
<table class="basket_group_closed"> |
390 |
<thead> |
391 |
<tr> |
392 |
<th>Search name</th> |
393 |
<th>Search no.</th> |
394 |
<th>Search date closed</th> |
395 |
<th>Search billing place</th> |
396 |
<th>Search delivery place</th> |
397 |
<th>Search no. of baskets</th> |
398 |
<th>Search no. of ordered titles</th> |
399 |
<th>Search no. of received titles</th> |
400 |
<th></th> |
401 |
</tr> |
402 |
<tr> |
403 |
<th>Name</th> |
404 |
<th>No.</th> |
405 |
<th>Date closed</th> |
406 |
<th>Billing place</th> |
407 |
<th>Delivery place</th> |
408 |
<th>No. of baskets</th> |
409 |
<th>No. of ordered titles</th> |
410 |
<th>No. of received titles</th> |
411 |
<th>Action</th> |
412 |
</tr> |
413 |
</thead> |
414 |
<tbody> |
415 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
416 |
[% IF ( basketgroup.closed ) %] |
417 |
<tr> |
418 |
<td> |
419 |
[% IF ( basketgroup.name ) %] |
420 |
[% basketgroup.name %] |
421 |
[% ELSE %] |
422 |
Basket group no. [% basketgroup.id %] |
423 |
[% END %] |
424 |
</td> |
425 |
<td>[% basketgroup.id %]</td> |
426 |
<td>[% basketgroup.closeddate |$KohaDates %]</td> |
427 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
428 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
429 |
<td>[% basketgroup.basketsqty %]</td> |
430 |
<td>[% basketgroup.ordered_titles_count %]</td> |
431 |
<td>[% basketgroup.received_titles_count %]</td> |
432 |
<td> |
433 |
<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> |
434 |
<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> |
435 |
<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="Export as PDF" /></form> |
436 |
<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> |
437 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Generate EDIFACT order" /></form> |
438 |
</td> |
439 |
</tr> |
440 |
[% END %] |
441 |
[% END %] |
442 |
</tbody> |
443 |
</table> |
444 |
</div> |
445 |
</div> |
446 |
[% END %] |
447 |
[% END %] |
448 |
[% END %] |
449 |
</div> |
311 |
</div> |
450 |
</div> |
312 |
</div> |
451 |
<div class="yui-b"> |
313 |
<div class="yui-b"> |
452 |
[% IF ( booksellerid ) %] |
314 |
[% INCLUDE 'vendor-menu.inc' %] |
453 |
[% INCLUDE 'vendor-menu.inc' %] |
|
|
454 |
[% END %] |
455 |
[% INCLUDE 'acquisitions-menu.inc' %] |
315 |
[% INCLUDE 'acquisitions-menu.inc' %] |
456 |
</div> |
316 |
</div> |
457 |
</div> |
317 |
</div> |