/** * 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(); }
public function getPrimaryAuthor() { $author = $this->getMainAuthorEntry(); if (!$author || !is_array($author)) { return parent::getPrimaryAuthor(); } return $author['name']; }