[Koha-bugs] [Bug 12903] UseQueryParse, Staff client search incatalog, Duplicated records massage when adding a record.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 10 17:42:43 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12903

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org
           Severity|critical                    |normal

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Hello Abdou,

You should prefer the mailing list for this kind of questions, to get a
quickest answer :)

> # search duplicate on ISBN, easy and fast..
>     # ... normalize first
>     if ( $result->{isbn} ) {
>         $result->{isbn} =~ s/\(.*$//;
>         $result->{isbn} =~ s/\s+$//;
>         $query = "isbn:$result->{isbn}";
>     }

This will search for the isbn if an isbn is filled when creating the record.
So if you don't fill it, it shouldn't.

You can try to debug in C4/Search.pm:
 141     warn "SEARCH $query";
 142     my ( $error, $searchresults, undef ) = SimpleSearch($query); # FIXME
:: hardcoded !

To know what is the generated query.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list