Skip to content

Commit

Permalink
[FiNNA-558] Return array instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
tmikkonen committed Feb 29, 2024
1 parent f6805a5 commit cb89b8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/Finna/src/Finna/RecordDriver/SolrMarc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1057,16 +1057,17 @@ public function getManufacturer()
/**
* Get producer
*
* @return string
* @return array
*/
public function getProducer()
{
$result = [];
foreach ($this->getMarcReader()->getFields('264') as $field) {
if ($field['i2'] == 0) {
$result = $this->stripTrailingPunctuation($this->getSubfieldArray($field, ['a', 'b', 'c']));
return $result ? $result[0] : '';
}
}
return $result;
}

/**
Expand Down

0 comments on commit cb89b8f

Please sign in to comment.