1 [%# duplicates circ-menu.inc but assumes all borrower attributes are in a borrower variable rather than
2 in the global namespace %]
4 <div class="patroninfo"><h5>[% borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %] [% borrower.surname %] ([% borrower.cardnumber %])</h5>
6 <style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
9 <ul class="patronbriefinfo">
10 [% IF ( patronimages ) %]
11 [% IF borrower.has_picture %]
12 <li><img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% borrower.borrowernumber %]" id="patronimage" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li>
14 <li id="patronbasics"><img src="[% interface %]/[% theme %]/img/patron-blank.png" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
18 [% IF Koha.Preference( 'addressformat' ) %]
19 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'addressformat' ) }.inc" %]
21 [% INCLUDE 'member-display-address-style-us.inc' %]
24 [% IF ( phone ) %]<li class="patronphone">
36 <li class="email"> <a href="mailto:[% email %]" title="[% email %]">[% email %]</a></li>
39 <li class="email"> <a href="mailto:[% emailpro %]" title="[% emailpro %]">[% emailpro %]</a></li>
43 [% UNLESS ( address or address2 ) %]
44 <li><span class="empty" id="noaddressstored">No address stored.</span></li>
47 <li><span class="empty" id="nocitystored">No city stored.</span></li>
49 [% UNLESS ( phone or mobile or phonepro) %]
50 <li> <span class="empty">No phone stored.</span></li>
52 [% UNLESS ( email or emailpro) %]
53 <li> <span class="empty">No email stored.</span></li>
58 [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN borrower.extendedattributes %]
59 [% IF ( extendedattribute.display_checkout ) %]
60 [% IF ( extendedattribute.value ) %]
61 <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
65 <li class="patroncategory">Category: [% borrower.description %] ([% borrower.categorycode %])</li>
66 <li class="patronlibrary">Home library: [% IF ( borrower.branchname ) %][% borrower.branchname %][% ELSE %][% borrower.branch %][% END %]</li>
70 [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">Check out</a></li>
71 [% IF ( CAN_user_borrowers ) %]
72 [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">Details</a></li>
74 [% IF ( CAN_user_updatecharges ) %]
75 [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Fines</a></li>
77 [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrower.borrowernumber %]">Routing lists</a></li>[% END %]
78 <!-- Added check for borrowers permission as this is needed to access Cirulation History -->
79 [% IF ( intranetreadinghistory && CAN_user_borrowers ) %]
80 [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrower.borrowernumber %]">Circulation history</a></li>
82 [% IF ( CAN_user_parameters ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=[% borrower.borrowernumber %]&src=circ">Modification log</a></li>[% END %]
83 [% IF ( EnhancedMessagingPreferences ) %]
84 [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrower.borrowernumber %]">Notices</a></li>
86 [% IF ( CAN_user_borrowers ) %]
87 [% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrower.borrowernumber %]">Statistics</a></li>
89 [% IF EnableBorrowerFiles %]
90 [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrower.borrowernumber %]">Files</a></li>
92 [% IF ( CAN_user_borrowers ) %]
93 [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrower.borrowernumber %]">Purchase<br/>suggestions</a></li>