Bugzilla – Attachment 108430 Details for
Bug 23420
Add "SuggestionsUnwantedFields" to hide fields from the suggestions form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23420: (QA follow-up) fix DB update and add syspref.sql
Bug-23420-QA-follow-up-fix-DB-update-and-add-syspr.patch (text/plain), 3.32 KB, created by
Lucas Gass
on 2020-08-18 01:36:08 UTC
(
hide
)
Description:
Bug 23420: (QA follow-up) fix DB update and add syspref.sql
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2020-08-18 01:36:08 UTC
Size:
3.32 KB
patch
obsolete
>From 33b73d3718eecf30017d781a3153c85a46acedce Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 18 Aug 2020 01:34:26 +0000 >Subject: [PATCH] Bug 23420: (QA follow-up) fix DB update and add syspref.sql > >--- > .../bug_23420_add_OPACSuggestionUnwantedFields_syspref.perl | 2 +- > installer/data/mysql/sysprefs.sql | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 1 + > 3 files changed, 3 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_23420_add_OPACSuggestionUnwantedFields_syspref.perl b/installer/data/mysql/atomicupdate/bug_23420_add_OPACSuggestionUnwantedFields_syspref.perl >index 9d6059492e..6d1401320e 100644 >--- a/installer/data/mysql/atomicupdate/bug_23420_add_OPACSuggestionUnwantedFields_syspref.perl >+++ b/installer/data/mysql/atomicupdate/bug_23420_add_OPACSuggestionUnwantedFields_syspref.perl >@@ -1,7 +1,7 @@ > $DBversion = 'XXX'; # will be replaced by the RM > if ( CheckVersion($DBversion) ) { > $dbh->do(q{ >- INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OPACSuggestionUnwantedFields','title','','Define the hidden fields for a patron purchase suggestions made via OPAC.','multiple'); >+ INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OPACSuggestionUnwantedFields','', NULL,'Define the hidden fields for a patron purchase suggestions made via OPAC.','multiple'); > }); > > NewVersion($DBversion, 23420, "Allow configuration of hidden fields on the suggestion form in OPAC"); >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index d1efc4b42c..7f9b9119fe 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -446,6 +446,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'), > ('OpacStarRatings','all','disable|all|details',NULL,'Choice'), > ('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo'), >+('OPACSuggestionUnwantedFields',NULL,'','Define the hidden fields for a patron purchase suggestions made via OPAC.','multiple'), > ('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'), > ('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'), > ('OpacSuppressionMessage','','Display this message on the redirect page for suppressed biblios','70|10','Textarea'), >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 ec0dccf548..854d34d401 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 >@@ -656,6 +656,7 @@ OPAC: > branch: Library or branch > patronreason: Patron reason > note: Note >+ - "<br />Note: Do not make OPACSuggestionMandatoryFields unwanted fields" > - > - pref: OpacHiddenItems > type: textarea >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23420
:
107662
|
107787
|
108426
|
108429
|
108430
|
109299
|
110414
|
110418
|
110419
|
110671
|
110688
|
110689
|
111254