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

Fix access to elements with clashing tags #68

Merged
merged 3 commits into from
Apr 1, 2019

Conversation

sevein
Copy link
Member

@sevein sevein commented Apr 1, 2019

premisrw couldn't handle access to attributes when the schema used the same attribute name in more than one element, e.g. startDate and endDate are values used multiple times under PREMISRights. This pull request solves the problem by introducing alternative keys qualified with the path to the value instead, e.g. foo__bar__start_date instead of start_date when there is a clash.

Also, added some missing role attributes to the PREMISRights schema.

Connects to archivematica/Issues#446.

@sevein sevein requested a review from cole April 1, 2019 19:08
@sevein sevein self-assigned this Apr 1, 2019
@sevein sevein force-pushed the dev/fix-clashing-element-tags-issue branch from 1a395cc to ad9b3c1 Compare April 1, 2019 19:09
Copy link
Contributor

@cole cole left a comment

Choose a reason for hiding this comment

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

🎉 AMAZING

@sevein sevein merged commit b8d4b15 into master Apr 1, 2019
@sevein sevein deleted the dev/fix-clashing-element-tags-issue branch April 1, 2019 19:21
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.

None yet

2 participants