The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

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 ...@@ -460,12 +460,11 @@ class EDS extends DefaultRecord
*/ */
public function getPrimaryAuthors() public function getPrimaryAuthors()
{ {
return array_unique( $authors = $this->extractEbscoDataFromRecordInfo(
$this->extractEbscoDataFromRecordInfo( 'BibRecord/BibRelationships/HasContributorRelationships/*/'
'BibRecord/BibRelationships/HasContributorRelationships/*/'
. 'PersonEntity/Name/NameFull' . '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