http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7421
--- Comment #36 from mathieu saby <mathieu.s...@univ-rennes2.fr> --- I am not sure I understood how Koha is searching authorities, so I explored the code. In authorities-search.inc : - you have 3 choices (main heading, match heading, all headings. - each choice is linked with a value of "marclist" field, passed in the form in an <input>. - main heading => marclist=mainentry - match heading => marclist=match - all heading => marclist=all These data are passed to authorities-home.pl In authorities-home.pl : my ( $results, $total ) = SearchAuthorities( [$marclist], [$and_or], [$excluding], [$operator], [$value], ( $startfrom - 1 ) * $resultsperpage, $resultsperpage, $authtypecode, $orderby ); In C4/AuthoritiesMarc.pm : sub SearchAuthorities { my ($tags, $and_or, $excluding, $operator, $value, $offset,$length,$authtypecode,$sortby,$skipmetadata) = @_; ... elsif ( @$tags[$i] eq "mainentry" ) { $attr = " \@attr 1=Heading "; ... elsif ( @$tags[$i] eq "match" ) { $attr = " \@attr 1=Match "; ... else { # Assume any if no index was specified $attr = " \@attr 1=Any "; There is no specific choice for the "all" value, so the "any" index is used. I wonder if it is normal. But your failing case - Select "default" "contains" "wil" "all headings" > * GSR-1: 0 result > * Dom : 27 results probably means that "Any" index is broken. Mathieu -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/