Bug 23420: Add OPACSuggestionUnwantedFields system pref
commitb7d31ef16dd25e025a72397b8eaf2a218f21e2f7
authorLucas Gass <lucas@bywatersolutions.com>
Fri, 18 Sep 2020 22:17:58 +0000 (18 22:17 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Oct 2020 10:22:01 +0000 (9 12:22 +0200)
tree2fdb475d1e3f0f40e963b50c85700fd01d39f500
parente9c799e94239f1e533eb075bc0a347138b32ae75
Bug 23420: Add OPACSuggestionUnwantedFields system pref

To test:
-Apply patch
-Check OPACSuggestionUnwantedFields
-Check some fields as unwanted
-Go to the OPAC suggestion page and make sure these correct fields are hidden
-Turn on the system preference AllowPurchaseSuggestionBranchChoice to see the branch choice on the form
-Make sure you can correctly hide this one and still submit the purchase suggestion for without error.
-Go through each option and make sure it hides properly.

Note: You will only see the patron reason field when there are authorised values in the OPAC_SUG category

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_23420_add_OPACSuggestionUnwantedFields_syspref.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt
opac/opac-suggestions.pl