Bug 21755: Show patron updated date in circ menu
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / en / includes / circ-menu.inc
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% IF ( patron.borrowernumber ) %]
4 <div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5>
5 <!--[if IE 6]>
6 <style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
7 }</style>
8 <![endif]-->
9 <ul class="patronbriefinfo">
10     [% IF ( patronimages ) %]
11         [% IF ( patron.image ) %]
12             <li>
13                 <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% patron.borrowernumber | uri %]" id="patronimage" alt="[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])" />
14             </li>
15         [% ELSE %]
16             <li id="patronbasics">
17                 <div></div>
18             </li>
19         [% END %]
20     [% END %]
21     [% IF !(Koha.Preference('HidePersonalPatronDetailOnCirculation')) %]
22         [% SWITCH Koha.Preference( 'AddressFormat' ) %]
23             [% CASE 'de' %]
24                 [% INCLUDE 'member-display-address-style-de.inc' %]
25             [% CASE # us %]
26                 [% INCLUDE 'member-display-address-style-us.inc' %]
27         [% END %]
28
29         [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]<li class="patronphone">
30         [% IF ( patron.phone ) %]
31             <a href="tel:[% patron.phone | url %]">[% patron.phone | html %]</a>
32         [% ELSE %]
33             [% IF ( patron.mobile ) %]
34                 <a href="tel:[% patron.mobile | url %]">[% patron.mobile | html %]</a>
35             [% ELSE %]
36                 [% IF ( patron.phonepro ) %]
37                     <a href="tel:[% patron.phonepro | url %]">[% patron.phonepro | html %]</a>
38                 [% END %]
39             [% END %]
40         [% END %]</li>[% END %]
41         [% IF ( patron.email ) %]
42             <li class="email"> <a href="mailto:[% patron.email | url %]" title="[% patron.email | html %]">[% patron.email | html %]</a></li>
43         [% ELSE %]
44             [% IF ( patron.emailpro ) %]
45                 <li class="email"> <a href="mailto:[% patron.emailpro | url %]" title="[% patron.emailpro | html %]">[% patron.emailpro | html %]</a></li>
46             [% END %]
47         [% END %]
48
49         [% UNLESS ( patron.address or patron.address2 ) %]
50             <li><span class="empty" id="noaddressstored">No address stored.</span></li>
51         [% END %]
52         [% UNLESS ( patron.city ) %]
53             <li><span class="empty" id="nocitystored">No city stored.</span></li>
54         [% END %]
55         [% UNLESS ( patron.phone or patron.mobile or patron.phonepro) %]
56             <li> <span class="empty">No phone stored.</span></li>
57         [% END %]
58         [% UNLESS ( patron.email or patron.emailpro) %]
59             <li> <span class="empty">No email stored.</span></li>
60         [% END %]
61     [% END %]
62
63     [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
64         [% IF ( extendedattribute.display_checkout ) %]
65             [% IF ( extendedattribute.value ) %]
66                 <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description | html %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description | html %][% ELSE %][% extendedattribute.value | html %][% END %]</li>
67             [% END %]
68         [% END %]
69     [% END %][% END %]
70     <li class="patroncategory">Category: [% patron.category.description | html %] ([% patron.categorycode | html %])</li>
71     <li class="patronlibrary">Home library: [% Branches.GetName( patron.branchcode ) | html %]</li>
72     <li class="patronborrowernumber">Borrowernumber: [% patron.borrowernumber | html %]</li>
73     <li><span class="patronupdatedon">Updated on [% patron.updated_on | $KohaDates with_hours => 1 %]</span></li>
74   </ul></div>
75 <div id="menu">
76 <ul>
77     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
78         [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]">Check out</a></li>
79         [% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ patron.categorycode _ '$').size > 0 %]
80           [% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;batch=1">Batch check out</a></li>
81         [% END %]
82     [% END %]
83     [% IF CAN_user_borrowers_edit_borrowers %]
84         [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">Details</a></li>
85     [% END %]
86     [% IF ( CAN_user_updatecharges ) %]
87         [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]">Fines</a></li>
88     [% END %]
89     [% IF ( CAN_user_circulate_circulate_remaining_permissions  )  %]
90         [% IF Koha.Preference("RoutingSerials") %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% patron.borrowernumber | uri %]">Routing lists</a></li>[% END %]
91     [% END %]
92     [% IF CAN_user_borrowers_edit_borrowers %]
93         [% IF ( intranetreadinghistory ) %]
94             [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a></li>
95         [% END %]
96     [% END %]
97     [% IF CAN_user_borrowers_edit_borrowers %]
98         [% IF ( intranetreadinghistory ) %]
99             [% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Holds history</a></li>
100         [% END %]
101     [% END %]
102     [% IF ( CAN_user_tools_view_system_logs ) %]
103         [% 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=[% patron.borrowernumber | uri %]&amp;src=circ">Modification log</a></li>
104     [% END %]
105     [% IF CAN_user_borrowers_edit_borrowers %]
106     [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]">Notices</a></li>
107     [% END %]
108     [% IF CAN_user_borrowers_edit_borrowers %]
109         [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber | uri %]">Statistics</a></li>
110     [% END %]
111     [% IF CAN_user_borrowers_edit_borrowers %]
112         [% IF ( EnableBorrowerFiles ) %]
113             [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files</a></li>
114         [% END %]
115     [% END %]
116
117     [% IF CAN_user_acquisition_suggestions_manage %]
118         [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% patron.borrowernumber | uri %]">Purchase suggestions</a></li>
119     [% END %]
120     [% IF CAN_user_borrowers_edit_borrowers && useDischarge %]
121         [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% patron.borrowernumber | uri %]">Discharges</a></li>
122     [% END %]
123     [% IF Koha.Preference('HouseboundModule') %]
124         [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | uri %]">Housebound</a></li>
125     [% END %]
126     [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
127         <li><a href="/cgi-bin/koha/ill/ill-requests.pl?borrowernumber=[% patron.borrowernumber | uri %]">Interlibrary loans</a></li>
128     [% END %]
129 </ul></div>
130 [% END %]