Merge remote-tracking branch 'kc/new/bug_5616' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / circ-menu.inc
1 [% IF ( borrowernumber ) %]
2 <div class="patroninfo"><h5>[% firstname %] [% surname %] ([% cardnumber %])</h5>
3 <!--[if IE 6]>
4 <style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
5 }</style>
6 <![endif]-->
7 <ul>
8 [% IF ( patronimages ) %]
9 [% IF ( picture ) %]
10 <li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=[% cardnumber %]" 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>
11 [% ELSE %]
12 <li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
13 [% END %]
14 [% END %]
15     <li>[% IF ( address ) %]
16             [% address %]
17     [% ELSE %]
18             <span class="empty">No address stored.</span>
19     [% END %]</li>
20     [% IF ( address2 ) %]
21         <li>[% address2 %]</li>
22     [% END %]<li> 
23     [% IF ( city ) %]
24             [% city %][% IF ( state ) %], [% state %][% END %]
25             [% zipcode %][% IF ( country ) %], [% country %][% END %]
26     [% ELSE %]
27         <span class="empty">No city stored.</span>
28     [% END %]</li>
29     <li>[% IF ( phone ) %]
30         [% phone %]
31     [% ELSE %]
32         [% IF ( mobile ) %]
33             [% mobile %]
34         [% ELSE %]
35             [% IF ( phonepro ) %]
36                 [% phonepro %]
37             [% ELSE %]
38                 <span class="empty">No phone stored.</span>    
39             [% END %]
40         [% END %]
41     [% END %]</li>
42     [% IF ( email ) %]
43         <li class="email"> <a href="mailto:[% email %]" title="[% email %]">[% email %]</a></li>
44     [% ELSE %]
45         [% IF ( emailpro ) %]
46             <li class="email"> <a href="mailto:[% emailpro %]" title="[% emailpro %]">[% emailpro %]</a></li>
47         [% ELSE %]
48             <li> <span class="empty">No email stored.</span>    </li>
49         [% END %]
50     [% END %]
51     [% FOREACH extendedattribute IN extendedattributes %]
52         [% IF ( extendedattribute.display_checkout ) %]
53             [% IF ( extendedattribute.value ) %]
54                 <li>[% extendedattribute.description %] : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
55             [% END %]
56         [% END %]
57     [% END %]
58     <li>Category: [% categoryname %] ([% categorycode %])</li>
59     <li>Home Library: [% IF ( branchname ) %][% branchname %][% ELSE %][% branch %][% END %]</li>
60 </ul></div>
61 <div id="menu">
62 <ul>
63         [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check Out</a></li>
64         [% IF ( CAN_user_borrowers ) %]
65         [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
66         [% END %]
67          [% IF ( CAN_user_updatecharges ) %]
68         [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
69         [% END %]
70         [% IF ( intranetreadinghistory ) %][% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation History</a></li>[% END %]
71         [% IF ( CAN_user_parameters ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=MEMBERS&amp;modules=circulation&amp;object=[% borrowernumber %]&amp;src=circ">Modification Log</a></li>[% END %]
72     [% IF ( EnhancedMessagingPreferences ) %]
73     [% END %]   
74         [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
75 </ul></div>
76 [% END %]
77