[Bug 15048] New: subject/genre (650/655) searches fail on searches with $x 'General subdivision' subfield values
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Bug ID: 15048 Summary: subject/genre (650/655) searches fail on searches with $x 'General subdivision' subfield values Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Searching Assignee: gmcharlt@gmail.com Reporter: mtj@kohaaloha.com QA Contact: testopia@bugs.koha-community.org more info to come... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |15047 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15047 [Bug 15047] Genre/Form-655 URL not clickable in opac-detail.pl, with XSLT enabled -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #1 from Mason James <mtj@kohaaloha.com> --- to test bug... 1/ define a 655$a value in a bib, save, reindex 2/ in opac-detail.pl click on its genre/form url, the search should successfully return a result (good!) 3/ next, define both a 655$a *and* 655$x value in a bib, save, reindex 4/ in opac-detail.pl click its genre/form url, the search should FAIL to return a result (BAD!) :/ -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #2 from Mason James <mtj@kohaaloha.com> --- Created attachment 43793 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43793&action=edit successful search on 655$a - 'speedy reads' -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gmcharlt@gmail.com |mtj@kohaaloha.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #3 from Mason James <mtj@kohaaloha.com> --- Created attachment 43794 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43794&action=edit successful search on 655$a - 'speedy reads' -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #4 from Mason James <mtj@kohaaloha.com> --- Created attachment 43795 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43795&action=edit FAILED search on 655$a and 655$x - 'Family -- Fiction' -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #5 from Mason James <mtj@kohaaloha.com> --- my hunch is that the CCL syntax for the search query is incorrect my example returns no results.. (su,complete-subfield:"Family") AND (su,complete-subfield:"Fiction") -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=15047 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #6 from Mason James <mtj@kohaaloha.com> --- (In reply to Mason James from comment #5)
my hunch is that the CCL syntax for the search query is incorrect
my example returns no results.. (su,complete-subfield:"Family") AND (su,complete-subfield:"Fiction")
the other issue is that the 650$x and/or 655$x subfields don't seem to be configured to be indexed by Zebra in.. /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (and others) ..so a query for (su,complete-subfield:"Fiction") would be expected to fail, as that info is located in the unindexed 655$x subfield -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |In Discussion --- Comment #7 from Mason James <mtj@kohaaloha.com> --- (In reply to Mason James from comment #6)
(In reply to Mason James from comment #5)
my hunch is that the CCL syntax for the search query is incorrect
my example returns no results.. (su,complete-subfield:"Family") AND (su,complete-subfield:"Fiction")
the other issue is that the 650$x and/or 655$x subfields don't seem to be configured to be indexed by Zebra in.. /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (and others)
..so a query for (su,complete-subfield:"Fiction") would be expected to fail, as that info is located in the unindexed 655$x subfield
good news, i have a fix for this... i'll attach a patch soon -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #8 from Mason James <mtj@kohaaloha.com> --- Created attachment 44040 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44040&action=edit Bug 15048 - subject/genre (650/655) searches fail on searches with $x 'General subdivision' subfield values to test... 1/ define both a 655$a *and* 655$x value in a bib, save, reindex 2/ in opac-detail.pl click bib's genre/form url, the search should FAIL to return a result (BAD!) :/ 3/ apply patch 4/ copy updated files to your live zebradb dir (or build/install a debian package) $ sudo cp ./etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml \ /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml $ sudo cp etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl \ /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl 5/ run a full zebra reindex 6/ in opac-detail.pl click bib's genre/form url, the search should return a result (GOOD!) :0) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #9 from Mason James <mtj@kohaaloha.com> --- Created attachment 44041 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44041&action=edit SUCCESSFUL search on 655$a and 655$x - 'Family -- Fiction' -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #10 from Mason James <mtj@kohaaloha.com> --- (In reply to Mason James from comment #9)
Created attachment 44041 [details] SUCCESSFUL search on 655$a and 655$x - 'Family -- Fiction'
pic of successful result attached ^ -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|subject/genre (650/655) |Genre (655) searches fail |searches fail on searches |on searches with $x |with $x 'General |'General subdivision' |subdivision' subfield |subfield values |values | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #11 from Mason James <mtj@kohaaloha.com> --- (In reply to Mason James from comment #6)
(In reply to Mason James from comment #5)
my hunch is that the CCL syntax for the search query is incorrect
my example returns no results.. (su,complete-subfield:"Family") AND (su,complete-subfield:"Fiction")
the other issue is that the 650$x and/or 655$x subfields don't seem to be configured to be indexed by Zebra
NOTE: this patch only fixes Genre/Form (655) searches - not subject/650 searches The patch to fix the subject/650 equivalent of this issue will be moved to a separate bug -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Genre (655) searches fail |Genre/Form (655) searches |on searches with $x |fail on searches with $x |'General subdivision' |'General subdivision' |subfield values |subfield values -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=15065 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com --- Comment #12 from Nick Clemens <nick@bywatersolutions.com> --- I can't trigger the error, though searches don't seem to include the $x either before or after the patch. Are there any sysprefs to check? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 --- Comment #13 from Mason James <mtj@kohaaloha.com> --- (In reply to Nick Clemens from comment #12)
I can't trigger the error, though searches don't seem to include the $x either before or after the patch. Are there any sysprefs to check?
Nope, no sysprefs to check. The 'error' is a failed search result. So, if you get a failed search result, then you have triggered the error You may/will need to manually add a 655$x value to your test bib. If you add one, and can't see it - you have an unrelated problem. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15048 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |murphy.daniel.j@edumail.vic | |.gov.au -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org