Bug 21417: (QA follow-up) Display default EAN as such in admin display
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 27 Sep 2018 15:07:37 +0000 (16:07 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 9 Oct 2018 11:54:08 +0000 (11:54 +0000)
A branch value of null is interpreted as the default
Add text 'All libraries' to this case in the display
rather than blank so that its function is clear to the
user

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt

index fcf40de..28e5cbc 100644 (file)
         </tr>
         [% FOREACH ean IN eans %]
             <tr>
+                [% IF ean.branch %]
                 <td>[% ean.branch.branchname | html %]</td>
+                [% ELSE %]
+                <td>All libraries</td>
+                [% END %]
                 <td>[% ean.description | html %]</td>
                 <td>[% ean.ean | html %]</td>
                 <td>