Bug 11429: Manage display for basketgroup without name
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 17 Jan 2014 15:31:54 +0000 (16:31 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 23 Jan 2014 16:34:24 +0000 (16:34 +0000)
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>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt

index ebfa553..da78b7b 100644 (file)
                         <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>
                                   [% basketgroup.name %] (closed)
                               [% END %]
                           [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
-                            [%- IF basketgroup.name -%]
+                            [%- IF basketgroup.id -%]
                                 [% basketgroup.name %]
                             [%- ELSE -%]
                                 No group