Beispiel #1
0
 /**
  * GetResponsible
  *
  * @param String                           $titleStatement TitleStatement
  * @param \VuFind\RecordDriver\SolrDefault $record         RecordDriver
  *
  * @return string
  */
 public function getResponsible($titleStatement, $record)
 {
     if ($record instanceof \VuFind\RecordDriver\Summon) {
         if ($record->getAuthor()) {
             return $record->getAuthor();
         }
     } else {
         if (isset($titleStatement['statement_responsibility'])) {
             return $titleStatement['statement_responsibility'];
         } elseif ($record->getPrimaryAuthor(true)) {
             return $record->getPrimaryAuthor();
         } elseif ($record->getSecondaryAuthors(true)) {
             return implode('; ', $record->getSecondaryAuthors());
         } elseif ($record->getCorporationNames(true)) {
             return implode('; ', $record->getCorporationNames());
         } else {
             return '';
         }
     }
 }