use MIME::QuotedPrint;
use MIME::Base64;
use C4::Context;
-use C4::Search;
use C4::Biblio;
use C4::Auth;
use C4::Interface::CGI::Output;
$template2->param(biblionumber => $biblionumber);
my $dat = &bibdata($biblionumber);
- my ($authorcount, $addauthor) = &addauthor($biblionumber);
+ my ($authorcount, $addauthor) = &getaddauthor($biblionumber);
my @items = &ItemInfo(undef, $biblionumber, 'opac');
$dat->{'additional'}=$addauthor->[0]->{'author'};
push (@results, $dat);
}
- $email_header = encode_qp($email_header);
-
- $boundary = "--" . $boundary;
-
+ # Getting template result
+ my $template_res = $template2->output();
# Analysing information and getting mail properties
if ($template_res =~ /<SUBJECT>\n(.*)\n<END_SUBJECT>/s) { $mail{'subject'} = $1; }
else { $mail{'subject'} = "no subject"; }