@@ -36,7 +36,7 @@ my $input = new CGI;
3636my $dbh = C4::Context-> dbh;
3737
3838
39- our ( $edsusername , $edsprofileid , $edspassword , $edscustomerid , $defaultsearch , $cookieexpiry , $cataloguedbid , $catalogueanprefix , $authtoken , $logerrors , $iprange , $edsinfo , $lastedsinfoupdate , $defaultparams , $defaultEDSQuery , $SessionToken , $GuestTracker , $autocomplete , $autocomplete_mode )=" " ;
39+ our ( $edsusername , $edsprofileid , $edspassword , $edscustomerid , $defaultsearch , $cookieexpiry , $cataloguedbid , $catalogueanprefix , $authtoken , $logerrors , $iprange , $edsinfo , $lastedsinfoupdate , $defaultparams , $defaultEDSQuery , $SessionToken , $GuestTracker , $autocomplete , $autocomplete_mode , $pluginhttppath )=" " ;
4040
4141our $PluginClass =' Koha::Plugin::EDS' ;
4242our $table =' plugin_data' ;
@@ -90,6 +90,7 @@ $catalogueanprefix = "[% catalogueanprefix %]";
9090$authtoken = " [% authtoken %]" ;
9191$logerrors = " [% logerrors %]" ;
9292$iprange = " [% iprange %]" ;
93+ $pluginhttppath = qq( [% PLUGIN_HTTP_PATH %]) ;
9394$edsinfo = Encode::encode(' UTF-8' ,qq( [% edsinfo %]) );
9495# $edsinfo =~ s/\\\\//g;
9596print STDERR " IN METHOD, EDSINFO IS " .$edsinfo ;
@@ -266,7 +267,8 @@ sub EDSGetConfiguration
266267 ' autocomplete_mode' => $autocomplete_mode ,
267268 ' edsusername' => $edsusername ,
268269 ' edsprofileid' => $edsprofileid ,
269- ' edspassword' => $edspassword
270+ ' edspassword' => $edspassword ,
271+ ' pluginhttppath' => $pluginhttppath ,
270272 );
271273 my $JSONConfig = encode_json \%ConfigArray ;
272274 # my $JSONConfig = encode_json '{"defaultsearch":"'.$defaultsearch.'","logerrors":"'.$logerrors.'","iprange":"'.$iprange.'","cookieexpiry":"'.$cookieexpiry.'","cataloguedbid":"'.$cataloguedbid.'","catalogueanprefix":"'.$catalogueanprefix.'","defaultparams":"'.$defaultparams.'","autocomplete": "'.$autocomplete.'", "autocomplete_mode": "'.$autocomplete_mode.'", "edsusername":"'.$edsusername.'", "edsprofileid":"'.$edsprofileid.'", "edspassword":"'.$edspassword.'"}';
0 commit comments