Bug 9543 - Show patrons messaging subscription on holds notification not already...
authorNick Clemens <nick@bywatersolutions.com>
Wed, 6 Apr 2016 00:51:15 +0000 (00:51 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Fri, 3 Jun 2016 08:47:44 +0000 (08:47 +0000)
Same plan as previous patch, but this one should show the message for a
hold not already waiting but not requiring a transfer (hold-found2 alert
        box)

Signed-off-by: Chris Kirby <christopherlawrencekirby@gmail.com>

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 17a20d4..ec5f99b 100644 (file)
@@ -409,6 +409,19 @@ $(document).ready(function () {
                        [% borcity %] [% borzip %]</li>
             [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
             [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
+            [% UNLESS ( transfertodo) %]
+                [% IF ( bormessagepref ) %]
+                   <li>Patron is notified:
+                   [% FOREACH key IN bormessagepref.keys %]
+                       [% IF ( key == 'email' ) %] Email. [% END %]
+                       [% IF ( key == 'phone' ) %] Phone. [% END %]
+                       [% IF ( key == 'sms' ) %] SMS. [% END %]
+                   [% END %]
+                   </li>
+               [% ELSE %]
+                   <li>Patron is not notified</li>
+               [% END %]
+            [% END %]
 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
         </ul>