From 3c5b6cf888ba2655676eb6213be25178e366166d Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Fri, 1 Jun 2018 13:19:26 +1200 Subject: [PATCH] proposed way to fix . not being included in @INC This same thing will need to be done to all of the .pl files in the EDS/opac that include eds-methods.pl --- Koha/Plugin/EDS/opac/eds-raw.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Koha/Plugin/EDS/opac/eds-raw.pl b/Koha/Plugin/EDS/opac/eds-raw.pl index d593070..2dd408c 100755 --- a/Koha/Plugin/EDS/opac/eds-raw.pl +++ b/Koha/Plugin/EDS/opac/eds-raw.pl @@ -47,13 +47,14 @@ my $input = new CGI; my $dbh = C4::Context->dbh; -require 'eds-methods.pl'; +my $PluginDir = dirname(abs_path($0)); +require "$PluginDir/eds-methods.pl"; + if($input->param("api") eq 'pub'){our $apiType="publication";} my $EDSConfig = decode_json(EDSGetConfiguration()); #{if($EDSConfig->{logerrors} eq 'no'){no warnings;local $^W = 0;} {no warnings;local $^W = 0; -my $PluginDir = dirname(abs_path($0)); $PluginDir =~s /EDS\/opac/EDS/; $PluginDir = $PluginDir.'/'.C4::Context->preference('opacthemes'); @@ -126,4 +127,4 @@ $cookie = [$cookie, $SessionToken, $GuestMode]; output_html_with_http_headers $input, $cookie, $template->output; -}#end no warnings \ No newline at end of file +}#end no warnings