Skip to content
Snippets Groups Projects
Commit c92c46f6 authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #17203 [fid_bbi] 773g as fallback for page numbers in getBookComponentPartContainerTitle

parent 3b04dea2
No related merge requests found
...@@ -164,11 +164,18 @@ trait SolrMarcFincTrait ...@@ -164,11 +164,18 @@ trait SolrMarcFincTrait
$text = $t->getData(); $text = $t->getData();
$d = $marc773->getSubfield('d'); $d = $marc773->getSubfield('d');
if (!empty($d)) $text .= ', '.$d->getData(); if (!empty($d)) $text .= ', '.$d->getData();
if ($marc936 = $this->getMarcRecord()->getField('936')) if (
$marc936 = $this->getMarcRecord()->getField('936')
&&
$h = $marc936->getSubfield('h')
)
{ {
if ($h = $marc936->getSubfield('h')) $text .= ', S. '.$h->getData();
}
else {
foreach ($marc773->getSubfields('g') as $sub)
{ {
$text .= ', S. '.$h->getData(); $text .= ', '.$sub->getData();
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment