3 [% PROCESS 'member-display-address-style.inc' %]
4 [% IF ( patron.borrowernumber ) %]
5 [% SET patron_is_staff = patron.has_permission({ 'catalogue' => 1 }) %]
6 [% SET patron_is_superlibrarian = patron.is_superlibrarian %]
7 [% SET patron_type_class = 'is-not-staff' %]
8 [% IF ( patron_is_superlibrarian ) %]
9 [% patron_type_class = 'is-staff is-superlibrarian' %]
10 [% ELSIF ( patron_is_staff ) %]
11 [% patron_type_class = 'is-staff' %]
13 <div class="patroninfo [% patron_type_class | html %]">
15 [% IF ( patronimages ) %]
16 <h5 class="text-center">
20 [% IF ( patron_is_staff ) %]
21 <i class="fa fa-shield fa-fw" title="Staff patron"></i>
23 [% IF ( patron_is_superlibrarian ) %]
24 <i class="fa fa-bolt fa-fw" title="Superlibrarian patron"></i>
26 [% INCLUDE 'patron-title.inc' %]
29 [% IF Koha.Preference('showLastPatron') %]
30 <input type="hidden" id="hiddenborrowernumber" value="[% patron.borrowernumber | html %]">
31 <input type="hidden" id="hiddenborrowername" value="[% patron.surname | html %] [% patron.firstname | html %]">
32 <input type="hidden" id="hiddenborrowercard" value="[% patron.cardnumber | html %]">
35 [% IF ( patronimages ) %]
37 <div class="patronimage-container">
38 [% IF ( patron.image ) %]
39 <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% patron.borrowernumber | uri %]" class="patronimage" alt="[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])" />
40 <div class="patronimage-controls">
41 <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>
44 <div class="patronimage empty"></div>
45 <div class="patronimage-controls">
46 <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>
53 <ul class="patronbriefinfo">
54 [% IF !(Koha.Preference('HidePersonalPatronDetailOnCirculation')) %]
55 [% PROCESS 'display-address-style' %]
57 [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]<li class="patronphone">
58 [% IF ( patron.phone ) %]
59 <a href="tel:[% patron.phone | url %]">[% patron.phone | html %]</a>
61 [% IF ( patron.mobile ) %]
62 <a href="tel:[% patron.mobile | url %]">[% patron.mobile | html %]</a>
64 [% IF ( patron.phonepro ) %]
65 <a href="tel:[% patron.phonepro | url %]">[% patron.phonepro | html %]</a>
68 [% END %]</li>[% END %]
69 [% IF ( patron.email ) %]
70 <li class="email"> <a href="mailto:[% patron.email | url %]" title="[% patron.email | html %]">[% patron.email | html %]</a></li>
72 [% IF ( patron.emailpro ) %]
73 <li class="email"> <a href="mailto:[% patron.emailpro | url %]" title="[% patron.emailpro | html %]">[% patron.emailpro | html %]</a></li>
76 [% IF ( patron.dateofbirth ) %]
77 <li class="patrondateofbirth">
79 [% INCLUDE 'patron-age.inc' %]
83 [% UNLESS ( patron.address or patron.address2 ) %]
84 <li><span class="empty" id="noaddressstored">No address stored.</span></li>
86 [% UNLESS ( patron.city ) %]
87 <li><span class="empty" id="nocitystored">No city stored.</span></li>
89 [% UNLESS ( patron.phone or patron.mobile or patron.phonepro) %]
90 <li> <span class="empty">No phone stored.</span></li>
92 [% UNLESS ( patron.email or patron.emailpro) %]
93 <li> <span class="empty">No email stored.</span></li>
95 [% UNLESS ( patron.dateofbirth ) %]
96 <li> <span class="empty">No date of birth stored.</span></li>
101 [% IF Koha.Preference('ExtendedPatronAttributes') %]
102 [% FOREACH extendedattribute IN patron.extended_attributes %]
103 [% IF ( extendedattribute.type.display_checkout ) %] [%# FIXME We should filter in the line above %]
104 [% IF ( extendedattribute.attribute ) %] [%# FIXME Why that? why not if == 0? %]
105 <li class="patronattribute">
106 <span class="patronattributelabel">[% extendedattribute.type.description | html %]</span>: [% extendedattribute.description | html %]
112 <li class="patroncategory">Category: [% patron.category.description | html %] ([% patron.categorycode | html %])</li>
113 <li class="patronlibrary">Home library: [% Branches.GetName( patron.branchcode ) | html %]</li>
114 <li class="patronborrowernumber">Borrowernumber: [% patron.borrowernumber | html %]</li>
115 <li><span class="patronupdatedon">Updated on [% patron.updated_on | $KohaDates with_hours => 1 %]</span></li>
116 [% IF patron.account_locked %]
117 [% IF patron.login_attempts < 0 %]
118 <li class="blocker account_admin_locked">Account has been administratively locked</li>
120 <li class="blocker account_locked">Account has been locked</li>
126 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
127 [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]">Check out</a></li>
128 [% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split(',').grep('^' _ patron.categorycode _ '$').size > 0 %]
129 [% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]&batch=1">Batch check out</a></li>
132 [% IF CAN_user_borrowers_edit_borrowers %]
133 [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">Details</a></li>
135 [% IF ( CAN_user_updatecharges ) %]
136 [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]">Accounting</a></li>
138 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
139 [% 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 %]
141 [% IF CAN_user_borrowers_edit_borrowers %]
142 [% IF ( intranetreadinghistory ) %]
143 [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a></li>
146 [% IF CAN_user_borrowers_edit_borrowers %]
147 [% IF ( intranetreadinghistory ) %]
148 [% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Holds history</a></li>
151 [% IF ( CAN_user_tools_view_system_logs ) %]
152 [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=CIRCULATION&object=[% patron.borrowernumber | uri %]&src=circ">Modification log</a></li>
154 [% IF CAN_user_borrowers_edit_borrowers %]
155 [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]">Notices</a></li>
157 [% IF CAN_user_borrowers_edit_borrowers %]
158 [% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber | uri %]">Statistics</a></li>
160 [% IF CAN_user_borrowers_edit_borrowers %]
161 [% IF ( EnableBorrowerFiles ) %]
162 [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files</a></li>
166 [% IF CAN_user_suggestions_suggestions_manage %]
167 [% 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>
169 [% IF CAN_user_borrowers_edit_borrowers && useDischarge %]
170 [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% patron.borrowernumber | uri %]">Discharges</a></li>
172 [% IF Koha.Preference('HouseboundModule') %]
173 [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | uri %]">Housebound</a></li>
175 [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
176 [% 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>
181 <div class="modal" id="patronImageEdit" tabindex="-1" role="dialog" aria-labelledby="patronImageEditLabel">
182 <div class="modal-dialog" role="document">
183 <div class="modal-content">
184 <div class="modal-header">
185 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
186 <h4 class="modal-title" id="patronImageEditLabel">Modal title</h4>
188 <div class="modal-body">
189 <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" />
191 <div class="modal-footer">
192 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>