[Koha-bugs] [Bug 10848] Allow configuration of mandatory/required fields on the suggestion form in OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jun 8 12:58:56 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10848

--- Comment #1 from Jacek Ablewicz <ablewicz at gmail.com> ---
Created attachment 28721
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28721&action=edit
Bug 10848 - Allow configuration of mandatory/required fields on the suggestion
form in OPAC #1/2

(part #1: changes in opac-suggestions.* script + bootstrap template)

This patch adds a configuration option which allows to define which
fields (apart from the title) should be mandatory for a patron
purchase suggestion form in OPAC.
Supported fields that are configurable as mandatory/not mandatory
for suggestions made via OPAC are: author|copyrightdate|isbn|
publishercode|place|itemtype|patronreason.

Note: this patch only applies to OPAC bootstrap theme.

To test:
1/ Apply patch.
2/ Without 'OPACSuggestionMandatoryFields' option set,
OPAC suggestion form should work as previously ("Only the title
is required").
3/ Set 'OPACSuggestionMandatoryFields' syspref to (e.g.)
'author|isbn|itemtype'
4/ Note that suggestion form in OPAC now requires 3 more fields
to be entered and/or choosen (they should be labeled in red), and
the user instruction changes slightly ("Form fields labeled in red
are mandatory" ..).
5/ Try to submit some suggestions: for each field which is configured
as mandatory, but is not filled with anything, there should be
and extra message displayed regarding this field.
6/ Unless all mandatory fields are filled with something,
form submission should not be possible.
7/ Repeat test 3-6 for all supported field names configurable
as mandatory.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list