Bug 8204 follow-up: quiet warn
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 27 Jul 2012 11:53:06 +0000 (07:53 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 1 Aug 2012 12:59:11 +0000 (14:59 +0200)
Also removes unnecessary variable declaration. Thanks to Jonathan Druart
for spotting it.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
C4/AuthoritiesMarc.pm

index 90c253a..9ba916d 100644 (file)
@@ -971,7 +971,6 @@ sub BuildSummary {
     $thesaurus{'5'}="Lieux";
     $thesaurus{'6'}="Sujets";
     #thesaurus a remplir
-    my @fields = $record->fields();
     my $reported_tag;
 # if the library has a summary defined, use it. Otherwise, build a standard one
 # FIXME - it appears that the summary field in the authority frameworks
@@ -1014,7 +1013,6 @@ sub BuildSummary {
     my @seefrom;
     my @seealso;
     my @otherscript;
-    my @fields = $record->fields();
     if (C4::Context->preference('marcflavour') eq 'UNIMARC') {
 # construct UNIMARC summary, that is quite different from MARC21 one
 # accepted form