Lines 36-41
use C4::Members;
Link Here
|
36 |
use Koha::Email; |
36 |
use Koha::Email; |
37 |
|
37 |
|
38 |
my $query = new CGI; |
38 |
my $query = new CGI; |
|
|
39 |
my $eds_data = ""; |
40 |
if ( ( eval { C4::Context->preference('EDSEnabled') } ) ) { |
41 |
my $PluginDir = C4::Context->config("pluginsdir"); |
42 |
$PluginDir = $PluginDir . '/Koha/Plugin/EDS'; |
43 |
require $PluginDir . '/opac/eds-methods.pl'; |
44 |
$eds_data = $query->param('eds_data'); |
45 |
} |
39 |
|
46 |
|
40 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user ( |
47 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user ( |
41 |
{ |
48 |
{ |
Lines 86-91
if ( $email_add ) {
Link Here
|
86 |
my $dat = GetBiblioData($biblionumber); |
93 |
my $dat = GetBiblioData($biblionumber); |
87 |
next unless $dat; |
94 |
next unless $dat; |
88 |
my $record = GetMarcBiblio($biblionumber, 1); |
95 |
my $record = GetMarcBiblio($biblionumber, 1); |
|
|
96 |
if((eval{C4::Context->preference('EDSEnabled')})){ |
97 |
if($biblionumber =~m/\|/){ |
98 |
($record,$dat)= ProcessEDSCartItems($biblionumber,$eds_data,$record,$dat); |
99 |
} |
100 |
} |
89 |
my $marcnotesarray = GetMarcNotes( $record, $marcflavour ); |
101 |
my $marcnotesarray = GetMarcNotes( $record, $marcflavour ); |
90 |
my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour ); |
102 |
my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour ); |
91 |
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour ); |
103 |
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour ); |
Lines 122-127
if ( $email_add ) {
Link Here
|
122 |
# Getting template result |
134 |
# Getting template result |
123 |
my $template_res = $template2->output(); |
135 |
my $template_res = $template2->output(); |
124 |
my $body; |
136 |
my $body; |
|
|
137 |
if((eval{C4::Context->preference('EDSEnabled')})){ |
138 |
$template_res = CartSendLinks($template_res,@bibs); |
139 |
} |
125 |
|
140 |
|
126 |
# Analysing information and getting mail properties |
141 |
# Analysing information and getting mail properties |
127 |
|
142 |
|
128 |
- |
|
|