Bug 14002: Show patron expiry date in OPAC

This patch makes it possible to show the expiration date
of a patron account in the OPAC on the details tab in the
patron account.

Extras:
- Makes it possible to hide cardnumber with
  PatronSelfRegistrationBorrowerUnwantedField

To test:
- Toggle OPACPatronDetails and test date expiry always shows
- Check PatronSelfRegistrationBorrowerUnwantedField for dateexpiry
  and cardnumber
- Verify a patron address modification request still works
  as expected

Signed-off-by: Aleisha <aleishaamohia@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Katrin Fischer 2015-06-10 00:52:39 +02:00 committed by Tomas Cohen Arazi
parent 08871a324f
commit 69baa022a5

View file

@ -61,10 +61,19 @@
<legend id="library_legend">Library</legend>
<ol>
[% UNLESS hidden.defined('cardnumber') %]
<li>
<label>Card number</label>
<label>Card number:</label>
<input type="text" value="[% borrower.cardnumber %]" disabled="disabled"/>
</li>
[% END %]
[% UNLESS hidden.defined('dateexpiry') %]
<li>
<label>Expiration date:</label>
<input type="text" value="[% borrower.dateexpiry | $KohaDates %]" disabled="disabled" size="10" />
</li>
[% END %]
[% UNLESS hidden.defined('branchcode') %]
<li>