Fixing bug 2005: ISBN Search
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
42e81b4cdb
commit
32cfac05cf
11
C4/Search.pm
11
C4/Search.pm
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue