Bugzilla – Attachment 55492 Details for
Bug 16274
Make the selfregistration branchcode selection configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16274: Add the new pref PatronSelfRegistrationLibraryList
Bug-16274-Add-the-new-pref-PatronSelfRegistrationL.patch (text/plain), 3.61 KB, created by
Jonathan Druart
on 2016-09-12 14:50:15 UTC
(
hide
)
Description:
Bug 16274: Add the new pref PatronSelfRegistrationLibraryList
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-09-12 14:50:15 UTC
Size:
3.61 KB
patch
obsolete
>From a56e3993db1495b5264d97cb1356e026d97b0af6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 23 Apr 2016 16:17:06 +0100 >Subject: [PATCH] Bug 16274: Add the new pref PatronSelfRegistrationLibraryList > >Sponsored-by: BULAC - http://www.bulac.fr/ >Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > installer/data/mysql/atomicupdate/bug_16274.sql | 1 + > installer/data/mysql/sysprefs.sql | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 5 +++++ > 3 files changed, 7 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_16274.sql > >diff --git a/installer/data/mysql/atomicupdate/bug_16274.sql b/installer/data/mysql/atomicupdate/bug_16274.sql >new file mode 100644 >index 0000000..ce283d5 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_16274.sql >@@ -0,0 +1 @@ >+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('PatronSelfRegistrationLibraryList', '', 'Only display libraries listed. If empty, all libraries are displayed.', NULL, 'Free'); >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index de6456c..b0346dc 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -389,6 +389,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('PatronSelfRegistrationDefaultCategory','','','A patron registered via the OPAC will receive a borrower category code set in this system preference.','free'), > ('PatronSelfRegistrationEmailMustBeUnique', '0', 'If set, the field borrowers.email will be considered as a unique field on self registering', NULL, 'YesNo'), > ('PatronSelfRegistrationExpireTemporaryAccountsDelay','0',NULL,'If PatronSelfRegistrationDefaultCategory is enabled, this system preference controls how long a patron can have a temporary status before the account is deleted automatically. It is an integer value representing a number of days to wait before deleting a temporary patron account. Setting it to 0 disables the deleting of temporary accounts.','Integer'), >+('PatronSelfRegistrationLibraryList','',NULL,'Only display libraries listed. If empty, all libraries are displayed.','Free'), > ('PatronSelfRegistrationVerifyByEmail','0',NULL,'If enabled, any patron attempting to register themselves via the OPAC will be required to verify themselves via email to activate his or her account.','YesNo'), > ('PatronsPerPage','20','20','Number of Patrons Per Page displayed by default','Integer'), > ('EnablePayPalOpacPayments', '0', NULL , 'Enables the ability to pay fees and fines from the OPAC via PayPal', 'YesNo' ), >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 fba45a4..a565f57 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 >@@ -746,6 +746,11 @@ OPAC: > yes: "Consider" > no: "Do not consider" > - "patron's email (borrowers.email) as unique on self registering. An email won't be accepted if it already exists in the database." >+ - >+ - "Enable the self registration for the following libraries:" >+ - pref: PatronSelfRegistrationLibraryList >+ - (separate branchcode with |). >+ - If empty, all libraries will be listed. > Advanced Search Options: > - > - Show search options >-- >2.8.1
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 16274
:
50610
|
50611
|
51179
|
51180
|
54382
|
54383
| 55492 |
55493