Bug 9543: Separate MTT with commas
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 May 2016 15:29:01 +0000 (16:29 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Fri, 3 Jun 2016 08:47:48 +0000 (08:47 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

index f092ea8..0c4180c 100644 (file)
     [% IF ( bormessagepref ) %]
         <li>Patron notification:
             [% FOREACH mtt IN bormessagepref.keys %]
-                [% IF ( mtt == 'email' ) %] Email. [% END %]
-                [% IF ( mtt == 'phone' ) %] Phone. [% END %]
-                [% IF ( mtt == 'sms' ) %] SMS. [% END %]
+                [%~ IF ( mtt == 'email' ) %] Email[% END ~%]
+                [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%]
+                [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%]
+                [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
             [% END %]
         </li>
            [% ELSE %]