Bug 11429: Manage display for basketgroup without name
If a basketgroup does not have a name, the link was ' (closed)' Now it is "Basket group no. ID (closed)". This is used on the acqui/basketgroup.pl?booksellerid=XX page Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests and QA script. Adds a link to the basket group page on the basket summary page. The link only appears when the basket group is closed. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
eba01fcafb
commit
c4998fc904
|
|
@ -345,6 +345,9 @@
|
|||
<ol>
|
||||
<li>
|
||||
<span class="label">Basket group:</span>
|
||||
[% IF basketgroup.id and not basketgroup.name %]
|
||||
[% SET basketgroup.name = "Basket group no. " _ basketgroup.id %]
|
||||
[% END %]
|
||||
[% IF basketgroup.closed %]
|
||||
[% IF ( CAN_user_acquisition_group_manage ) %]
|
||||
<a href="basketgroup.pl?op=add&booksellerid=[% booksellerid %]&basketgroupid=[% basketgroup.id %]" title="basketgroup">[% basketgroup.name %] (closed)</a>
|
||||
|
|
@ -352,7 +355,7 @@
|
|||
[% basketgroup.name %] (closed)
|
||||
[% END %]
|
||||
[% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
|
||||
[%- IF basketgroup.name -%]
|
||||
[%- IF basketgroup.id -%]
|
||||
[% basketgroup.name %]
|
||||
[%- ELSE -%]
|
||||
No group
|
||||
|
|
|
|||
Loading…
Reference in New Issue