Fixing bug 2005: ISBN Search

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Joshua Ferraro 2008-04-09 05:15:37 -04:00
parent 42e81b4cdb
commit 32cfac05cf
2 changed files with 13 additions and 4 deletions

View File

@ -967,10 +967,19 @@ sub buildQuery {
$remove_stopwords
) = ( 0, 0, 0, 0, 0 );
}
# ISBN,ISSN,Standard Number, don't need special treatment
elsif ( $index eq 'nb' || $index eq 'ns' ) {
$indexes_set++;
(
$stemming, $auto_truncation,
$weight_fields, $fuzzy_enabled,
$remove_stopwords
) = ( 0, 0, 0, 0, 0 );
}
# Set default structure attribute (word list)
my $struct_attr;
unless ( !$index || $index =~ /(st-|phr|ext|wrdl)/ ) {
unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl)/ ) {
$struct_attr = ",wrdl";
}

View File

@ -39,10 +39,10 @@
<!-- TMPL_ELSE -->
<option value="su">Subject</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ms_isbn" -->
<option selected="selected" value="isbn">ISBN</option>
<!-- TMPL_IF NAME="ms_nb" -->
<option selected="selected" value="nb">ISBN</option>
<!-- TMPL_ELSE -->
<option value="isbn">ISBN</option>
<option value="nb">ISBN</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ms_se" -->
<option selected="selected" value="se">Series</option>