From: Bill Erickson Date: Tue, 6 Aug 2013 16:25:22 +0000 (-0400) Subject: LP1207396 Patron self-registration web form X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b9a83e2d87210d536c079622daa9b9cdcfcdce86;p=evergreen%2Fequinox.git LP1207396 Patron self-registration web form Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm index de7dee7ffe..613cca8e2b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm @@ -38,6 +38,9 @@ sub load_patron_reg { $user->$_($val); } + # requestor is logged in, capture who is making this request + $user->requesting_usr($ctx->{user}->id) if $ctx->{user}; + # make sure the selected home org unit is in the list # of valid orgs. This can happen if the selector # defaults to CONS, for example. diff --git a/Open-ILS/src/templates/opac/register.tt2 b/Open-ILS/src/templates/opac/register.tt2 index f87c6bd7f0..b565bb43ec 100644 --- a/Open-ILS/src/templates/opac/register.tt2 +++ b/Open-ILS/src/templates/opac/register.tt2 @@ -74,6 +74,16 @@ register_fields = [ [% ELSE %] + [% IF ctx.user %] + +

[% l('New account requested by ' _ HUMAN_NAME_FORMAT, + ctx.user.prefix, ctx.user.first_given_name, + ctx.user.second_given_name, ctx.user.family_name, + ctx.user.suffix + ) | html %]

+ [% END %] +