Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Newspaper: Title of a Newspaper in the metadata of all 3 views (start- / calendar- /Page view) #1115

Open
BFallert opened this issue Dec 11, 2023 · 0 comments
Labels
⁉ question A non-code issue or question.

Comments

@BFallert
Copy link
Collaborator

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

https://github.com/slub/slub_digitalcollections/blob/d511e7ebdddba4b9ea344eba5e5b311eb1e41c16/Configuration/TypoScript/Plugin/Kitodo/common.typoscript#L87

    # 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:

if ($resArray = $result->fetchAssociative()) {

                // 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?

Mockups and Examples

Homepage of a newspaper in the Slub

image

Calendar View

image

Page View

image

@sebastian-meyer sebastian-meyer added the ⁉ question A non-code issue or question. label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⁉ question A non-code issue or question.
Projects
None yet
Development

No branches or pull requests

2 participants