PTFS-Europe / SEDAR-Evergreen

Evergreen ILS
http://evergreen-ils.org/
GNU General Public License v2.0
3 stars 0 forks source link

Patron self registration in OPAC #8

Open paddyfitz opened 13 years ago

paddyfitz commented 13 years ago

Add the ability to allow patrons to self register from the OPAC

paddyfitz commented 12 years ago

Now on live server:

Changes made:

/etc/apache2/eg_vhost.conf At line 266 added lines

----------------------------------------------------------------------------------

SEDAR self registration form

----------------------------------------------------------------------------------

<Location /opac/self_registration> SetHandler perl-script PerlHandler OpenILS::WWW::SelfRegister::self_register Options +ExecCGI PerlSendHeader On allow from all

Force clients to use HTTPS

RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

/etc/apache2/sites-available/a_eg.conf At line 22 added lines: PerlChildInitHandler OpenILS::WWW::SelfRegister::child_init

/etc/apache2/startup.pl At line 11 added lines: use OpenILS::WWW::SelfRegister ('/openils/conf/opensrf_core.xml');

/usr/local/share/perl/5.10.1/OpenILS/Application/Actor.pm At line 714 added lines if (!$patron->mailing_address() and !$patron->billing_address()) { $new_patron->mailing_address($address->id()); $new_patron->billing_address($address->id()); $logger->info("setting mailing and billing addr to $current_id"); $new_patron->ischanged(1); }

Added new files: /openils/var/templates/self_registration/self_reg_form.tt2 /openils/var/templates/self_registration/self_reg_confirm.tt2 /openils/var/web/js/jquery.js /usr/local/share/perl/5.10.1/OpenILS/WWW/SelfRegister.pm

As opensrf user: osrf_ctl.sh -l -a restart_all sudo /etc/init.d/apache2 restart

paddyfitz commented 12 years ago

Hard coded values in SEDAR self registration branch (sedar_live_selfregistration):

SelfRegister.pm

self_reg_form.tt2

self_reg_confirm.tt2

colinsc commented 12 years ago

Merged into sedartest branch