Ejemplo n.º 1
0
 /**
  * Get an array of all secondary authors (complementing getPrimaryAuthor()).
  *
  * @param bool $onlyPersonalNames Whether to return only personal names (700)
  *
  * @return array
  */
 public function getSecondaryAuthors($onlyPersonalNames = false)
 {
     if (!$onlyPersonalNames) {
         return parent::getSecondaryAuthors();
     }
     $results = [];
     foreach ($this->getMarcRecord()->getFields('700') as $field) {
         if ($name = $field->getSubfield('a')) {
             $results[] = $this->stripTrailingPunctuation($name->getData());
         }
     }
     return $results;
 }