Link Here
|
2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
3 |
[% PROCESS 'member-display-address-style.inc' %] |
3 |
[% PROCESS 'member-display-address-style.inc' %] |
4 |
[% IF ( patron.borrowernumber ) %] |
4 |
[% IF ( patron.borrowernumber ) %] |
5 |
[% SET patrongrade = ( patron.has_permission({ 'catalogue' => 1 }) ) ? 'staffgrade' : 'normalgrade' %] |
5 |
[% SET patron_is_staff = patron.has_permission({ 'catalogue' => 1 }) %] |
6 |
<div class="patroninfo [% patrongrade | html %]"> |
6 |
[% SET patron_type_class = patron_is_staff ? 'is-staff' : 'is-not-staff' %] |
|
|
7 |
<div class="patroninfo [% patron_type_class | html %]"> |
7 |
|
8 |
|
8 |
[% IF ( patronimages ) %] |
9 |
[% IF ( patronimages ) %] |
9 |
<h5 class="text-center"> |
10 |
<h5 class="text-center"> |
10 |
[% IF ( patrongrade == 'staffgrade' ) %] |
11 |
[% IF ( patron_is_staff ) %] |
11 |
<i class="fa fa-shield fa-fw" title="Staff patron"></i> |
12 |
<i class="fa fa-shield fa-fw" title="Staff patron"></i> |
12 |
[% END %] |
13 |
[% END %] |
13 |
[% INCLUDE 'patron-title.inc' %] |
14 |
[% INCLUDE 'patron-title.inc' %] |
Link Here
|
30 |
</div> |
31 |
</div> |
31 |
[% ELSE %] |
32 |
[% ELSE %] |
32 |
<h5> |
33 |
<h5> |
33 |
[% IF ( patrongrade == 'staffgrade' ) %] |
34 |
[% IF ( patron_is_staff ) %] |
34 |
<i class="fa fa-shield fa-fw" title="Staff patron"></i> |
35 |
<i class="fa fa-shield fa-fw" title="Staff patron"></i> |
35 |
[% END %] |
36 |
[% END %] |
36 |
[% INCLUDE 'patron-title.inc' %] |
37 |
[% INCLUDE 'patron-title.inc' %] |
37 |
- |
|
|