]> git.koha-community.org Git - koha.git/commit
Bug 30873: Add system preference to hide libraries link in the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Fri, 28 Jun 2024 11:46:16 +0000 (11:46 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 2 Jul 2024 15:20:39 +0000 (17:20 +0200)
commit0d4ebe4170713f8c751b40107da7b45821535aa6
treed2ee3c7e303324c98697db17ed40cfc40e7258e9
parentb5f122696cc40aee33830cdf7ab1da20fa4e7b66
Bug 30873: Add system preference to hide libraries link in the OPAC

Some users would prefer that the libraries link not appear in the menu
of links under the OPAC's main search bar. This patch adds a preference
to do so.

The preference defaults to "On" since "On" is the current default
behavior.

To test, apply the patch and run the database update prcoess.

- In the OPAC, confirm that by default the "Libraries" link appears.
- In the staff interface, go to Administration -> System preferences ->
  OPACShowLibraries
- Set the preference to "Don't show"
- Return to the OPAC and confirm that the "Libraries" link isn't there.
- Try to navigate directly to /cgi-bin/koha/opac-library.pl. You should
  be redirected to a 404 page.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
installer/data/mysql/atomicupdate/bug_30873.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
opac/opac-library.pl