Intranet staff client catalog search
Hello everybody, We have tested search the catalog in (Search the catalog) tab located at the header of staff client more and more times, but the result always gets No results found No results match your search for 'science #'. Although searching the opac gets results correctly, and advanced search in intranet staff client also gets results correctly here: http://library.domain/cgi-bin/koha/opac-search.pl?q=science (opac gets results) and here: http://library.domain:8080/cgi-bin/koha/catalogue/search.pl?q=science (intranet doesn't get any result) We are using Koha 3.16.01, I've tried to use some of Koha 3.16.03 files replacing Koha 3.16.01 files with it like (search.pm, koha.pm, search.pl, results and .inc files, ...etc.) to see if there is a wrong code but no way. also we have instances of koha 3.2 and koha 3.14.x and this type of search is working good. thanks
Hello, It was the system preference ( UseQueryParse )that stopped intranet staff client catalog search when we stopped it the search has been worked correctly. But stopping this system preference affected on adding new catalog records negatively specially Arabic records, Always the message of (duplicated record) appears. Here's the reason: the reason is because (isbn) number in many Arabic records is not necessary in old records i mean it has the value (NULL) in koha DB and when checking isbn numbers it considers the NULL values are for the same record, so it always asking if that record is identical to another one in database or not if we entered the record without (isbn) number, so i think the following snippet of code in (search.pm -->koha v3.16.01) doesn't exclude NULL values when checking record duplication # search duplicate on ISBN, easy and fast.. # ... normalize first if ( $result->{isbn} ) { $result->{isbn} =~ s/\(.*$//; $result->{isbn} =~ s/\s+$//; $query = "isbn:$result->{isbn}"; } I'm asking if that is a bug??? thanks
Please fill a proper bug with all the information you can gather, and we will discuss it on the bug itself. On Wed, Sep 10, 2014 at 12:12 PM, Abdulsalam Yousef <ayousef@kwareict.com> wrote:
Hello, It was the system preference ( UseQueryParse )that stopped intranet staff client catalog search when we stopped it the search has been worked correctly.
But stopping this system preference affected on adding new catalog records negatively specially Arabic records, Always the message of (duplicated record) appears.
Here's the reason: the reason is because (isbn) number in many Arabic records is not necessary in old records i mean it has the value (NULL) in koha DB and when checking isbn numbers it considers the NULL values are for the same record, so it always asking if that record is identical to another one in database or not if we entered the record without (isbn) number, so i think the following snippet of code in (search.pm -->koha v3.16.01)
doesn't exclude NULL values when checking record duplication
# search duplicate on ISBN, easy and fast.. # ... normalize first if ( $result->{isbn} ) { $result->{isbn} =~ s/\(.*$//; $result->{isbn} =~ s/\s+$//; $query = "isbn:$result->{isbn}"; }
I'm asking if that is a bug???
thanks _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
Abdulsalam Yousef schreef op wo 10-09-2014 om 12:25 [+0300]:
We are using Koha 3.16.01, I've tried to use some of Koha 3.16.03 files
replacing Koha 3.16.01 files with it like (search.pm, koha.pm, search.pl, results and .inc files, ...etc.) to see if there is a wrong code but no way.
Never do this. Things are quite possibly broken because of it. If you are going to have a new version, you need to have everything at the new version or nothing, you can't pick and choose files. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (3)
-
Abdulsalam Yousef -
Robin Sheat -
Tomas Cohen Arazi