From 219c0eac8cb89008219947a3ff0f78a1a3f5f407 Mon Sep 17 00:00:00 2001 From: Jacek Ablewicz Date: Fri, 5 Aug 2016 11:01:25 +0200 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- ...-add_OPACSuggestionMandatoryFields_syspref.sql | 1 + .../prog/en/modules/admin/preferences/opac.pref | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql diff --git a/installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql b/installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql new file mode 100644 index 0000000000..eb0211a0ca --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql @@ -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'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref index 1ca43db2a7..a328bd73b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -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 + - "
Note: if none of the above options are selected, 'Title' field would be mandatory anyway, by default." - - pref: OpacHiddenItems type: textarea -- 2.20.1