[Koha-bugs] [Bug 7421] UNIMARC authorities DOM indexing mode
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 10 22:15:18 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7421
--- Comment #36 from mathieu saby <mathieu.saby at 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.
More information about the Koha-bugs
mailing list