Bug 14919: Add holds history for patron
[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>
12                 <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% borrowernumber | uri %]" id="patronimage" alt="[% firstname | html %] [% surname | html %] ([% cardnumber | html %])" />
13             </li>
14         [% ELSE %]
15             <li id="patronbasics">
16                 <div></div>
17             </li>
18         [% END %]
19     [% END %]
20     [% IF Koha.Preference( 'AddressFormat' ) %]
21         [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
22     [% ELSE %]
23         [% INCLUDE 'member-display-address-style-us.inc' %]
24     [% END %]
25
26     [% IF ( phone || mobile || phonepro ) %]<li class="patronphone">
27     [% IF ( phone ) %]
28         <a href="tel:[% phone | url %]">[% phone | html %]</a>
29     [% ELSE %]
30         [% IF ( mobile ) %]
31             <a href="tel:[% mobile | url %]">[% mobile | html %]</a>
32         [% ELSE %]
33             [% IF ( phonepro ) %]
34                 <a href="tel:[% phonepro | url %]">[% phonepro | html %]</a>
35             [% END %]
36         [% END %]
37     [% END %]</li>[% END %]
38     [% IF ( email ) %]
39         <li class="email"> <a href="mailto:[% email | url %]" title="[% email | html %]">[% email | html %]</a></li>
40     [% ELSE %]
41         [% IF ( emailpro ) %]
42             <li class="email"> <a href="mailto:[% emailpro | url %]" title="[% emailpro | html %]">[% emailpro | html %]</a></li>
43         [% END %]
44     [% END %]
45
46     [% UNLESS ( address or address2 ) %]
47         <li><span class="empty" id="noaddressstored">No address stored.</span></li>
48     [% END %]
49     [% UNLESS ( city ) %]
50         <li><span class="empty" id="nocitystored">No city stored.</span></li>
51     [% END %]
52     [% UNLESS ( phone or mobile or phonepro) %]
53         <li> <span class="empty">No phone stored.</span></li>
54     [% END %]
55     [% UNLESS ( email or emailpro) %]
56         <li> <span class="empty">No email stored.</span></li>
57     [% END %]
58
59     [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
60         [% IF ( extendedattribute.display_checkout ) %]
61             [% IF ( extendedattribute.value ) %]
62                 <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
63             [% END %]
64         [% END %]
65     [% END %][% END %]
66     <li class="patroncategory">Category: [% categoryname %] ([% categorycode %])</li>
67     <li class="patronlibrary">Home library: [% Branches.GetName( branchcode ) %]</li>
68 </ul></div>
69 <div id="menu">
70 <ul>
71     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
72         [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
73         [% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ categorycode _ '$').size > 0 %]
74           [% 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>
75         [% END %]
76     [% END %]
77     [% IF ( CAN_user_borrowers ) %]
78         [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
79     [% END %]
80     [% IF ( CAN_user_updatecharges ) %]
81         [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
82     [% END %]
83     [% IF ( CAN_user_circulate_circulate_remaining_permissions  )  %]
84         [% 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 %]
85     [% END %]
86     [% IF ( CAN_user_borrowers ) %]
87         [% IF ( intranetreadinghistory ) %]
88             [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
89         [% END %]
90     [% END %]
91     [% IF ( CAN_user_borrowers ) %]
92         [% IF ( intranetreadinghistory ) %]
93             [% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdsshistory.pl?borrowernumber=[% borrowernumber %]">Holds history</a></li>
94         [% END %]
95     [% END %]
96     [% IF ( CAN_user_parameters ) %]
97         [% 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>
98     [% END %]
99     [% IF ( CAN_user_borrowers ) %]
100         [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
101     [% END %]
102     [% IF ( CAN_user_borrowers ) %]
103         [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
104     [% END %]
105     [% IF ( CAN_user_borrowers ) %]
106         [% IF ( EnableBorrowerFiles ) %]
107             [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
108         [% END %]
109     [% END %]
110
111     [% IF ( CAN_user_borrowers ) %]
112         [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li>
113     [% END %]
114     [% IF CAN_user_borrowers && useDischarge %]
115         [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharges</a></li>
116     [% END %]
117     [% IF Koha.Preference('HouseboundModule') %]
118         [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% borrowernumber %]">Housebound</a></li>
119     [% END %]
120 </ul></div>
121 [% END %]