Addind a reported_tag entry.

the reported tag contains all subfields to report from the authority into the biblio.

NOTE : It is a feature usefull only for OpenCataloger, but OpenCataloger needs it.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-12-13 12:20:41 +01:00 committed by Joshua Ferraro
parent 1c9dadfe3c
commit 0c76ef36ae
1 changed files with 8 additions and 0 deletions

View File

@ -292,10 +292,18 @@ sub SearchAuthorities {
my $sth = $dbh->prepare($query_auth_tag);
$sth->execute($authtypecode);
my $auth_tag_to_report = $sth->fetchrow;
my $reported_tag;
my $mainentry = $authrecord->field($auth_tag_to_report);
if ($mainentry) {
foreach ($mainentry->subfields()) {
$reported_tag .='$'.$_->[0].$_->[1];
}
}
my %newline;
$newline{summary} = $summary;
$newline{authid} = $authid;
$newline{even} = $counter % 2;
$newline{reported_tag} = $reported_tag;
$counter++;
push @finalresult, \%newline;
}## while counter