|
Lines 210-243
sub _search {
Link Here
|
| 210 |
} |
210 |
} |
| 211 |
|
211 |
|
| 212 |
if ( $thesaurus ) { |
212 |
if ( $thesaurus ) { |
| 213 |
# This is calculated in C4/Heading/MARC21.pm - not used for UNIMARC |
|
|
| 214 |
if ($thesaurus eq 'lcsh') { |
| 215 |
$subject_heading_thesaurus = 'a'; |
| 216 |
} elsif ($thesaurus eq 'lcac') { |
| 217 |
$subject_heading_thesaurus = 'b'; |
| 218 |
} elsif ($thesaurus eq 'mesh') { |
| 219 |
$subject_heading_thesaurus = 'c'; |
| 220 |
} elsif ($thesaurus eq 'nal') { |
| 221 |
$subject_heading_thesaurus = 'd'; |
| 222 |
} elsif ($thesaurus eq 'notspecified') { |
| 223 |
$subject_heading_thesaurus = 'n'; |
| 224 |
} elsif ($thesaurus eq 'cash') { |
| 225 |
$subject_heading_thesaurus = 'k'; |
| 226 |
} elsif ($thesaurus eq 'rvm') { |
| 227 |
$subject_heading_thesaurus = 'v'; |
| 228 |
} else { # We stored the value from $7 as the thesaurus if there was one |
| 229 |
$subject_heading_thesaurus = 'z'; |
| 230 |
push @marclist, 'thesaurus-conventions'; |
| 231 |
push @and_or, 'and'; |
| 232 |
push @excluding, ''; |
| 233 |
push @operator, 'is'; |
| 234 |
push @value, $self->{'thesaurus'}; |
| 235 |
} |
| 236 |
push @marclist, 'thesaurus'; |
213 |
push @marclist, 'thesaurus'; |
| 237 |
push @and_or, 'and'; |
214 |
push @and_or, 'and'; |
| 238 |
push @excluding, ''; |
215 |
push @excluding, ''; |
| 239 |
push @operator, 'is'; |
216 |
push @operator, 'is'; |
| 240 |
push @value, $subject_heading_thesaurus; |
217 |
push @value, $thesaurus; |
| 241 |
} |
218 |
} |
| 242 |
|
219 |
|
| 243 |
require Koha::SearchEngine::QueryBuilder; |
220 |
require Koha::SearchEngine::QueryBuilder; |