http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7417
--- Comment #43 from Paul Poulain <[email protected]> --- UNIMARC QA comment: If I'm not mistaking, http://archive.ifla.org/VI/3/p1996-1/uniafull.htm#4-- says that 4xx are for "see references", it's the same as in marc21 (http://www.loc.gov/marc/authority/ad4xx.html) The 2nd digit is not always the same: UNIMARC = 420 See Reference Tracing - Family Name MARC21 = 420 does not exits The code says # for each field + foreach my $field ( $record->fields() ) { # if there is a link to authorities + my $authid = $field->subfield('9'); # retrieve the authority + my $authority = Koha::Authority->get_from_authid($authid); # if there are seefrom fields + my @seefrom = $auth_marc->field('4..'); # add them in the biblio record # find the biblio record tag + my $tag = substr($field->tag(), 0, 1) . substr($authfield->tag(), 1, 2); # create a new one, where you'll put datas coming from authorities + my $newfield = MARC::Field->new($tag, + 'z', + $authfield->indicator(2) || ' ', + '9' => '1'); # copy each subfield + foreach my $sub ($authfield->subfields()) { + my ($code,$val) = @$sub; + $newfield->add_subfields( $code => $val ); + } What I don't understand is the '9' => '1' You're connecting all biblios to the #1 authority ? why ? Another question = why do you set 1st indicator to 'z' ? Other question = do you have checked performances ? I think that it will be a *big* overhead for rebuild_zebra.pl -b -r (ie= rebuilding all the database) time rebuild_zebra.pl will give us numbers, that we need to have, at least to warn librarians ! Last question = do you also have checked/tested solr ? I see that you write + if ($record_type eq 'biblio' && C4::Context->preference('IncludeSeeFromInSearches')) { + my $normalizer = Koha::RecordProcessor->new( { filters => 'EmbedSeeFromHeadings' } ); + $record = $normalizer->process($record); + } in Koha/SearchEngine/Solr/Index.pm (asking Claire in // to get her feedback on this) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] 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/
