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 authority link migration #36

Closed

Conversation

rosiel
Copy link
Contributor

@rosiel rosiel commented Dec 8, 2022

What does this Pull Request do?

The "Resource Type" terms were getting migrated along with their "external uri". However, some vocabularies (like Resource Types) don't have an "external uri" field but instead an "authority link" field. It was getting put in there - but that didn't make a complete viable field. This field has three (major) elements: uri, title, and source. All these three are visible in the GUI when editing the field and Source is mandatory. But when we migrate terms in, only the uri element is getting populated. So when we tried to display the term- on the node page or in views - it doesn't show up at all. (also maybe later fix the Authority Link field formatter... but for now we should make right with what we've got.)

This PR updates the migration so that

  • the same URI in the uri is used as the title, since these are administrative terms and the URI needs to be legible to managers.
  • The source field is populated. I added a column for that, and set all (except collection) to the DCMI terms. Collection (in Resource types) is the Bibo version. This keeps us from interfering with the Islandora Models.

Related GitHub Issue:

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora/committers

@rosiel
Copy link
Contributor Author

rosiel commented Jan 5, 2023

Closing; superseded by #39

@rosiel rosiel closed this Jan 5, 2023
@rosiel rosiel deleted the fix-authority-link-migration branch January 5, 2023 18:14
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.

1 participant