diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
index ec5f99bccf..f092ea83ad 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
@@ -6,6 +6,20 @@
[% USE AuthorisedValues %]
[% USE ColumnsSettings %]
+[% BLOCK display_bormessagepref %]
+ [% IF ( bormessagepref ) %]
+
Patron notification:
+ [% FOREACH mtt IN bormessagepref.keys %]
+ [% IF ( mtt == 'email' ) %] Email. [% END %]
+ [% IF ( mtt == 'phone' ) %] Phone. [% END %]
+ [% IF ( mtt == 'sms' ) %] SMS. [% END %]
+ [% END %]
+
+ [% ELSE %]
+ Patron is not notified.
+ [% END %]
+[% END %]
+
[% INCLUDE 'doc-head-open.inc' %]
Koha › Circulation › Check in [% title |html %]
@@ -238,17 +252,7 @@ $(document).ready(function () {
[% borcity %] [% borzip %]
[% IF ( borphone ) %] [% borphone %][% END %]
[% IF ( boremail ) %][% boremail %][% END %]
- [% IF ( bormessagepref ) %]
- Patron is notified:
- [% FOREACH key IN bormessagepref.keys %]
- [% IF ( key == 'email' ) %] Email. [% END %]
- [% IF ( key == 'phone' ) %] Phone. [% END %]
- [% IF ( key == 'sms' ) %] SMS. [% END %]
- [% END %]
-
- [% ELSE %]
- Patron is not notified
- [% END %]
+ [% INCLUDE display_bormessagepref %]
[% IF ( debarred ) %]Patron is RESTRICTED[% END %]
[% IF ( gonenoaddress ) %]Patron's address is in doubt[% END %]
[% IF ( transfertodo ) %]
@@ -410,17 +414,7 @@ $(document).ready(function () {
[% IF ( borphone ) %][% borphone %][% END %]
[% IF ( boremail ) %][% IF ( transfertodo ) %][% boremail %][% ELSE %][% boremail %][% END %][% END %]
[% UNLESS ( transfertodo) %]
- [% IF ( bormessagepref ) %]
- Patron is notified:
- [% FOREACH key IN bormessagepref.keys %]
- [% IF ( key == 'email' ) %] Email. [% END %]
- [% IF ( key == 'phone' ) %] Phone. [% END %]
- [% IF ( key == 'sms' ) %] SMS. [% END %]
- [% END %]
-
- [% ELSE %]
- Patron is not notified
- [% END %]
+ [% INCLUDE display_bormessagepref %]
[% END %]
[% IF ( debarred ) %]Patron is RESTRICTED[% END %]
[% IF ( gonenoaddress ) %]Patron's address is in doubt[% END %]