Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form...
authorJacek Ablewicz <abl@biblos.pk.edu.pl>
Fri, 5 Aug 2016 09:01:25 +0000 (11:01 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Sep 2016 16:00:50 +0000 (16:00 +0000)
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>
installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref

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 (file)
index 0000000..eb0211a
--- /dev/null
@@ -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');
index 1ca43db..a328bd7 100644 (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