Bug 13388: (follow-up) Remove display of email address
authorOwen Leonard <oleonard@myacpl.org>
Fri, 1 May 2020 12:06:03 +0000 (12:06 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 4 May 2020 08:11:15 +0000 (09:11 +0100)
Since the email address configured for a library may not be the email
address libraries want to use as a contact email address the email
should not be displayed by default.

This patch removes display of the email address. Libraries may choose to
add the information to the opac_info column, so there is already a
built-in alternative.

To test, apply the patch and view the detail page for a library in your
system which has an email address configured. The email address should
not display on the page.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt

index 8d9680c..caba1e9 100644 (file)
@@ -57,9 +57,6 @@
             [% IF ( library.branchfax ) %]
                 <p>Fax: <span property="faxNumber">[% library.branchfax | html %]</span></p>
             [% END %]
-            [% IF ( library.branchemail ) %]
-                <p>Email: <a href="mailto:[% library.branchemail | url %]" property="email">[% library.branchemail | html %]</a></p>
-            [% END %]
             [% IF ( library.branchurl ) %]
                 <p><a href="[% library.branchurl | url %]" property="url">[% library.branchurl | html %]</a></p>
             [% END %]