# -------------------------------------------------------------------
sub fetch_service_defs {
- $sclient = OpenSRF::Utils::SettingsClient->new();
my $hash = $sclient->config_value('z3950', 'services');
# overlay config file values with in-db values
# Load the pre-defined Z server configs
# -------------------------------------------------------------------
sub child_init {
- fetch_service_defs();
+ $sclient = OpenSRF::Utils::SettingsClient->new();
$default_service = $sclient->config_value("z3950", "default" );
}
# -------------------------------------------------------------------
sub do_class_search {
+ fetch_service_defs() unless (scalar(keys(%services)));
+
my $self = shift;
my $conn = shift;
my $auth = shift;
# -------------------------------------------------------------------
sub do_service_search {
+ fetch_service_defs() unless (scalar(keys(%services)));
+
my $self = shift;
my $conn = shift;
my $auth = shift;
# -------------------------------------------------------------------
sub do_search {
+ fetch_service_defs() unless (scalar(keys(%services)));
+
my $self = shift;
my $conn = shift;
my $auth = shift;
# and mvr objects
# -------------------------------------------------------------------
sub process_results {
+
+ fetch_service_defs() unless (scalar(keys(%services)));
+
my $results = shift;
my $limit = shift || 10;
my $offset = shift || 0;
# -------------------------------------------------------------------
sub compile_query {
+ fetch_service_defs() unless (scalar(keys(%services)));
+
my $seperator = shift;
my $service = shift;
my $hash = shift;