Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form in OPAC - part 2

Add 'OPACSuggestionMandatoryFields' syspref definition plus
an atomic DB update for the new preference.

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>
This commit is contained in:
Jacek Ablewicz 2016-08-05 11:01:25 +02:00 committed by Kyle M Hall
parent c1d75885a6
commit 219c0eac8c
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1 @@
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OPACSuggestionMandatoryFields','title','','Define the mandatory fields for a patron purchase suggestions made via OPAC.','multiple');

View file

@ -553,6 +553,21 @@ OPAC:
no: "Don't allow"
yes: Allow
- patrons to select library when making a purchase suggestion
-
- "Fields that should be mandatory for patron purchase suggestions:"
- pref: OPACSuggestionMandatoryFields
multiple:
title: Title
author: Author
copyrightdate: Copyright or publication date
isbn: ISBN, ISSN or other standard number
publishercode: Publisher name
collectiontitle: Collection title
place: Publication place
itemtype: Item type
patronreason: Patron reason
note: Note
- "<br />Note: if none of the above options are selected, 'Title' field would be mandatory anyway, by default."
-
- pref: OpacHiddenItems
type: textarea