Merge remote-tracking branch 'origin/new/bug_7460'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / circ-menu.inc
1 [% IF ( borrowernumber ) %]
2 <div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</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     [% IF ( address or address2 ) %]
16         [% IF ( address ) %]
17             <li>[% address %]</li>
18         [% END %]
19         [% IF ( address2 ) %]
20             <li>[% address2 %]</li>
21         [% END %]
22     [% ELSE %]
23             <li><span class="empty" id="noadressstored">No address stored.</span></li>
24     [% END %]
25     <li>[% IF ( city ) %]
26             [% city %][% IF ( state ) %], [% state %][% END %]
27             [% zipcode %][% IF ( country ) %], [% country %][% END %]
28     [% ELSE %]
29         <span class="empty" id="nocitystored">No city stored.</span>
30     [% END %]</li>
31     <li>[% IF ( phone ) %]
32         [% phone %]
33     [% ELSE %]
34         [% IF ( mobile ) %]
35             [% mobile %]
36         [% ELSE %]
37             [% IF ( phonepro ) %]
38                 [% phonepro %]
39             [% ELSE %]
40                 <span class="empty" id="nophonestored">No phone stored.</span>
41             [% END %]
42         [% END %]
43     [% END %]</li>
44     [% IF ( email ) %]
45         <li class="email"> <a href="mailto:[% email %]" title="[% email %]">[% email %]</a></li>
46     [% ELSE %]
47         [% IF ( emailpro ) %]
48             <li class="email"> <a href="mailto:[% emailpro %]" title="[% emailpro %]">[% emailpro %]</a></li>
49         [% ELSE %]
50             <li> <span class="empty">No email stored.</span>    </li>
51         [% END %]
52     [% END %]
53     [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
54         [% IF ( extendedattribute.display_checkout ) %]
55             [% IF ( extendedattribute.value ) %]
56                 <li>[% extendedattribute.description %] : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
57             [% END %]
58         [% END %]
59     [% END %][% END %]
60     <li>Category: [% categoryname %] ([% categorycode %])</li>
61     <li>Home Library: [% IF ( branchname ) %][% branchname %][% ELSE %][% branch %][% END %]</li>
62 </ul></div>
63 <div id="menu">
64 <ul>
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>
68         [% END %]
69          [% IF ( CAN_user_updatecharges ) %]
70         [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
71         [% END %]
72         [% 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 %]
73         [% 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 %]
74     [% IF ( EnhancedMessagingPreferences ) %]
75     [% END %]   
76         [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
77 </ul></div>
78 [% END %]
79