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

Add functional metadata for 'docType' metadata #4906

Merged
merged 5 commits into from
Feb 2, 2022

Conversation

solth
Copy link
Member

@solth solth commented Jan 12, 2022

Fixes #4863

Note: if this pull request is merged, mapping files and rulesets must be updated to include a metadata with use="docType" in order for import to continue to work!

Edit: also fixes #3389, I think

@solth solth requested a review from matthias-ronge January 12, 2022 09:49
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.

Please also update the example rulesets in Kitodo/rulesets directory. As I understand your comment, this is necessary. Or isn’t it?

@@ -111,17 +113,23 @@ public NodeList getMetadataNodes() {
* of type "docType" and if its value equals the type of the logical root element. If not, the
* logical root is set to the value of the "docType" metadata.
*
* This function is currently only used for the import of prestructured processes.
* <p>This function is currently only used for the import of prestructured processes.</p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please put the <p> on a single line (or Eclipse will reformat it sooner or later).
AFAIK, </p> should not be used in Javadoc.

@solth
Copy link
Member Author

solth commented Jan 13, 2022

@matthias-ronge thank you for the review. I implemented most of your requested changes, apart from the <p> tag in the java doc, because this was specifically how Codacy accepted it.

@solth solth force-pushed the doc-type-metadata branch from ac2db20 to 124b009 Compare January 19, 2022 11:29
@Kathrin-Huber Kathrin-Huber merged commit 10b99d8 into kitodo:master Feb 2, 2022
@solth solth deleted the doc-type-metadata branch February 4, 2022 08:10
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.

Hard-coded metadata docType is used Misleading error if import returns no docType
3 participants