Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form...
authorJacek Ablewicz <abl@biblos.pk.edu.pl>
Fri, 5 Aug 2016 08:47:11 +0000 (10:47 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Sep 2016 16:00:50 +0000 (16:00 +0000)
commitc1d75885a6df4cc1317d3c0d95b59478613f28a8
treefca650dc4b3cdbbda19467a249e63f2aa05e7b01
parentd0f850b51a28afa6ae5ca41a54f43feea972c8d3
Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form in OPAC

This patch adds a configuration option which allows to define which
fields should be mandatory for a patron purchase suggestion form in OPAC.

Test plan:

1/ Apply patch.
2/ Play with the new OPACSuggestionMandatoryFields system preference
(select some fields as manadatory, select all, deselect all, try to
submit some suggestions with mandatory fields filled and/or not
filled etc.) to ensure that required fields (and only required fields)
are enforced in the browser to be filled.
3/ With all options deselected, 'Title' field should still be
mandatory (by default).

Signed-off-by: barbara johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt
opac/opac-suggestions.pl