Bug 13599 - Add patron cardnumber to self registration confirmation

Some libraries wish to display the patron's cardnumber on the
confirmation screen for patron self registration, rather than make the
patron locate it his or her cardnumber by logging in and browsing to the
personal details page. We should also add ids to these fields for easy
css styling/hiding.

Test Plan:
1) Apply this patch
2) Ensure that autoMemberNum is enabled
3) Self-register a new patron
4) Note confirmation screen now displays the patron cardnumber

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Kyle Hall 2015-01-20 07:18:11 -05:00 committed by Tomas Cohen Arazi
parent c9af47b86c
commit 06f4950aa2

View file

@ -34,10 +34,23 @@
<p>You have successfully registered your new account. To log in, use the following credentials:</p>
<p>Username: [% borrower.userid %]</p>
<p>Password: [% password_cleartext %]</p>
<p id="patron-userid-p">
<span id="patron-userid-label">Username:</span>
<span id="patron-userid">[% borrower.userid %]</span>
</p>
<p id="patron-password-p">
<span id="patron-password-label">Password:</span>
<span id="patron-password">[% password_cleartext %]<span>
</p>
<p>For your convenience, the login box on this page has been pre-filled with this data. Please log in[% IF OpacPasswordChange %] and change your password[% END %].</p>
[% IF borrower.cardnumber %]
<p id="patron-cardnumber-p">
<span id="patron-cardnumber-label">Card number:</span>
<span id="patron-cardnumber">[% borrower.cardnumber %]</span>
</p>
[% END %]
<p id="patron-instructions">For your convenience, the login box on this page has been pre-filled with this data. Please log in[% IF OpacPasswordChange %] and change your password[% END %].</p>
<div id="PatronSelfRegistrationAdditionalInstructions">[% PatronSelfRegistrationAdditionalInstructions %]</div>
</div>