View | Details | Raw Unified | Return to bug 13528
Collapse All | Expand All

(-)a/C4/Search.pm (+7 lines)
Lines 1570-1575 sub buildQuery { Link Here
1570
                        $remove_stopwords
1570
                        $remove_stopwords
1571
                    ) = ( 0, 0, 0, 0, 0 );
1571
                    ) = ( 0, 0, 0, 0, 0 );
1572
1572
1573
                    if ( $index eq 'nb' ) {
1574
                        if ( C4::Context->preference("SearchWithISBNVariations") ) {
1575
                            my @isbns = C4::Koha::GetVariationsOfISBN( $operand );
1576
                            $operands[$i] = $operand =  '(nb=' . join(' OR nb=', @isbns) . ')';
1577
                            $indexes[$i] = $index = '';
1578
                        }
1579
                    }
1573
                }
1580
                }
1574
1581
1575
                if(not $index){
1582
                if(not $index){
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 367-372 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
367
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
367
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
368
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
368
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
369
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
369
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
370
('SearchWithISBNVariations','0',NULL,'If enabled, search on all variations of the ISBN','YesNo'),
370
('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'),
371
('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'),
371
('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'),
372
('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'),
372
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
373
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
(-)a/installer/data/mysql/updatedatabase.pl (+10 lines)
Lines 9656-9661 if(CheckVersion($DBversion)) { Link Here
9656
    SetVersion($DBversion);
9656
    SetVersion($DBversion);
9657
}
9657
}
9658
9658
9659
$DBversion = "3.19.00.XXX";
9660
if ( CheckVersion($DBversion) ) {
9661
    $dbh->do(q|
9662
        INSERT INTO systempreferences ( variable, value, options, explanation, type ) VALUES
9663
        ('SearchWithISBNVariations','0',NULL,'If enabled, search on all variations of the ISBN','YesNo')
9664
    |);
9665
    print "Upgrade to $DBversion done (Bug 13528 - Add the SearchWithISBNVariations syspref)\n";
9666
    SetVersion ($DBversion);
9667
}
9668
9659
=head1 FUNCTIONS
9669
=head1 FUNCTIONS
9660
9670
9661
=head2 TableExists($table)
9671
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +7 lines)
Lines 214-216 Searching: Link Here
214
            - Use the following text as separator for UNIMARC authors facets
214
            - Use the following text as separator for UNIMARC authors facets
215
            - pref: UNIMARCAuthorsFacetsSeparator
215
            - pref: UNIMARCAuthorsFacetsSeparator
216
              class: short
216
              class: short
217
- 
217
        -
218
            - When searching on the ISBN index,
219
            - pref: SearchWithISBNVariations
220
              choices:
221
                  yes: "search"
222
                  no: "don't search"
223
            - on all variations of the ISBN. Note that this preference has no effect if UseQueryParser is on.

Return to bug 13528