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

reuse yearIncludedStructuralElement #4422

Merged
merged 2 commits into from
May 27, 2021

Conversation

Kathrin-Huber
Copy link
Contributor

fixes #4396

@matthias-ronge I'm not sure, why there was created a new IncludedStructuralElement at this place, maybe you can explain?

@Kathrin-Huber Kathrin-Huber force-pushed the reuse_year_workpiece branch from 4db0566 to 97a9560 Compare May 20, 2021 17:17
Copy link
Collaborator

@matthias-ronge matthias-ronge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthias-ronge I'm not sure, why there was created a new IncludedStructuralElement at this place, maybe you can explain?

It was just a decision. years is a map which holds the includedStructuralElement (root of the logical structure tree) for each year-level process to be generated. Creating a new (empty) logical structure tree root element for each year process to be generated seemed straightforward for me. A new process is generated, and it should be empty at the beginning, shouldn’t it? This is what I thought.

Your change will copy the structure tree of a random meta_year.xml (from exactly one issue of that year, but not necessarily the first in chronology, but a random one, depending on which issue of a year is processed first). This may bring in a lot of stuff (metadata, children, METS pointers…) that you need to deal with. For example, version 2 stored the value of the LABEL and ORDERLABEL as metadata field TitleDocMain and TitleDocMainShort (sort title, with typo). Version 3 doesn’t. If you reuse the logical structure tree of version 2 internal METS file, you need to delete these. Maybe there is other data in that tree (I don’t have a version 2 internal year METS file at hands at the moment) that you need to clean up. But technically, both ways are possible.

I don’t have data at hands to test this change, but if the result is what is wanted, you can also go that way.

@Kathrin-Huber Kathrin-Huber merged commit 83d722d into kitodo:master May 27, 2021
@Kathrin-Huber Kathrin-Huber deleted the reuse_year_workpiece branch May 27, 2021 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hierarchy migration: Newspaper-Year-level processes with workflow
2 participants