Skip to content
Snippets Groups Projects
Commit e3623dae authored by welblaud's avatar welblaud Committed by Robert Lange
Browse files

Filter out empty arrays

parent 77fc7691
Branches
Tags
No related merge requests found
......@@ -460,12 +460,11 @@ class EDS extends DefaultRecord
*/
public function getPrimaryAuthors()
{
return array_unique(
$this->extractEbscoDataFromRecordInfo(
'BibRecord/BibRelationships/HasContributorRelationships/*/'
$authors = $this->extractEbscoDataFromRecordInfo(
'BibRecord/BibRelationships/HasContributorRelationships/*/'
. 'PersonEntity/Name/NameFull'
)
);
return array_unique(array_filter($authors));
}
/**
......
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