I just migrated from the OMP 3.1.2.2 to the OMP 3.3.0.13.
In the old version I implemented some changes on the frontend (templates) and would like to do the same also on the latest version.
In the past I used in the template $monograph->getSeriesTitle() to get the name of the series the monograph belongs to. Unfortunately this method/call is not available in the latest version.
Can you please help me what changes are required to get the same functionality also on the latest OMP version? That is the series name of the monograph, used in a frontent template.
He added the following to the submission class classes/submission/Submission.inc.php:
function getSeriesTitle() {
$publication = $this->getCurrentPublication();
if (!$publication) {
return '';
}
$seriesId = $publication->getData('seriesId');
if (!$seriesId) {
return '';
}
$seriesDao = DAORegistry::getDAO('SeriesDAO');
$series = $seriesDao->getById($seriesId, $this->getData('contextId'));
if (!$series) {
return '';
}
return $series->getLocalizedTitle();
}
Apparently it’s a quick solution that may be improved, but it’s working fine for us here https://books.lub.lu.se/.
Maybe this could work for you as well?