Skip to content
Snippets Groups Projects
Commit 99e125e9 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

EDS improvement: retrieve subtitles correctly.

parent 843e8d8c
No related merge requests found
...@@ -81,6 +81,21 @@ class EDS extends DefaultRecord ...@@ -81,6 +81,21 @@ class EDS extends DefaultRecord
return trim(current($parts)); 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. * Get the abstract (summary) of the record.
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment