@@ -, +, @@ form (register at smartform.cz or use "smartform" as the client ID) (eg. fill in "streetnumber|B_streetnumber") --- .../bug_17718-add_smartform_syspref.sql | 2 + installer/data/mysql/sysprefs.sql | 2 + .../en/includes/member-alt-address-style-de.inc | 44 +++++++++++++++++----- .../en/includes/member-alt-contact-style-de.inc | 36 +++++++++++++----- .../en/includes/member-main-address-style-de.inc | 24 ++++++++++++ .../prog/en/modules/admin/preferences/patrons.pref | 11 ++++++ .../prog/en/modules/members/memberentrygen.tt | 10 +++++ 7 files changed, 109 insertions(+), 20 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_17718-add_smartform_syspref.sql --- a/installer/data/mysql/atomicupdate/bug_17718-add_smartform_syspref.sql +++ a/installer/data/mysql/atomicupdate/bug_17718-add_smartform_syspref.sql @@ -0,0 +1,2 @@ +INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('SmartformEnable', '0', 'If ON, enable Smartform to simplify address entering during patron registration.', NULL, 'YesNo'); +INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('SmartformClientID', '', 'Smartform service client ID', '', 'Free'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -466,6 +466,8 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'), ('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'), ('SlipCSS','',NULL,'Slips CSS url.','free'), +('SmartformEnable', '0', NULL, 'If ON, enable Smartform service to simplify address entering during patron registration.', 'YesNo'), +('SmartformClientID', '', '', 'Smartform service client ID', 'Free'), ('SMSSendDriver','','','Sets which SMS::Send driver is used to send SMS messages.','free'), ('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'), ('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'), --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc @@ -1,3 +1,4 @@ +[% USE Koha %]
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-de.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-de.inc @@ -1,3 +1,4 @@ +[% USE Koha %] --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc @@ -1,3 +1,4 @@ +[% USE Koha %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref @@ -212,3 +212,14 @@ Patrons: yes: Do no: "Don't" - search the Norwegian national patron database after a local search result was found. + "Smartform service (Czech only)": + - + - pref: SmartformEnable + choices: + yes: Enable + no: Disable + - Smartform autocompletion of postal addresses. This service can be used to simplify patron registration. + - + - Communicate with the Smartform service using + - pref: SmartformClientID + - as the client ID. --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -5,6 +5,16 @@