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

(-)a/Koha/Template/Plugin/Koha.pm (+6 lines)
Lines 20-25 package Koha::Template::Plugin::Koha; Link Here
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use base qw( Template::Plugin );
22
use base qw( Template::Plugin );
23
use Encode qw{encode decode};
23
24
24
use C4::Context;
25
use C4::Context;
25
26
Lines 44-47 sub Preference { Link Here
44
    return C4::Context->preference( $pref );
45
    return C4::Context->preference( $pref );
45
}
46
}
46
47
48
sub Encode {
49
    my ( $self, $value ) = @_;
50
    return encode( 'UTF-8', $value );
51
}
52
47
1;
53
1;
(-)a/circ/renew.pl (-1 / +1 lines)
Lines 6-12 Link Here
6
#
6
#
7
# Koha is free software; you can redistribute it and/or modify it under the
7
# Koha is free software; you can redistribute it and/or modify it under the
8
# terms of the GNU General Public License as published by the Free Software
8
# terms of the GNU General Public License as published by the Free Software
9
# Foundation; either version 2 of the License, or (at your option) any later
9
# Foundation; either version 3 of the License, or (at your option) any later
10
# version.
10
# version.
11
#
11
#
12
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
12
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt (-5 / +3 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE KohaBranchName %]
4
3
5
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
6
5
Lines 30-40 Link Here
30
29
31
                            [% ELSIF error == "no_checkout" %]
30
                            [% ELSIF error == "no_checkout" %]
32
31
33
                                <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.biblio.title %] [% item.biblioitem.subtitle %]</a> ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> ) is not checked out to a patron.</p>
32
                                <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% Koha.Encode( item.biblio.title ) %] [% Koha.Encode( item.biblioitem.subtitle ) %]</a> ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> ) is not checked out to a patron.</p>
34
33
35
                            [% ELSIF error == "too_many" %]
34
                            [% ELSIF error == "too_many" %]
36
35
37
                                <p>[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) has been renewed the maximum number of times by [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )</p>
36
                                <p>[% Koha.Encode( item.biblio.title ) %] [% Koha.Encode( item.biblioitem.subtitle ) %] ( [% item.barcode %] ) has been renewed the maximum number of times by [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )</p>
38
37
39
                                [% IF Koha.Preference('AllowRenewalLimitOverride') %]
38
                                [% IF Koha.Preference('AllowRenewalLimitOverride') %]
40
                                    <form method="post" action="/cgi-bin/koha/circ/renew.pl">
39
                                    <form method="post" action="/cgi-bin/koha/circ/renew.pl">
Lines 75-81 Link Here
75
                    <div class="dialog message">
74
                    <div class="dialog message">
76
                        <h3>Item renewed:</h3>
75
                        <h3>Item renewed:</h3>
77
                        <p>
76
                        <p>
78
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.biblio.title %] [% item.biblioitem.subtitle %]</a>
77
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% Koha.Encode( item.biblio.title ) %] [% Koha.Encode( item.biblioitem.subtitle ) %]</a>
79
                            ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> )
78
                            ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> )
80
                            renewed for
79
                            renewed for
81
                            [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )
80
                            [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )
82
- 

Return to bug 10493