Bug 11759: (QA followup) Sysprefs should be kosher
[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 %] [% 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         [% ELSE %]
13             <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>
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         [% phone %]
24     [% ELSE %]
25         [% IF ( mobile ) %]
26             [% mobile %]
27         [% ELSE %]
28             [% IF ( phonepro ) %]
29                 [% phonepro %]
30             [% END %]
31         [% END %]</li>
32     [% END %]
33     [% IF ( email ) %]
34         <li class="email"> <a href="mailto:[% email %]" title="[% email %]">[% email %]</a></li>
35     [% ELSE %]
36         [% IF ( emailpro ) %]
37             <li class="email"> <a href="mailto:[% emailpro %]" title="[% emailpro %]">[% emailpro %]</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: [% IF ( branchname ) %][% branchname %][% ELSE %][% branch %][% END %]</li>
63 </ul></div>
64 <div id="menu">
65 <ul>
66     [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
67     [% IF Koha.Preference('BatchCheckouts') &&
68           Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep(categorycode).size > 0 %]
69       [% 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>
70     [% END %]
71     [% IF ( CAN_user_borrowers ) %]
72         [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
73     [% END %]
74     [% IF ( CAN_user_updatecharges ) %]
75         [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
76     [% END %]
77     [% 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 %]
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=[% borrowernumber %]">Circulation history</a></li>
81     [% END %]
82     [% IF ( CAN_user_parameters ) %]
83         [% 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>
84     [% END %]
85     [% IF ( EnhancedMessagingPreferences ) %]
86         [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
87     [% END %]
88     <!-- Added IF statement to check if user has borrowers permission. The menu item will not be shown unless user has borrowers permission  -->
89     [% IF ( CAN_user_borrowers ) %]
90         [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
91     [% END %]
92     [% IF EnableBorrowerFiles %]
93         [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
94     [% END %]
95
96     [% IF ( CAN_user_borrowers ) %]
97         [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li>
98     [% END %]
99     [% IF CAN_user_borrowers && useDischarge %]
100         [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li>
101     [% END %]
102 </ul></div>
103 [% END %]
104