[Question] Newspaper: Title of a Newspaper in the metadata of all 3 views (start- / calendar- /Page view)
Opened this issue · 0 comments
BFallert commented
Description
Problem
For newspapers, I need the option of including the title of the newspaper in the metadata area, regardless of the respective view (start page of a newspaper with annual overview, calendar view and page view of a newspaper).
- In the start page of a newspaper, this is congruent with the title.
- In the calendar view, this is congruent with the parent title.
- In the page view, this would be congruent with the superordinate title
In Kitodo 4 there was the option to include the title with PartOfPartOf
# sometimes partOfpartOf (root anchor) is set...
partOfPartOf {
cObject = TEXT
cObject {
dataWrap = DB:tx_dlf_documents:{register:partOf}:partof
wrap3={|}
insertData=1
}
}
However, I cannot find this option in the current implementation.
In the current master branch I find only:
// Get title information.
$title = $resArray['title'];
$partof = $resArray['partof'];
// Search parent documents recursively for a title?
if (
$recursive
&& empty($title)
&& intval($partof)
&& $partof != $uid
) {
$title = self::getTitle($partof, true);
}
But I don't know how to use this for the PartOfPartOf part of a title in the page view.
Is there any way of determining the title of the main work for an issue and displaying it in the metadata?