|
Lines 194-199
sub _search {
Link Here
|
| 194 |
my $self = shift; |
194 |
my $self = shift; |
| 195 |
my $index = shift || undef; |
195 |
my $index = shift || undef; |
| 196 |
my $skipmetadata = shift || undef; |
196 |
my $skipmetadata = shift || undef; |
|
|
197 |
my $ind2 = $self->{field}->{_ind2}; |
| 198 |
my $subject_heading_thesaurus = ''; |
| 197 |
my @marclist; |
199 |
my @marclist; |
| 198 |
my @and_or; |
200 |
my @and_or; |
| 199 |
my @excluding = []; |
201 |
my @excluding = []; |
|
Lines 207-219
sub _search {
Link Here
|
| 207 |
push @value, $self->{'search_form'}; |
209 |
push @value, $self->{'search_form'}; |
| 208 |
} |
210 |
} |
| 209 |
|
211 |
|
| 210 |
# if ($self->{'thesaurus'}) { |
212 |
if ($self->{'thesaurus'}) { |
| 211 |
# push @marclist, 'thesaurus'; |
213 |
if ($ind2 eq '0') { |
| 212 |
# push @and_or, 'AND'; |
214 |
$subject_heading_thesaurus = 'a'; |
| 213 |
# push @excluding, ''; |
215 |
} elsif ($ind2 eq '1') { |
| 214 |
# push @operator, 'is'; |
216 |
$subject_heading_thesaurus = 'b'; |
| 215 |
# push @value, $self->{'thesaurus'}; |
217 |
} elsif ($ind2 eq '2') { |
| 216 |
# } |
218 |
$subject_heading_thesaurus = 'c'; |
|
|
219 |
} elsif ($ind2 eq '3') { |
| 220 |
$subject_heading_thesaurus = 'd'; |
| 221 |
} elsif ($ind2 eq '4') { |
| 222 |
$subject_heading_thesaurus = 'n'; |
| 223 |
} elsif ($ind2 eq '5') { |
| 224 |
$subject_heading_thesaurus = 'k'; |
| 225 |
} elsif ($ind2 eq '6') { |
| 226 |
$subject_heading_thesaurus = 'v'; |
| 227 |
} else { |
| 228 |
$subject_heading_thesaurus = 'z'; |
| 229 |
} |
| 230 |
push @marclist, 'thesaurus'; |
| 231 |
push @and_or, 'and'; |
| 232 |
push @excluding, ''; |
| 233 |
push @operator, 'is'; |
| 234 |
push @value, $subject_heading_thesaurus; |
| 235 |
} |
| 236 |
|
| 237 |
if ($ind2 eq '7') { |
| 238 |
push @marclist, 'thesaurus-conventions'; |
| 239 |
push @and_or, 'and'; |
| 240 |
push @excluding, ''; |
| 241 |
push @operator, 'is'; |
| 242 |
push @value, $self->{'thesaurus'}; |
| 243 |
} |
| 217 |
|
244 |
|
| 218 |
require Koha::SearchEngine::QueryBuilder; |
245 |
require Koha::SearchEngine::QueryBuilder; |
| 219 |
require Koha::SearchEngine::Search; |
246 |
require Koha::SearchEngine::Search; |