Bug 5670: Housebound Readers Module
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / circ-menu.inc
1 [% USE Koha %]
2 [% IF ( borrowernumber ) %]
3 <div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5>
4 <!--[if IE 6]>
5 <style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
6 }</style>
7 <![endif]-->
8 <ul class="patronbriefinfo">
9     [% IF ( patronimages ) %]
10         [% IF ( picture ) %]
11             <li><img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% borrowernumber | uri %]" id="patronimage" alt="[% firstname | html %] [% surname | html %] ([% cardnumber | html %])" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li>
12         [% ELSE %]
13             <li id="patronbasics"><img src="[% interface %]/[% theme %]/img/patron-blank.png" alt="[% firstname | html %] [% surname | html %] ([% cardnumber | html %])" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
14         [% END %]
15     [% END %]
16     [% IF Koha.Preference( 'AddressFormat' ) %]
17         [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
18     [% ELSE %]
19         [% INCLUDE 'member-display-address-style-us.inc' %]
20     [% END %]
21
22     [% IF ( phone ) %]<li class="patronphone">
23         <a href="tel:[% phone | url %]">[% phone | html %]</a>
24     [% ELSE %]
25         [% IF ( mobile ) %]
26             <a href="tel:[% mobile | url %]">[% mobile | html %]</a>
27         [% ELSE %]
28             [% IF ( phonepro ) %]
29                 <a href="tel:[% phonepro | url %]">[% phonepro | html %]</a>
30             [% END %]
31         [% END %]</li>
32     [% END %]
33     [% IF ( email ) %]
34         <li class="email"> <a href="mailto:[% email | url %]" title="[% email | html %]">[% email | html %]</a></li>
35     [% ELSE %]
36         [% IF ( emailpro ) %]
37             <li class="email"> <a href="mailto:[% emailpro | url %]" title="[% emailpro | html %]">[% emailpro | html %]</a></li>
38         [% END %]
39     [% END %]
40
41     [% UNLESS ( address or address2 ) %]
42         <li><span class="empty" id="noaddressstored">No address stored.</span></li>
43     [% END %]
44     [% UNLESS ( city ) %]
45         <li><span class="empty" id="nocitystored">No city stored.</span></li>
46     [% END %]
47     [% UNLESS ( phone or mobile or phonepro) %]
48         <li> <span class="empty">No phone stored.</span></li>
49     [% END %]
50     [% UNLESS ( email or emailpro) %]
51         <li> <span class="empty">No email stored.</span></li>
52     [% END %]
53
54     [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
55         [% IF ( extendedattribute.display_checkout ) %]
56             [% IF ( extendedattribute.value ) %]
57                 <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
58             [% END %]
59         [% END %]
60     [% END %][% END %]
61     <li class="patroncategory">Category: [% categoryname %] ([% categorycode %])</li>
62     <li class="patronlibrary">Home library: [% Branches.GetName( branchcode ) %]</li>
63 </ul></div>
64 <div id="menu">
65 <ul>
66     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
67         [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
68         [% IF Koha.Preference('BatchCheckouts') &&
69               Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ categorycode _ '$').size > 0 %]
70           [% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]&amp;batch=1">Batch check out</a></li>
71         [% END %]
72     [% END %]
73     [% IF ( CAN_user_borrowers ) %]
74         [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
75     [% END %]
76     [% IF ( CAN_user_updatecharges ) %]
77         [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
78     [% END %]
79     [% IF ( CAN_user_circulate_circulate_remaining_permissions  )  %]
80         [% 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 %]
81     [% END %]
82     [% IF ( CAN_user_borrowers ) %]
83         [% IF ( intranetreadinghistory ) %]
84             [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
85         [% END %]
86     [% END %]
87     [% IF ( CAN_user_parameters ) %]
88         [% 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>
89     [% END %]
90     [% IF ( CAN_user_borrowers ) %]
91         [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
92     [% END %]
93     [% IF ( CAN_user_borrowers ) %]
94         [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
95     [% END %]
96     [% IF ( CAN_user_borrowers ) %]
97         [% IF ( EnableBorrowerFiles ) %]
98             [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
99         [% END %]
100     [% END %]
101
102     [% IF ( CAN_user_borrowers ) %]
103         [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li>
104     [% END %]
105     [% IF CAN_user_borrowers && useDischarge %]
106         [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharges</a></li>
107     [% END %]
108     [% IF Koha.Preference('HouseboundModule') %]
109         [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% borrowernumber %]">Housebound</a></li>
110     [% END %]
111 </ul></div>
112 [% END %]