]> git.koha-community.org Git - koha.git/commit
Bug 34075: Add DefaultAuthorityTab system preference
authorNick Clemens <nick@bywatersolutions.com>
Wed, 21 Jun 2023 12:41:21 +0000 (12:41 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Oct 2023 13:54:01 +0000 (10:54 -0300)
commit537132da7bec95958cc548a915733c1ff76cce14
tree43ede79a7e1384661eb1fc461de8b46d26f7bca3
parentf09c5e045e3c6c21bada86018d2b15ea04956677
Bug 34075: Add DefaultAuthorityTab system preference

This patch adds a new system preference, DefaultAuthorityTab.
When set, this will choose the default display on the authorities details
page.

To test:
1 - Apply patch, update database
2 - View an authority detail
3 - You should default to the 0XX or first tab
4 - Set DefaultAuthorityTab to a number that there is no tab for in your authority
5 - Reload and verify details page loads the first tba
6 - Set DefaultAuthorityTab to 1XX or another tab that exists in your record
7 - Reload the details and confirm the correct tab is selected

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/atomicupdate/bug_34075.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt