From 06895af7be7041ce6505d78abfa330c97de7b359 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Fri, 8 Aug 2014 10:33:55 -0400 Subject: [PATCH] Make sample config & NCIP.pm aware of NCIP::ILS. This also means loading the ILS modules by giving the fully qualified module name. Signed-off-by: Jason Stephenson --- lib/NCIP.pm | 2 +- t/config_sample/NCIP.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NCIP.pm b/lib/NCIP.pm index 8bc10b5..c5425f6 100644 --- a/lib/NCIP.pm +++ b/lib/NCIP.pm @@ -36,7 +36,7 @@ sub new { $self->{namespace} = $config->('NCIP.namespace.value'); Log::Log4perl->init($config_dir . "/log4perl.conf"); # load the ILS dependent module - my $module = 'NCIP::ILS::' . $config->('NCIP.ils.value'); + my $module = $config->('NCIP.ils.value'); load $module || die "Can not load ILS module $module"; my $ils = $module->new( name => $config->('NCIP.ils.value') ); $self->{'ils'} = $ils; diff --git a/t/config_sample/NCIP.xml b/t/config_sample/NCIP.xml index 75ff303..5cea7d4 100644 --- a/t/config_sample/NCIP.xml +++ b/t/config_sample/NCIP.xml @@ -33,7 +33,7 @@ - + -- 2.11.0