From 723ac5793b36480be8027c4b5045b5e1cb09a910 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 25 Sep 2023 12:46:08 +0000 Subject: [PATCH] Bug 34865: Use OPACURLOpenInNewWindow for library URLs If a library has a URL defined it is shown in the OPAC under the libraries page. This patch updates the template so that the link respects the OPACURLOpenInNewWindow system preference. To test, apply the patch and go to Administration -> Libraries and edit a library if necessary so that it has a URL defined. In the OPAC, go to the Libraries page. Test that the library link respects whichever setting you have for OPACURLOpenInNewWindow Signed-off-by: Kelly McElligott --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt index 4a5fef45c7..508af182e0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt @@ -52,7 +52,11 @@

Fax: [% library.branchfax | html %]

[% END %] [% IF ( library.branchurl ) %] -

[% library.branchurl | html %]

+ [% IF ( Koha.Preference('OPACURLOpenInNewWindow') ) %] +

[% library.branchurl | html %]

+ [% ELSE %] +

[% library.branchurl | html %]

+ [% END %] [% END %] [% END %] -- 2.30.2