Skip to content
Snippets Groups Projects
Commit 94050a69 authored by André Lahmann's avatar André Lahmann
Browse files

Merge branch 'master' into issue/7624

parents 9bcea08e f2c1b713
No related merge requests found
...@@ -983,6 +983,30 @@ trait SolrMarcFincTrait ...@@ -983,6 +983,30 @@ trait SolrMarcFincTrait
return []; return [];
} }
/**
* Return a local signature via an consortial defined field with subfield $f.
* Marc field depends on library e.g. 986 for GFZK
*
* @return array
* @link https://intern.finc.info/fincproject/issues/8146
*/
public function getLocalSignature()
{
$retval = [];
$fields = $this->getMarcRecord()
->getFields($this->getLocalMarcFieldOfLibrary());
if (!$fields) {
return null;
}
foreach ($fields as $key => $field) {
if ($q = $field->getSubfield('f')) {
$retval[$key][] = $q->getData();
}
}
return $retval;
}
/** /**
* Get an array of musical heading based on a swb field * Get an array of musical heading based on a swb field
* at the marc field. * at the marc field.
......
...@@ -245,6 +245,20 @@ ...@@ -245,6 +245,20 @@
</td> </td>
</tr> </tr>
<? endif; ?> <? endif; ?>
<? $callnumbers = $this->driver->getLocalSignature(); if (!empty($callnumbers)): ?>
<? $contentDisplayed = true; ?>
<tr>
<th><?=$this->transEsc('Call Number')?>: </th>
<td>
<? foreach ($callnumbers as $field): ?>
<? foreach ($field as $subfield): ?>
<?=trim($this->escapeHtml($subfield))?>
<? endforeach; ?>
<? endforeach; ?>
</td>
</tr>
<? endif; ?>
<? if (!isset($contentDisplayed) || !$contentDisplayed): // Avoid errors if there were no rows above ?> <? if (!isset($contentDisplayed) || !$contentDisplayed): // Avoid errors if there were no rows above ?>
<tr><td><?=$this->transEsc('no_description')?></td></tr> <tr><td><?=$this->transEsc('no_description')?></td></tr>
......
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