1 [% IF ( borrowernumber ) %]
2 <div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5>
4 <style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
7 <ul class="patronbriefinfo">
8 [% IF ( patronimages ) %]
10 <li><img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% borrowernumber | uri %]" id="patronimage" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li>
12 <li id="patronbasics"><img src="[% interface %]/[% theme %]/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
15 [% IF Koha.Preference( 'AddressFormat' ) %]
16 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
18 [% INCLUDE 'member-display-address-style-us.inc' %]
21 [% IF ( phone ) %]<li class="patronphone">
33 <li class="email"> <a href="mailto:[% email %]" title="[% email %]">[% email %]</a></li>
36 <li class="email"> <a href="mailto:[% emailpro %]" title="[% emailpro %]">[% emailpro %]</a></li>
40 [% UNLESS ( address or address2 ) %]
41 <li><span class="empty" id="noaddressstored">No address stored.</span></li>
44 <li><span class="empty" id="nocitystored">No city stored.</span></li>
46 [% UNLESS ( phone or mobile or phonepro) %]
47 <li> <span class="empty">No phone stored.</span></li>
49 [% UNLESS ( email or emailpro) %]
50 <li> <span class="empty">No email stored.</span></li>
53 [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
54 [% IF ( extendedattribute.display_checkout ) %]
55 [% IF ( extendedattribute.value ) %]
56 <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
60 <li class="patroncategory">Category: [% categoryname %] ([% categorycode %])</li>
61 <li class="patronlibrary">Home library: [% IF ( branchname ) %][% branchname %][% ELSE %][% branch %][% END %]</li>
65 [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
66 [% IF ( CAN_user_borrowers ) %]
67 [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
69 [% IF ( CAN_user_updatecharges ) %]
70 [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
72 [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing lists</a></li>[% END %]
73 <!-- Added check for borrowers permission as this is needed to access Cirulation History -->
74 [% IF ( intranetreadinghistory && CAN_user_borrowers ) %]
75 [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
77 [% IF ( CAN_user_parameters ) %]
78 [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=[% borrowernumber %]&src=circ">Modification log</a></li>
80 [% IF ( EnhancedMessagingPreferences ) %]
81 [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
83 <!-- Added IF statement to check if user has borrowers permission. The menu item will not be shown unless user has borrowers permission -->
84 [% IF ( CAN_user_borrowers ) %]
85 [% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
87 [% IF EnableBorrowerFiles %]
88 [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
91 [% IF ( CAN_user_borrowers ) %]
92 [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li>