[%# duplicates circ-menu.inc but assumes all borrower attributes are in a borrower variable rather than
in the global namespace %]
[% IF borrower %]
[% borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %] [% borrower.surname %] ([% borrower.cardnumber %])
[% IF ( patronimages ) %]
[% IF borrower.has_picture %]
[% ELSE %]
[% END %]
[% END %]
[% IF Koha.Preference( 'AddressFormat' ) %]
[% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
[% ELSE %]
[% INCLUDE 'member-display-address-style-us.inc' %]
[% END %]
[% IF ( phone ) %]-
[% phone %]
[% ELSE %]
[% IF ( mobile ) %]
[% mobile %]
[% ELSE %]
[% IF ( phonepro ) %]
[% phonepro %]
[% END %]
[% END %]
[% END %]
[% IF ( email ) %]
- [% email %]
[% ELSE %]
[% IF ( emailpro ) %]
- [% emailpro %]
[% END %]
[% END %]
[% UNLESS ( address or address2 ) %]
- No address stored.
[% END %]
[% UNLESS ( city ) %]
- No city stored.
[% END %]
[% UNLESS ( phone or mobile or phonepro) %]
- No phone stored.
[% END %]
[% UNLESS ( email or emailpro) %]
- No email stored.
[% END %]
[% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN borrower.extendedattributes %]
[% IF ( extendedattribute.display_checkout ) %]
[% IF ( extendedattribute.value ) %]
- [% extendedattribute.description %] : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]
[% END %]
[% END %]
[% END %][% END %]
- Category: [% borrower.description %] ([% borrower.categorycode %])
- Home library: [% IF ( borrower.branchname ) %][% borrower.branchname %][% ELSE %][% borrower.branch %][% END %]
[% END %]