Lines 15-22
Link Here
|
15 |
# You should have received a copy of the GNU General Public License |
15 |
# You should have received a copy of the GNU General Public License |
16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
17 |
|
17 |
|
18 |
use strict; |
18 |
use Modern::Perl; |
19 |
use warnings; |
|
|
20 |
|
19 |
|
21 |
use CGI qw ( -utf8 ); |
20 |
use CGI qw ( -utf8 ); |
22 |
use Encode qw(encode); |
21 |
use Encode qw(encode); |
Lines 29-35
use C4::Biblio;
Link Here
|
29 |
use C4::Items; |
28 |
use C4::Items; |
30 |
use C4::Auth; |
29 |
use C4::Auth; |
31 |
use C4::Output; |
30 |
use C4::Output; |
32 |
use C4::Biblio; |
31 |
use C4::Templates (); |
33 |
use Koha::Email; |
32 |
use Koha::Email; |
34 |
|
33 |
|
35 |
my $query = new CGI; |
34 |
my $query = new CGI; |
Lines 53-67
if ( $email_add ) {
Link Here
|
53 |
my $email = Koha::Email->new(); |
52 |
my $email = Koha::Email->new(); |
54 |
my %mail = $email->create_message_headers({ to => $email_add }); |
53 |
my %mail = $email->create_message_headers({ to => $email_add }); |
55 |
my $comment = $query->param('comment'); |
54 |
my $comment = $query->param('comment'); |
56 |
my ( $template2, $borrowernumber, $cookie ) = get_template_and_user( |
55 |
|
57 |
{ |
56 |
# Since we are already logged in, no need to check credentials again |
58 |
template_name => "basket/sendbasket.tt", |
57 |
# We only need to add OPACBaseURL |
59 |
query => $query, |
58 |
my $template2 = C4::Templates::gettemplate( |
60 |
type => "intranet", |
59 |
'basket/sendbasket.tt', 'intranet', $query, |
61 |
authnotrequired => 0, |
|
|
62 |
flagsrequired => { catalogue => 1 }, |
63 |
} |
64 |
); |
60 |
); |
|
|
61 |
$template2->param( OPACBaseURL => C4::Context->preference('OPACBaseURL') ); |
65 |
|
62 |
|
66 |
my @bibs = split( /\//, $bib_list ); |
63 |
my @bibs = split( /\//, $bib_list ); |
67 |
my @results; |
64 |
my @results; |