From 9b2db31f110f1fe0a942dc3fa843f39b29945b7f Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Mon, 19 Aug 2019 12:58:57 +0200 Subject: [PATCH] 3.x - Display month and day for table of content --- Classes/Plugin/TableOfContents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Plugin/TableOfContents.php b/Classes/Plugin/TableOfContents.php index b8fefd405e..4f190cbbf6 100644 --- a/Classes/Plugin/TableOfContents.php +++ b/Classes/Plugin/TableOfContents.php @@ -45,7 +45,7 @@ class TableOfContents extends \Kitodo\Dlf\Common\AbstractPlugin { protected function getMenuEntry(array $entry, $recursive = FALSE) { $entryArray = []; // Set "title", "volume", "type" and "pagination" from $entry array. - $entryArray['title'] = $entry['label']; + $entryArray['title'] = !empty($entry['label']) ? $entry['label'] : $entry['orderlabel']; $entryArray['volume'] = $entry['volume']; $entryArray['orderlabel'] = $entry['orderlabel']; $entryArray['type'] = Helper::translate($entry['type'], 'tx_dlf_structures', $this->conf['pages']);