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 <kelly@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
8a45084b7f
commit
92ef068232
1 changed files with 5 additions and 1 deletions
|
@ -52,8 +52,12 @@
|
|||
<p class="branchfax">Fax: <span property="faxNumber">[% library.branchfax | html %]</span></p>
|
||||
[% END %]
|
||||
[% IF ( library.branchurl ) %]
|
||||
[% IF ( Koha.Preference('OPACURLOpenInNewWindow') ) %]
|
||||
<p class="branchurl"><a href="[% library.branchurl | url %]" target="_blank" rel="noreferrer" property="url">[% library.branchurl | html %]</a></p>
|
||||
[% ELSE %]
|
||||
<p class="branchurl"><a href="[% library.branchurl | url %]" property="url">[% library.branchurl | html %]</a></p>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
<div class="main">
|
||||
|
|
Loading…
Reference in a new issue