Bug 20484: Implement blocking_errors for ES config page
[koha.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
6 [% IF Koha.Preference('showLastPatron') %]
7     <input type="hidden" id="hiddenborrowernumber" value="[% patron.borrowernumber | html %]">
8     <input type="hidden" id="hiddenborrowername" value="[% patron.surname | html %] [% patron.firstname | html %]">
9     <input type="hidden" id="hiddenborrowercard" value="[% patron.cardnumber | html %]">
10 [% END %]
11
12 [% IF ( patronimages ) %]
13     <div>
14         <div class="patronimage-container">
15             [% IF ( patron.image ) %]
16                 <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% patron.borrowernumber | uri %]" class="patronimage" alt="[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])" />
17                 <div class="patronimage-controls">
18                     <div class="patronimage-control"><a data-borrowernumber="[% patron.borrowernumber | uri %]" class="btn btn-default edit-patronimage" title="Edit patron image" href="#"><i class="fa fa-pencil"></i> Edit</a></div>
19                 </div>
20             [% ELSE %]
21                 <div class="patronimage empty"></div>
22                 <div class="patronimage-controls">
23                     <div class="patronimage-control"><a data-borrowernumber="[% patron.borrowernumber | uri %]" class="btn btn-default edit-patronimage" title="Add patron image" href="#"><i class="fa fa-plus"></i> Add</a></div>
24                 </div>
25             [% END %]
26         </div>
27     </div>
28 [% END %]
29
30 <ul class="patronbriefinfo">
31     [% IF !(Koha.Preference('HidePersonalPatronDetailOnCirculation')) %]
32         [% IF Koha.Preference( 'AddressFormat' ) %]
33             [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
34         [% ELSE %]
35             [% INCLUDE 'member-display-address-style-us.inc' %]
36         [% END %]
37
38         [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]<li class="patronphone">
39         [% IF ( patron.phone ) %]
40             <a href="tel:[% patron.phone | url %]">[% patron.phone | html %]</a>
41         [% ELSE %]
42             [% IF ( patron.mobile ) %]
43                 <a href="tel:[% patron.mobile | url %]">[% patron.mobile | html %]</a>
44             [% ELSE %]
45                 [% IF ( patron.phonepro ) %]
46                     <a href="tel:[% patron.phonepro | url %]">[% patron.phonepro | html %]</a>
47                 [% END %]
48             [% END %]
49         [% END %]</li>[% END %]
50         [% IF ( patron.email ) %]
51             <li class="email"> <a href="mailto:[% patron.email | url %]" title="[% patron.email | html %]">[% patron.email | html %]</a></li>
52         [% ELSE %]
53             [% IF ( patron.emailpro ) %]
54                 <li class="email"> <a href="mailto:[% patron.emailpro | url %]" title="[% patron.emailpro | html %]">[% patron.emailpro | html %]</a></li>
55             [% END %]
56         [% END %]
57
58         [% UNLESS ( patron.address or patron.address2 ) %]
59             <li><span class="empty" id="noaddressstored">No address stored.</span></li>
60         [% END %]
61         [% UNLESS ( patron.city ) %]
62             <li><span class="empty" id="nocitystored">No city stored.</span></li>
63         [% END %]
64         [% UNLESS ( patron.phone or patron.mobile or patron.phonepro) %]
65             <li> <span class="empty">No phone stored.</span></li>
66         [% END %]
67         [% UNLESS ( patron.email or patron.emailpro) %]
68             <li> <span class="empty">No email stored.</span></li>
69         [% END %]
70     [% END %]
71
72     [% IF Koha.Preference('ExtendedPatronAttributes') %]
73         [% FOREACH extendedattribute IN patron.extended_attributes %]
74             [% IF ( extendedattribute.type.display_checkout ) %] [%# FIXME We should filter in the line above %]
75                 [% IF ( extendedattribute.attribute ) %] [%# FIXME Why that? why not if == 0? %]
76                     <li class="patronattribute">
77                         <span class="patronattributelabel">[% extendedattribute.type.description | html %]</span>: [% extendedattribute.description | html %]
78                     </li>
79                 [% END %]
80             [% END %]
81         [% END %]
82     [% END %]
83     <li class="patroncategory">Category: [% patron.category.description | html %] ([% patron.categorycode | html %])</li>
84     <li class="patronlibrary">Home library: [% Branches.GetName( patron.branchcode ) | html %]</li>
85     <li class="patronborrowernumber">Borrowernumber: [% patron.borrowernumber | html %]</li>
86     <li><span class="patronupdatedon">Updated on [% patron.updated_on | $KohaDates with_hours => 1 %]</span></li>
87   </ul></div>
88 <div id="menu">
89 <ul>
90     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
91         [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]">Check out</a></li>
92         [% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ patron.categorycode _ '$').size > 0 %]
93           [% 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>
94         [% END %]
95     [% END %]
96     [% IF CAN_user_borrowers_edit_borrowers %]
97         [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">Details</a></li>
98     [% END %]
99     [% IF ( CAN_user_updatecharges ) %]
100         [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]">Accounting</a></li>
101     [% END %]
102     [% IF ( CAN_user_circulate_circulate_remaining_permissions  )  %]
103         [% 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 %]
104     [% END %]
105     [% IF CAN_user_borrowers_edit_borrowers %]
106         [% IF ( intranetreadinghistory ) %]
107             [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a></li>
108         [% END %]
109     [% END %]
110     [% IF CAN_user_borrowers_edit_borrowers %]
111         [% IF ( intranetreadinghistory ) %]
112             [% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Holds history</a></li>
113         [% END %]
114     [% END %]
115     [% IF ( CAN_user_tools_view_system_logs ) %]
116         [% 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>
117     [% END %]
118     [% IF CAN_user_borrowers_edit_borrowers %]
119     [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]">Notices</a></li>
120     [% END %]
121     [% IF CAN_user_borrowers_edit_borrowers %]
122         [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber | uri %]">Statistics</a></li>
123     [% END %]
124     [% IF CAN_user_borrowers_edit_borrowers %]
125         [% IF ( EnableBorrowerFiles ) %]
126             [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files</a></li>
127         [% END %]
128     [% END %]
129
130     [% IF CAN_user_suggestions_suggestions_manage %]
131         [% 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>
132     [% END %]
133     [% IF CAN_user_borrowers_edit_borrowers && useDischarge %]
134         [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% patron.borrowernumber | uri %]">Discharges</a></li>
135     [% END %]
136     [% IF Koha.Preference('HouseboundModule') %]
137         [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | uri %]">Housebound</a></li>
138     [% END %]
139     [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
140         [% IF illview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/ill-requests.pl?borrowernumber=[% patron.borrowernumber | uri %]">ILL requests history</a></li>
141     [% END %]
142 </ul></div>
143
144 <!-- Modal -->
145 <div class="modal" id="patronImageEdit" tabindex="-1" role="dialog" aria-labelledby="patronImageEditLabel">
146     <div class="modal-dialog" role="document">
147         <div class="modal-content">
148             <div class="modal-header">
149                 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
150                 <h4 class="modal-title" id="patronImageEditLabel">Modal title</h4>
151             </div>
152             <div class="modal-body">
153                 <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" />
154             </div>
155             <div class="modal-footer">
156                 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
157             </div>
158         </div>
159     </div>
160 </div>
161
162 [% END %]