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

Support for 'repeatable' property of BagIt profiles #107

Closed
ThomasJejkal opened this issue Jan 25, 2018 · 2 comments
Closed

Support for 'repeatable' property of BagIt profiles #107

ThomasJejkal opened this issue Jan 25, 2018 · 2 comments

Comments

@ThomasJejkal
Copy link
Contributor

According to the BagIt Profile Specification elements listed in BagInfo can have the attribute 'repeatable' if multiple occurences of the according element are allowed.

Despite of the fact, that Metadata allows to hold a list of values for each key, neither BagInfoRequirement contains this value, nor does BagProfileChecker take this property into account while checking the bag.

@johnscancella
Copy link
Contributor

Hi @ThomasJejkal, thanks for reporting this. This should be implemented in version 5.1.0

@UkDv
Copy link

UkDv commented Jan 31, 2022

To fix this issue, you can add the following code in parseBagInfo function of BagitProfileDeserializer.java class

final JsonNode repeatableNode = node.getValue().get("repeatable");
if(repeatableNode != null){
entry.setRepeatable(repeatableNode.asBoolean());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants