diff --git a/module/VuFind/src/VuFind/RecordDriver/EDS.php b/module/VuFind/src/VuFind/RecordDriver/EDS.php index b9e09aab793023489fca8c0f7b5748ee1cdcfe37..96ac1538c5ee53cb932fb7b2aa37037b4e482874 100644 --- a/module/VuFind/src/VuFind/RecordDriver/EDS.php +++ b/module/VuFind/src/VuFind/RecordDriver/EDS.php @@ -81,6 +81,21 @@ class EDS extends DefaultRecord return trim(current($parts)); } + /** + * Get the subtitle (if any) of the record. + * + * @return string + */ + public function getSubtitle() + { + $title = $this->getTitle(); + if (null == $title) { + return ''; + } + $parts = explode(':', $title, 2); + return count($parts) > 1 ? trim(array_pop($parts)) : ''; + } + /** * Get the abstract (summary) of the record. *