View | Details | Raw Unified | Return to bug 21137
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc (-5 / +8 lines)
Lines 1-5 Link Here
1
[% IF category_type == 'I' %]
1
[%- IF patron.category.category_type == 'I' -%]
2
    [% surname %] [% IF othernames %] ([% othernames %]) [% END %]
2
    [% patron.surname %][% IF patron.othernames %] ([% patron.othernames %]) [%- END -%]
3
[% ELSE %]
3
[%- ELSE -%]
4
    [% firstname %] [% surname %]
4
    [%- IF patron.title -%]
5
[% END %]
5
        <span class="patron-title">[% patron.title %]</span>
6
    [%- END -%]
7
    [% patron.firstname %] [% patron.surname %]
8
[%- END -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account-pay-error.tt (-1 / +1 lines)
Lines 9-15 Link Here
9
<div class="main">
9
<div class="main">
10
    <ul class="breadcrumb">
10
    <ul class="breadcrumb">
11
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
11
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
12
        <li><a href="/cgi-bin/koha/opac-user.pl">[% borrower.firstname %] [% borrower.surname %]</a> <span class="divider">&rsaquo;</span></li>
12
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
13
        <li><a href="#">Your payment</a></li>
13
        <li><a href="#">Your payment</a></li>
14
    </ul>
14
    </ul>
15
15
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt (-1 / +1 lines)
Lines 19-25 Link Here
19
<div class="main">
19
<div class="main">
20
    <ul class="breadcrumb">
20
    <ul class="breadcrumb">
21
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
21
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
22
        <li>[% IF BORROWER_INFO %]<a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INFO.firstname %] [% BORROWER_INFO.surname %]</a>[% END %] <span class="divider">&rsaquo;</span></li>
22
        <li>[% IF logged_in_user %]<a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>[% END %] <span class="divider">&rsaquo;</span></li>
23
        <li><a href="#">Your fines and charges</a></li>
23
        <li><a href="#">Your fines and charges</a></li>
24
    </ul>
24
    </ul>
25
25
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-1 / +1 lines)
Lines 17-23 Link Here
17
    <ul class="breadcrumb noprint">
17
    <ul class="breadcrumb noprint">
18
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
18
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
19
        [% IF ( logged_in_user ) %]
19
        [% IF ( logged_in_user ) %]
20
            <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE patron-title.inc patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
20
            <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
21
        [% END %]
21
        [% END %]
22
22
23
        [% IF method != 'list' %]
23
        [% IF method != 'list' %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-issue-note.tt (-1 / +1 lines)
Lines 12-18 Link Here
12
<div class="main">
12
<div class="main">
13
    <ul class="breadcrumb">
13
    <ul class="breadcrumb">
14
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
14
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
15
        <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a><span class="divider">&rsaquo;</span></li>
15
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a><span class="divider">&rsaquo;</span></li>
16
        <li><a href="#">Editing issue note for [% ISSUE.title %] - [% ISSUE.author %]</a></li>
16
        <li><a href="#">Editing issue note for [% ISSUE.title %] - [% ISSUE.author %]</a></li>
17
    </ul>
17
    </ul>
18
18
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry-update-submitted.tt (-1 / +1 lines)
Lines 10-16 Link Here
10
    <div class="main">
10
    <div class="main">
11
        <ul class="breadcrumb">
11
        <ul class="breadcrumb">
12
            <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
12
            <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13
            <li><a href="/cgi-bin/koha/opac-user.pl">[% borrower.firstname %] [% borrower.surname %]</a> <span class="divider">&rsaquo;</span></li>
13
            <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
14
            <li><a href="#">Updates to your record</a></li>
14
            <li><a href="#">Updates to your record</a></li>
15
        </ul>
15
        </ul>
16
16
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +1 lines)
Lines 24-30 Link Here
24
    <ul class="breadcrumb">
24
    <ul class="breadcrumb">
25
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
25
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
26
        [% IF action == 'edit' %]
26
        [% IF action == 'edit' %]
27
            <li><a href="/cgi-bin/koha/opac-user.pl">[% borrower.firstname %] [% borrower.surname %]</a> <span class="divider">&rsaquo;</span></li>
27
            <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
28
            <li><a href="#">Your personal details</a></li>
28
            <li><a href="#">Your personal details</a></li>
29
        [% ELSE %]
29
        [% ELSE %]
30
            <li><a href="#">Register a new account</a></li>
30
            <li><a href="#">Register a new account</a></li>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (-1 / +1 lines)
Lines 10-16 Link Here
10
<div class="main">
10
<div class="main">
11
    <ul class="breadcrumb">
11
    <ul class="breadcrumb">
12
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
12
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13
        <li><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INFO.firstname %] [% BORROWER_INFO.surname %]</a> <span class="divider">&rsaquo;</span></li>
13
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
14
        <li><a href="#">Your messaging settings</a></li>
14
        <li><a href="#">Your messaging settings</a></li>
15
    </ul>
15
    </ul>
16
16
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt (-1 / +1 lines)
Lines 11-17 Link Here
11
<div class="main">
11
<div class="main">
12
    <ul class="breadcrumb">
12
    <ul class="breadcrumb">
13
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
14
        <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a> <span class="divider">&rsaquo;</span></li>
14
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
15
        <li><a href="#">Change your password</a></li>
15
        <li><a href="#">Change your password</a></li>
16
    </ul>
16
    </ul>
17
17
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt (-1 / +1 lines)
Lines 10-16 Link Here
10
<div class="main">
10
<div class="main">
11
    <ul class="breadcrumb">
11
    <ul class="breadcrumb">
12
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
12
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13
        <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a> <span class="divider">&rsaquo;</span></li>
13
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
14
        <li><a href="#">Your privacy management</a></li>
14
        <li><a href="#">Your privacy management</a></li>
15
    </ul>
15
    </ul>
16
16
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-1 / +1 lines)
Lines 19-25 Link Here
19
<div class="main">
19
<div class="main">
20
    <ul class="breadcrumb">
20
    <ul class="breadcrumb">
21
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
21
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
22
        <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a> <span class="divider">&rsaquo;</span></li>
22
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
23
        <li><a href="#">Your checkout history</a></li>
23
        <li><a href="#">Your checkout history</a></li>
24
    </ul>
24
    </ul>
25
25
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-routing-lists.tt (-1 / +1 lines)
Lines 15-21 Link Here
15
<div class="main">
15
<div class="main">
16
    <ul class="breadcrumb">
16
    <ul class="breadcrumb">
17
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
17
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
18
        <li><a href="/cgi-bin/koha/opac-routing-lists.pl">[% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]</a> <span class="divider">&rsaquo;</span></li>
18
        <li><a href="/cgi-bin/koha/opac-routing-lists.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
19
        <li><a href="#">Your routing lists</a></li>
19
        <li><a href="#">Your routing lists</a></li>
20
    </ul>
20
    </ul>
21
21
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-22 / +22 lines)
Lines 25-31 Link Here
25
<div class="main">
25
<div class="main">
26
    <ul class="breadcrumb">
26
    <ul class="breadcrumb">
27
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
27
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
28
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]</a> <span class="divider">&rsaquo;</span></li>
28
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
29
        <li><a href="#">Your summary</a></li>
29
        <li><a href="#">Your summary</a></li>
30
    </ul>
30
    </ul>
31
31
Lines 41-50 Link Here
41
41
42
                    [% INCLUDE 'opac-note.inc' %]
42
                    [% INCLUDE 'opac-note.inc' %]
43
43
44
                    <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]
44
                    <h2>Hello, [% INCLUDE 'patron-title.inc' patron = logged_in_user %]
45
                    </h2>
45
                    </h2>
46
46
47
                    <p><a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here if you're not [% BORROWER_INFO.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]</a></p>
47
                    <p><a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here if you're not [% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a></p>
48
48
49
                    [% IF ( patronupdate ) %]<div class="alert alert-info"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
49
                    [% IF ( patronupdate ) %]<div class="alert alert-info"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
50
50
Lines 55-70 Link Here
55
                        </div>
55
                        </div>
56
                    [% END %]
56
                    [% END %]
57
57
58
                    [% IF ( BORROWER_INFO.warndeparture ) %]
58
                    [% IF ( borrower.warndeparture ) %]
59
                        <div class="alert" id="warndeparture">
59
                        <div class="alert" id="warndeparture">
60
                            <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% BORROWER_INFO.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
60
                            <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% borrower.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
61
                                [% IF ( BORROWER_INFO.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
61
                                [% IF ( borrower.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
62
                        </div>
62
                        </div>
63
                    [% END %]
63
                    [% END %]
64
64
65
                    [% IF ( BORROWER_INFO.warnexpired ) %]
65
                    [% IF ( borrower.warnexpired ) %]
66
                        <div class="alert" id="warnexpired">
66
                        <div class="alert" id="warnexpired">
67
                            <strong>Please note: </strong><span>Your account has expired as of [% BORROWER_INFO.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
67
                            <strong>Please note: </strong><span>Your account has expired as of [% borrower.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
68
                        </div>
68
                        </div>
69
                    [% END %]
69
                    [% END %]
70
70
Lines 98-130 Link Here
98
                                        </li>
98
                                        </li>
99
                                    [% ELSE %]
99
                                    [% ELSE %]
100
                                        <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
100
                                        <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
101
                                        [% IF ( BORROWER_INFO.debarredcomment ) %]
101
                                        [% IF ( borrower.debarredcomment ) %]
102
                                            Comment:
102
                                            Comment:
103
                                            <span id="userdebarred_comment">
103
                                            <span id="userdebarred_comment">
104
                                                <strong>
104
                                                <strong>
105
                                                    [% IF BORROWER_INFO.debarredcomment.search('OVERDUES_PROCESS') %]
105
                                                    [% IF borrower.debarredcomment.search('OVERDUES_PROCESS') %]
106
                                                        Restriction added by overdues process [% BORROWER_INFO.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
106
                                                        Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
107
                                                    [% ELSE %]
107
                                                    [% ELSE %]
108
                                                        [% BORROWER_INFO.debarredcomment | html_line_break %]
108
                                                        [% borrower.debarredcomment | html_line_break %]
109
                                                    [% END %]
109
                                                    [% END %]
110
                                                </strong>
110
                                                </strong>
111
                                            </span>
111
                                            </span>
112
                                        [% END %]
112
                                        [% END %]
113
                                        [% IF ( BORROWER_INFO.userdebarreddate && debarred_date != '9999-12-31' ) %]
113
                                        [% IF ( borrower.userdebarreddate && debarred_date != '9999-12-31' ) %]
114
                                            End date:
114
                                            End date:
115
                                            <span id="userdebarred_date">[% BORROWER_INFO.userdebarreddate | $KohaDates %]</span>
115
                                            <span id="userdebarred_date">[% borrower.userdebarreddate | $KohaDates %]</span>
116
                                        [% END %]
116
                                        [% END %]
117
117
118
                                        <em>Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library.</em> <a href="/cgi-bin/koha/opac-account.pl">Go to your account page</a></li>
118
                                        <em>Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library.</em> <a href="/cgi-bin/koha/opac-account.pl">Go to your account page</a></li>
119
                                    [% END %]
119
                                    [% END %]
120
                                [% END %]
120
                                [% END %]
121
                                [% IF ( BORROWER_INFO.gonenoaddress ) %]
121
                                [% IF ( borrower.gonenoaddress ) %]
122
                                    <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
122
                                    <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
123
                                <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
123
                                <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
124
                                [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
124
                                [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
125
                                    </li>
125
                                    </li>
126
                                [% END %]
126
                                [% END %]
127
                                [% IF ( BORROWER_INFO.lost ) %]
127
                                [% IF ( borrower.lost ) %]
128
                                    <li id="lost"><strong>Please note: </strong> Your library card has been marked as lost or stolen. <em>If this is an error, please contact the library.</em></li>
128
                                    <li id="lost"><strong>Please note: </strong> Your library card has been marked as lost or stolen. <em>If this is an error, please contact the library.</em></li>
129
                                [% END %]
129
                                [% END %]
130
                                [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
130
                                [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
Lines 145-153 Link Here
145
                            [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
145
                            [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
146
                            [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
146
                            [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
147
                            [% IF ( OPACFinesTab ) %]
147
                            [% IF ( OPACFinesTab ) %]
148
                                [% IF ( BORROWER_INFO.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
148
                                [% IF ( borrower.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
149
                                [% IF ( BORROWER_INFO.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
149
                                [% IF ( borrower.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
150
                                [% IF ( BORROWER_INFO.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding | $Price %])</a></li>[% END %]
150
                                [% IF ( borrower.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding | $Price %])</a></li>[% END %]
151
                            [% END %]
151
                            [% END %]
152
152
153
                            [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
153
                            [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
Lines 371-377 Link Here
371
371
372
                        [% IF ( OPACFinesTab ) %]
372
                        [% IF ( OPACFinesTab ) %]
373
                            <!-- FINES BOX -->
373
                            <!-- FINES BOX -->
374
                            [% IF BORROWER_INFO.amountoverfive %]
374
                            [% IF borrower.amountoverfive %]
375
                                <div id="opac-user-fines"> <h3>Fines and charges</h3>
375
                                <div id="opac-user-fines"> <h3>Fines and charges</h3>
376
                                    <table class="table table-bordered table-striped">
376
                                    <table class="table table-bordered table-striped">
377
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
377
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
Lines 385-391 Link Here
385
                                </div>
385
                                </div>
386
                            [% END %]
386
                            [% END %]
387
387
388
                            [% IF BORROWER_INFO.amountoverzero %]
388
                            [% IF borrower.amountoverzero %]
389
                               <div id="opac-user-fines"> <h3>Fines and charges</h3>
389
                               <div id="opac-user-fines"> <h3>Fines and charges</h3>
390
                                    <table class="table table-bordered table-striped">
390
                                    <table class="table table-bordered table-striped">
391
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
391
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
Lines 399-405 Link Here
399
                                </div>
399
                                </div>
400
                            [% END %]
400
                            [% END %]
401
401
402
                            [% IF BORROWER_INFO.amountlessthanzero %]
402
                            [% IF borrower.amountlessthanzero %]
403
                                <div id="opac-user-fines">  <h3>Credits</h3>
403
                                <div id="opac-user-fines">  <h3>Credits</h3>
404
                                    <table class="table table-bordered table-striped">
404
                                    <table class="table table-bordered table-striped">
405
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
405
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
(-)a/opac/opac-account.pl (-6 lines)
Lines 40-51 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
40
);
40
);
41
41
42
my $patron = Koha::Patrons->find( $borrowernumber );
42
my $patron = Koha::Patrons->find( $borrowernumber );
43
my $category = $patron->category;
44
my $borrower= $patron->unblessed;
45
$borrower->{description} = $category->description;
46
$borrower->{category_type} = $category->category_type;
47
$template->param( BORROWER_INFO => $borrower );
48
49
my $total = $patron->account->balance;
43
my $total = $patron->account->balance;
50
my $accts = Koha::Account::Lines->search(
44
my $accts = Koha::Account::Lines->search(
51
    { borrowernumber => $patron->borrowernumber },
45
    { borrowernumber => $patron->borrowernumber },
(-)a/opac/opac-messaging.pl (-1 / +1 lines)
Lines 71-77 if ( defined $query->param('modify') && $query->param('modify') eq 'yes' ) { Link Here
71
71
72
C4::Form::MessagingPreferences::set_form_values({ borrowernumber     => $patron->borrowernumber }, $template);
72
C4::Form::MessagingPreferences::set_form_values({ borrowernumber     => $patron->borrowernumber }, $template);
73
73
74
$template->param( BORROWER_INFO         => $patron->unblessed,
74
$template->param(
75
                  messagingview         => 1,
75
                  messagingview         => 1,
76
                  SMSnumber             => $patron->smsalertnumber, # FIXME This is already sent 2 lines above
76
                  SMSnumber             => $patron->smsalertnumber, # FIXME This is already sent 2 lines above
77
                  SMSSendDriver                =>  C4::Context->preference("SMSSendDriver"),
77
                  SMSSendDriver                =>  C4::Context->preference("SMSSendDriver"),
(-)a/opac/opac-routing-lists.pl (-5 lines)
Lines 42-52 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
42
);
42
);
43
43
44
my $patron = Koha::Patrons->find( $borrowernumber );
44
my $patron = Koha::Patrons->find( $borrowernumber );
45
my $category = $patron->category;
46
my $borrower= $patron->unblessed;
47
$borrower->{description} = $category->description;
48
$borrower->{category_type} = $category->category_type;
49
$template->param( BORROWER_INFO => $borrower );
50
45
51
$template->param(
46
$template->param(
52
    routinglistsview => 1,
47
    routinglistsview => 1,
(-)a/opac/opac-user.pl (-3 / +1 lines)
Lines 163-169 if ( $borr->{'dateexpiry'} && C4::Context->preference('NotifyBorrowerDeparture') Link Here
163
# pass on any renew errors to the template for displaying
163
# pass on any renew errors to the template for displaying
164
my $renew_error = $query->param('renew_error');
164
my $renew_error = $query->param('renew_error');
165
165
166
$template->param(   BORROWER_INFO     => $borr,
166
$template->param(
167
                    amountoutstanding => $amountoutstanding,
167
                    amountoutstanding => $amountoutstanding,
168
                    borrowernumber    => $borrowernumber,
168
                    borrowernumber    => $borrowernumber,
169
                    patron_flagged    => $borr->{flagged},
169
                    patron_flagged    => $borr->{flagged},
Lines 350-356 if ( C4::Context->preference('AllowPatronToSetCheckoutsVisibilityForGuarantor' Link Here
350
}
350
}
351
351
352
$template->param(
352
$template->param(
353
    borrower                 => scalar Koha::Patrons->find($borrowernumber),
354
    patron_messages          => $patron_messages,
353
    patron_messages          => $patron_messages,
355
    opacnote                 => $borr->{opacnote},
354
    opacnote                 => $borr->{opacnote},
356
    patronupdate             => $patronupdate,
355
    patronupdate             => $patronupdate,
357
- 

Return to bug 21137