Skip to content

Commit

Permalink
[FINNA-1076] EAD3: Fix all genreforms not being displayed (vufind-org…
Browse files Browse the repository at this point in the history
  • Loading branch information
siiriylonen authored Oct 3, 2023
1 parent cf9be47 commit 223c7f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/Finna/src/Finna/RecordDriver/SolrEad3.php
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ public function getPhysicalDescriptions()
*/
public function getContentDescription()
{
$genreforms = [];
$xml = $this->getXmlRecord();
if (!isset($xml->controlaccess->genreform)) {
return [];
Expand All @@ -1056,11 +1057,10 @@ public function getContentDescription()
continue;
}
if ($label = $this->getDisplayLabel($genre)) {
return $label[0];
$genreforms[] = $label[0];
}
}

return null;
return $genreforms;
}

/**
Expand Down

0 comments on commit 223c7f2

Please sign in to comment.