Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patron self registration in OPAC #8

Open
paddyfitz opened this issue Oct 31, 2011 · 3 comments
Open

Patron self registration in OPAC #8

paddyfitz opened this issue Oct 31, 2011 · 3 comments
Assignees

Comments

@paddyfitz
Copy link

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

@ghost ghost assigned paddyfitz Oct 31, 2011
@paddyfitz
Copy link
Author

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
Copy link
Author

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

SelfRegister.pm
- line 132 Hard coded default password to be changed by the user on first login
- line 148 Set to id of entry in permission.grp_tree to specify default permission group
- line 160 Username and password of a user with permission to create new patrons. Required to acquire session auth token
- line 175 Hard coded default password set in line 132
- line 190 Email address and name of the Library to be used when sending a confirmation to the new user
- line 195 To and from email addresses to be used when alerting the library to the new submission

self_reg_form.tt2
- lines 3-6, 157 Hard coded server address
- line 265 org_unit ID for default joining branch

self_reg_confirm.tt2
- lines 3-6, 36 Hard coded server address

@colinsc
Copy link

colinsc commented Sep 10, 2012

Merged into sedartest branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants