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

On Export: Duplication of smLink entries #4064

Open
stefanCCS opened this issue Oct 26, 2020 · 4 comments
Open

On Export: Duplication of smLink entries #4064

stefanCCS opened this issue Oct 26, 2020 · 4 comments
Labels
bug export Export mappings and configurations

Comments

@stefanCCS
Copy link
Collaborator

In meta.xml I have some smLink entries, which are visible correctly in meta data editor.
In my example (nearly) each phyical page has its own logical entry.
After export these smLinks are duplicated a lot.
It looks like that for each logical entry ALL phyisical pages (besides the ones, which are not linked to anything) a smLink-entry is created.
In my opinion this cannot happen during xslt processing. Therefore, this should be something related to Java-Part of export.

@matthias-ronge
Copy link
Collaborator

In the internal format, the pages are only assigned to the logical divisions of the lowest logical hierarchy level. So if a page is assigned to a chapter in a book, then it is only assigned to the chapter. It was simpler in terms of programming. During export, it is also assigned to the book. Otherwise, no pages would appear in the presentation when you select the book. So far, the behavior is intentional.

However, existing <smLink> are duplicated, i.e. from the same logical division it were referred to the same page several times . This needs to be corrected.

@matthias-ronge
Copy link
Collaborator

matthias-ronge commented Oct 27, 2020

MetadataEditor, line 334 should actually prevent that. Needs checking why it is not doing its job. That seems to be an identification problem (equals()/hashCode()).

@solth solth removed the 3.x label Jul 7, 2022
@andre-hohmann
Copy link
Collaborator

@stefanCCS : Could this be solved by the following issue?

@matthias-ronge matthias-ronge added the export Export mappings and configurations label Feb 27, 2023
@stefanCCS
Copy link
Collaborator Author

@stefanCCS : Could this be solved by the following issue?

* [Multiple xlink:to elements for one xlink:from element in mets:structLink #5286](https://github.com/kitodo/kitodo-production/issues/5286)

I need to re-check this.
Will do this with Release 3.5 (which I have not installed so far).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug export Export mappings and configurations
Projects
None yet
Development

No branches or pull requests

4 participants