Main Koha release repository
https://koha-community.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
476 B
29 lines
476 B
package Koha::SearchEngine;
|
|
|
|
use Moose;
|
|
use C4::Context;
|
|
use Koha::SearchEngine::Config;
|
|
|
|
has 'name' => (
|
|
is => 'ro',
|
|
default => sub {
|
|
C4::Context->preference('SearchEngine');
|
|
}
|
|
);
|
|
|
|
has config => (
|
|
is => 'rw',
|
|
lazy => 1,
|
|
default => sub {
|
|
Koha::SearchEngine::Config->new;
|
|
}
|
|
# lazy => 1,
|
|
# builder => '_build_config',
|
|
);
|
|
|
|
#sub _build_config {
|
|
# my ( $self ) = @_;
|
|
# Koha::SearchEngine::Config->new( $self->name );
|
|
#);
|
|
|
|
1;
|
|
|