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

Merge branch 'master-v5' into instance/fid

parents 5788cc22 314b13ef
No related merge requests found
......@@ -2158,6 +2158,89 @@ trait SolrMarcFincTrait
return $array;
}
/**
* Get RVK notation
*
* @return array
* @access public
*/
public function getRVK()
{
$array = [];
$rvk = $this->getMarcRecord()->getFields('084');
// if not return void value
if (!$rvk) {
return $array;
} // end if
foreach ($rvk as $key => $line) {
// if subfield with rvk exists
if ($line->getSubfield('2')
&& ($line->getSubfield('2')->getData() == 'rvk')
) {
// get rvk
if ($line->getSubfield('a')) {
$array[] = $line->getSubfield('a')->getData();
} // end if subfield a
} // end if subfield 2
} // end foreach
return $array;
}
/**
* Get BK notation
*
* @return array
* @access public
*/
public function getBK()
{
$array = [];
$bkl = $this->getMarcRecord()->getFields('084');
// if not return void value
if (!$bkl) {
return $array;
} // end if
foreach ($bkl as $key => $line) {
// if subfield with bkl exists
if ($line->getSubfield('2')
&& ($line->getSubfield('2')->getData() == 'bkl')
) {
// get bkl
if ($line->getSubfield('a')) {
$array[] = $line->getSubfield('a')->getData();
} // end if subfield a
} // end if subfield 2
} // end foreach
return $array;
}
/**
* Get DDC notation
*
* @return array
* @access public
*/
public function getDDC()
{
$array = [];
$ddc = $this->getMarcRecord()->getFields('082');
// if not return void value
if (!$ddc) {
return $array;
} // end if
foreach ($ddc as $key => $line) {
// if subfield with ddc exists
if ($line->getSubfield('a')) {
// get rvk
$array[] = $line->getSubfield('a')->getData();
} // end if subfield a
} // end foreach
return $array;
}
/**
* Get an array of citations and references notes.
*
......
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