diff --git a/src/RecordManager/Finna/Record/Marc.php b/src/RecordManager/Finna/Record/Marc.php index a6e7c152..7c5a172e 100644 --- a/src/RecordManager/Finna/Record/Marc.php +++ b/src/RecordManager/Finna/Record/Marc.php @@ -437,6 +437,15 @@ public function toSolrArray(Database $db = null) $data['classification_str_mv'] = $data['classification_txt_mv']; } + // Publisher number + foreach ($this->getPublisherNumbers() as $current) { + $number = $current['id']; + if ('' !== $current['source']) { + $number = '(' . $current['source'] . ')' . $number; + } + $data['ctrlnum'][] = $number; + } + // Original Study Number $data['ctrlnum'] = [ ...(array)$data['ctrlnum'],