[Koha-bugs] [Bug 11137] QueryParser can ignore parts of a Boolean search after the first

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 14 15:28:03 CET 2013


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

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at biblibre.co
                   |                            |m

--- Comment #7 from Jonathan Druart <jonathan.druart at biblibre.com> ---
I cannot test this patch. My MARC21 DB is broken and with my UNIMARC DB, I got
no result.

I tried to debug:

In QueryParser::Driver::PQF::target_syntax, debug is enable.

- with marcflavour=MARC21
QP query for biblioserver:  history #relevance_dsc 
PQF query: @attr 2=102  @or  @or @attr 1=1016 @attr 5=1  @attr 4=6  "history"  
@attr 9=20  @attr 2=102 @attr 5=1  @attr 4=6  "history"   @attr 9=34  @attr
2=102 @attr 5=1  @attr 4=6  "history"

- with marcflavour=UNIMARC
 QP query for biblioserver:  history #relevance_asc 
 PQF query:  @and  @or  @or @attr 1=1016 @attr 4=6  "history"   @attr 9=20 
@attr 2=102 @attr 4=6  "history"   @attr 9=34  @attr 2=102 @attr 4=6  "history"
  @or  @or @attr 1=1016 @attr 4=6  "#relevance_asc"   @attr 9=20  @attr 2=102
@attr 4=6  "#relevance_asc"   @attr 9=34  @attr 2=102 @attr 4=6 
"#relevance_asc"

The call to $self->parse_tree->target_syntax does not remove the modifiers for
UNIMARC. I don't know how continue to investigate.

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


More information about the Koha-bugs mailing list