Lines 30-52
Link Here
|
30 |
[%- SET data.borrowernumber = borrowernumber -%] |
30 |
[%- SET data.borrowernumber = borrowernumber -%] |
31 |
[%- SET data.title = title -%] |
31 |
[%- SET data.title = title -%] |
32 |
[%- END -%] |
32 |
[%- END -%] |
33 |
[%# Parameter no_html - if 1, the html tags are NOT generated %] |
33 |
[%# Parameter no_html - if 1, the html tags are NOT generated -%] |
34 |
[%- IF no_title %][% SET data.title = "" %][% END -%] |
34 |
[%- IF no_title -%][%- SET data.title = "" -%][%- END -%] |
35 |
[%- IF data.title %] |
35 |
[%- IF data.title -%] |
36 |
[%- IF no_html %] |
36 |
[%- IF no_html -%] |
37 |
[%- span_start = '' %] |
37 |
[%- span_start = '' -%] |
38 |
[%- span_end = '' %] |
38 |
[%- span_end = '' -%] |
39 |
[%- ELSE %] |
39 |
[%- ELSE -%] |
40 |
[%- span_start = '<span class="patron-title">' %] |
40 |
[%- span_start = '<span class="patron-title">' -%] |
41 |
[%- span_end = '</span>' %] |
41 |
[%- span_end = '</span>' -%] |
42 |
[%- END %] |
42 |
[%- END -%] |
43 |
[% data.title = data.title | html %] |
43 |
[%- data.title = data.title | html -%] |
44 |
[%- SET data.title = span_start _ data.title _ span_end _ ' ' -%] |
44 |
[%- SET data.title = span_start _ data.title _ span_end _ ' ' -%] |
45 |
[%- END -%] |
45 |
[%- END -%] |
46 |
[%- SET display_patron_name = 1 -%] |
46 |
[%- SET display_patron_name = 1 -%] |
47 |
[%- SET display_cardnumber = 1 -%] |
47 |
[%- SET display_cardnumber = 1 -%] |
48 |
[%- IF no_cardnumber %][% SET display_cardnumber = 0 %][% END -%] |
48 |
[%- IF no_cardnumber -%][%- SET display_cardnumber = 0 -%][%- END -%] |
49 |
[%- IF hide_patron_infos_if_needed %] [%# Should only be set if patron is set -%] |
49 |
[%- IF hide_patron_infos_if_needed -%] [%# Should only be set if patron is set -%] |
50 |
[%- SET can_see_patron_infos = logged_in_user.can_see_patron_infos( patron ) -%] |
50 |
[%- SET can_see_patron_infos = logged_in_user.can_see_patron_infos( patron ) -%] |
51 |
[%- UNLESS can_see_patron_infos -%] |
51 |
[%- UNLESS can_see_patron_infos -%] |
52 |
[%- SET display_patron_name = 0 -%] |
52 |
[%- SET display_patron_name = 0 -%] |
Lines 56-82
Link Here
|
56 |
[%- END -%] |
56 |
[%- END -%] |
57 |
[%- END -%] |
57 |
[%- END -%] |
58 |
[%- IF hide_patron_infos_if_needed AND ( display_patron_name OR display_cardnumber ) -%] |
58 |
[%- IF hide_patron_infos_if_needed AND ( display_patron_name OR display_cardnumber ) -%] |
59 |
[%- IF link_to == 'circulation_reserves' %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% data.borrowernumber | uri %]#reserves"> |
59 |
[%- IF link_to == 'circulation_reserves' -%]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[%- data.borrowernumber | uri -%]#reserves"> |
60 |
[%- ELSIF link_to == 'circulation_recalls' %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% data.borrowernumber | uri %]#recalls"> |
60 |
[%- ELSIF link_to == 'circulation_recalls' -%]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[%- data.borrowernumber | uri -%]#recalls"> |
61 |
[%- ELSIF link_to == 'members_pay' %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]"> |
61 |
[%- ELSIF link_to == 'members_pay' -%]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[%- patron.borrowernumber | uri -%]"> |
62 |
[%- ELSE %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | uri %]"> |
62 |
[%- ELSE -%]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[%- data.borrowernumber | uri -%]"> |
63 |
[%- END -%] |
63 |
[%- END -%] |
64 |
[%- END -%] |
64 |
[%- END -%] |
65 |
[%- IF display_patron_name -%] |
65 |
[%- IF display_patron_name -%] |
66 |
[%- IF data.category_type == 'I' -%] |
66 |
[%- IF data.category_type == 'I' -%] |
67 |
[%- data.surname | html %] [% IF data.othernames %] ([% data.othernames | html %])[% END -%] |
67 |
[%- data.surname | html -%] [%- IF data.othernames -%] ([%- data.othernames | html -%])[%- END -%] |
68 |
[%- ELSIF invert_name -%] |
68 |
[%- ELSIF invert_name -%] |
69 |
[% data.title | $raw %][%- data.surname | html %][% IF ( data.firstname ) %], [% data.firstname | html %][% END %][% IF data.middle_name %] [% data.middle_name | html %][% END %][% IF data.othernames %] ([% data.othernames | html %]) [% END -%] |
69 |
[%- data.title | $raw -%][%- data.surname | html -%][%- IF ( data.firstname ) -%], [%- data.firstname | html -%][%- END -%][%- IF data.middle_name -%] [%- data.middle_name | html -%][%- END -%][%- IF data.othernames -%] ([%- data.othernames | html -%]) [%- END -%] |
70 |
[%- ELSE -%] |
70 |
[%- ELSE -%] |
71 |
[% data.title | $raw %][%- data.firstname | html %][% IF data.middle_name %] [% data.middle_name | html %][% END %][% IF data.othernames %] ([% data.othernames | html %]) [% END %] [% data.surname | html -%] |
71 |
[%- data.title | $raw -%][%- data.firstname | html -%][%- IF data.middle_name -%] [%- data.middle_name | html -%][%- END -%][%- IF data.othernames -%] ([%- data.othernames | html -%]) [%- END -%] [%- data.surname | html -%] |
72 |
[%- END -%] |
72 |
[%- END -%] |
73 |
[%- IF display_cardnumber AND data.cardnumber %] ([% data.cardnumber | html %])[% END -%] |
73 |
[%- IF display_cardnumber AND data.cardnumber -%] ([%- data.cardnumber | html -%])[%- END -%] |
74 |
[%- ELSIF display_cardnumber -%] |
74 |
[%- ELSIF display_cardnumber -%] |
75 |
[%- IF data.cardnumber -%][%# FIXME Cardnumber should always be defined, right? -%] |
75 |
[%- IF data.cardnumber -%][%# FIXME Cardnumber should always be defined, right? -%] |
76 |
[%- data.cardnumber | html -%] |
76 |
[%- data.cardnumber | html -%] |
77 |
[%- END -%] |
77 |
[%- END -%] |
78 |
[%- ELSE -%] |
78 |
[%- ELSE -%] |
79 |
<span>A patron from library [% Branches.GetName( patron.branchcode ) | html -%]</span> |
79 |
<span>A patron from library [%- Branches.GetName( patron.branchcode ) | html -%]</span> |
80 |
[%- END -%] |
80 |
[%- END -%] |
81 |
|
81 |
|
82 |
[%- IF hide_patron_infos_if_needed AND ( display_patron_name OR display_cardnumber ) -%] |
82 |
[%- IF hide_patron_infos_if_needed AND ( display_patron_name OR display_cardnumber ) -%] |
83 |
- |
|
|