my $comment = $query->param('comment');
# Since we are already logged in, no need to check credentials again
- # We only need to add OPACBaseURL
+ # when loading a second template.
my $template2 = C4::Templates::gettemplate(
'basket/sendbasket.tt', 'intranet', $query,
);
- $template2->param( OPACBaseURL => C4::Context->preference('OPACBaseURL') );
my @bibs = split( /\//, $bib_list );
my @results;
+[% USE HtmlToText %]
+[% USE Koha %]
+
<SUBJECT>
Your cart
<END_SUBJECT>
-[% USE HtmlToText %]
-
<HEADER>
[% FILTER html2text %]
[% END %]
</p>
+ [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
[% IF ( OPACBaseURL ) %]
<p>
In online catalog: [% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber %]
+[% USE HtmlToText %]
+[% USE Koha %]
+
<SUBJECT>
Your cart
<END_SUBJECT>
-[% USE HtmlToText %]
-
<HEADER>
[% FILTER html2text %]
[% END %]
</p>
+ [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
[% IF ( OPACBaseURL ) %]
<p>
In online catalog: [% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber %]
$mail{'X-Abuse-Report'} = C4::Context->preference('KohaAdminEmailAddress');
# Since we are already logged in, no need to check credentials again
- # We only need to add OPACBaseURL
+ # when loading a second template.
my $template2 = C4::Templates::gettemplate(
'opac-sendbasket.tt', 'opac', $query,
);
- $template2->param( OPACBaseURL => C4::Context->preference('OPACBaseURL') );
my @bibs = split( /\//, $bib_list );
my @results;