The syspref OPACURLOpenInNewWindow is not working for URLs entered in Administration>Libraries>...>URL Links to the libraries homepages opens in same window, in spite of being external links. This bug affects both the library listing: https://bibliotekmellansjo.se/cgi-bin/koha/opac-library.pl and library names in catalogue records: https://bibliotekmellansjo.se/cgi-bin/koha/opac-detail.pl?biblionumber=443905
Created attachment 156165 [details] [review] 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
Created attachment 156228 [details] [review] 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>
Created attachment 156247 [details] [review] 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>
Pushed to master for 23.11. Nice work everyone, thanks!
Enhancement not pushed to 23.05.x In order to avoid behavior change in a stable version