Bugzilla – Attachment 15911 Details for
Bug 9756
Patron self registration missing the system preference PatronSelfRegistrationAdditionalInstructions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9756 - Patron self registration missing the system preference PatronSelfRegistrationAdditionalInstructions
Bug-9756---Patron-self-registration-missing-the-sy.patch (text/plain), 3.71 KB, created by
Kyle M Hall (khall)
on 2013-03-06 16:34:10 UTC
(
hide
)
Description:
Bug 9756 - Patron self registration missing the system preference PatronSelfRegistrationAdditionalInstructions
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-03-06 16:34:10 UTC
Size:
3.71 KB
patch
obsolete
>From 40600e54e47b7a65f5ce38f96f882ea3bc26edfb Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 6 Mar 2013 11:31:56 -0500 >Subject: [PATCH] Bug 9756 - Patron self registration missing the system preference PatronSelfRegistrationAdditionalInstructions > >The patron self registration system references a system preference >PatronSelfRegistrationAdditionalInstructions as a free text field >to add additional instructions for newly self registered patrons, >but the system preference in neither created in the database, >nor exposed via the staff interface. > >Test Plan: >1) Apply patch >2) Run updatedatabase.pl >3) Add some text to the new system preference PatronSelfRegistrationAdditionalInstructions >4) Enable opac self registrations and complete a self registration >5) Note the additional instructions you entered appear on the "registration complete" page >--- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 6 ++++++ > .../prog/en/modules/admin/preferences/opac.pref | 5 +++++ > 3 files changed, 12 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index ca9b6bd..fcf0e3e 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -416,3 +416,4 @@ INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('IntranetNumbersPreferPhrase','0', NULL, 'Control the use of phr operator in callnumber and standard number staff client searches', 'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UNIMARCField100Language', 'fre','UNIMARC field 100 default language',NULL,'short'); > INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('Persona',0,'Use Mozilla Persona for login','','YesNo'); >+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('PatronSelfRegistrationAdditionalInstructions','','A free text field to display additional instructions to newly self registered patrons.','','free'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 7e5e243..afa77ad 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6444,6 +6444,12 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion = "3.11.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('PatronSelfRegistrationAdditionalInstructions', '', NULL , 'A free text field to display additional instructions to newly self registered patrons.', 'free' );"); >+ print "Upgrade to $DBversion done (Bug 9756 - Patron self registration missing the system preference PatronSelfRegistrationAdditionalInstructions)\n"; >+ SetVersion($DBversion); >+} > > =head1 FUNCTIONS > >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 6d6672c..a074287 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 >@@ -580,3 +580,8 @@ OPAC: > - pref: PatronSelfRegistrationBorrowerUnwantedField > class: multi > - (separate columns with |) >+ - >+ - "Display the following additional instructions for patrons who self register via the OPAC ( HTML is allowed ):" >+ - pref: PatronSelfRegistrationAdditionalInstructions >+ type: textarea >+ class: html >-- >1.7.2.5
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 9756
:
15911
|
16050
|
16059