Bug 23315: (follow-up) Add configuration to enable CodeMirror
[koha.git] / Koha / SearchEngine.pm
blob70ef7997d595c6457aaa5659a5ae77eda6206894
1 package Koha::SearchEngine;
2 # This handles generic search-engine related functions
4 # Copyright 2015 Catalyst IT
6 # This file is part of Koha.
8 # Koha is free software; you can redistribute it and/or modify it under the
9 # terms of the GNU General Public License as published by the Free Software
10 # Foundation; either version 3 of the License, or (at your option) any later
11 # version.
13 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with Koha; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 use Modern::Perl;
22 use Readonly;
24 =head1 NAME
26 Koha::SearchEngine - non-engine-specific data and functions
28 =head1 VARIABLES / CONSTANTS
30 =head2 BIBLIOS_INDEX
32 Use this constant when creating a new L<Koha::SearchEngine::Search> instance
33 to indicate that you want to be working with the biblio index.
35 =head2 AUTHORITIES_INDEX
37 Use this constant when creating a new L<Koha::SearchEngine::Search> instance to
38 indicate that you want to be working with the authorities index.
40 =cut
42 # Search engine implementations should compare against these to determine
43 # what bit of storage is being requested. They will be sensible strings so
44 # may be used for, e.g., directory names.
45 Readonly our $BIBLIOS_INDEX => 'biblios';
46 Readonly our $AUTHORITIES_INDEX => 'authorities';