Exemplo n.º 1
0
 /**
  * Get a sortable title for the record (i.e. no leading articles).
  *
  * @return string
  */
 public function getSortTitle()
 {
     $field = $this->getMarcRecord()->getField('245');
     if ($field) {
         $title = $field->getSubfield('a');
         if ($title) {
             $skip = $field->getIndicator(2);
             return substr($title->getData(), $skip);
         }
     }
     return parent::getSortTitle();
 }
Exemplo n.º 2
0
 public function getPrimaryAuthor()
 {
     $author = $this->getMainAuthorEntry();
     if (!$author || !is_array($author)) {
         return parent::getPrimaryAuthor();
     }
     return $author['name'];
 }