scientist-softserv / adventist_knapsack

Apache License 2.0
2 stars 0 forks source link

Valkyrie: Collection Metadata issues on existing collections #777

Open KatharineV opened 1 month ago

KatharineV commented 1 month ago

Summary

DEV NOTE: Adding properties are done via yaml files now. You will not need to adjust models. Ping a dev on Team V for guidance.

This ticket tracks issues with existing collections as they appear post-Valkyrie and version 6.

Acceptance Criteria

Screenshots or Video

Staging (rights statement should not be required)

Image

Department, School, or Faculty field

Example of a production collection that uses that field: https://adl.b2.adventistdigitallibrary.org/collections/0ed83a24-3553-48bf-8216-eca875cbc48b?

Image

Screenshot of Source field in version 6 post-Valkyrie staging collection: https://adl.s2.adventistdigitallibrary.org/dashboard/collections/9c5feb14-7c90-499f-aa4e-ea5cf40baf2d

Image

Testing Instructions

Additionally, metadata was also modified to fix work models so:

Notes

@KatharineV should create a new ticket for metadata changes based on comment regarding metadata on forms & show page. Ticket passes and this issue is complete as long as the above tests are satisfied.

AKFosterDev commented 3 weeks ago

Files: config/metadata/collection_resource.yaml hyrax-webapp/app/models/collection_resource.rb config/metadata/collection_resource.yaml config/metadata/basic_metadata.yaml

Need pairing time. LaRita

ShanaLMoore commented 2 weeks ago

QA RESULTS: ❌ NEEDS REWORK

tested on STAGING

Acceptance Criteria

PROD

Required fields:

Image

STAGING

Required fields:

Image

ShanaLMoore commented 1 week ago

TODO:

make sure collection_resource.yaml contains all of these metadata properties:

["aark_id", "abstract", "access_control_id", "access_right", "alt", "alternative_title", "altlabel", "based_near", "bibliographic_citation", "collection_type_gid", "contributor", "creator", "date", "date_accepted", "date_available", "date_created", "date_issued", "date_modified", "date_published", "date_submitted", "date_uploaded", "department", "depositor", "description", "doi", "former_identifier", "funder", "head", "identifier", "import_url", "issue_number", "keyword", "label", "language", "language_code", "lat", "license", "location", "long", "managing_organisation", "note", "official_url", "orcid", "output_of", "output_of_resource_ids", "pagination", "part_of", "place_of_publication", "preflabel", "publication_status", "publisher", "rdfs_label", "refereed", "related_url", "relative_path", "remote_url", "representative_id", "resource_type", "rights_description", "rights_holder", "rights_notes", "rights_statement", "slug", "slug_for_upgrade", "source", "subject", "tail", "thumbnail_id", "title", "volume_number"] => count: 70

We need to for sure at least add department and map the label name to "Department, Faculty, School". Add AdlMetadata back to collection resource however we need to make rights_statement false for collection resource.

OR

should we add to the script? copy department to source, if department is no longer a needed metadata field?

sjproctor commented 1 week ago

✅ Passes QA

Tested on staging

Acceptance Criteria

KatharineV commented 6 days ago

I created a new collection and tested the metadata. https://adl.s2.adventistdigitallibrary.org/collections/851b4393-f9d1-4fa1-b1d9-31bf589c8fff?locale=en

I filled in a few fields that did not display on the public view after I saved:

Then I tried to fill in ever field to test all appearances, and I got an error message. I reopened the edit screen, tried to save again, and the error message repeated. Image

Now the backend shows metadata in all the fields just as I entered it, but only the ones I filled the first time are showing on the public side, minus the two that never showed the first time (Rights Statement & Source).

Image

ShanaLMoore commented 6 days ago

Staging logs/error from Katharine's comment:

2024-09-25T22:39:58.658842776Z Error: ERROR: [doc=851b4393-f9d1-4fa1-b1d9-31bf589c8fff] Error adding field 'issue_number_isim'='Issue' msg=For input string: "Issue"

this may be related to #822 , PR

TODO:

revert this change?

ShanaLMoore commented 5 days ago

blocked until #822 is resolved

laritakr commented 1 day ago

Metadata spreadsheet link… https://docs.google.com/spreadsheets/d/1Xc-QRpCEw0vNwcK6yxvBlTR6uEH-xrPWxTatRWCJ070/edit?usp=sharing

I went through all of the create forms to identify what I was seeing in my development environment, alphabetized them by their form label text, and added their attribute since some weren’t clear by the label. For each one, I then marked what shows in the prod environment create forms (I did not document what is on the show page). Hopefully this spreadsheet gives you the information you need to make the decisions on what you want on the forms and show pages. Please review it and let me know what you want changed.

Based on what I found, I did some minimal cleanup to try to bring things back to being in synch (such as moving the dates back to only allowing single dates). I can’t say which ones you will want to be on your forms, or showing on the show pages. Some of the terms may have been hidden before, and some are totally new due to the Hyrax updates.

Additionally, keep in mind that if you don’t add a metadata item to a work, it won’t appear on the show page. So there is no need to remove items that are removed from the form unless you think they could come in via bulkrax imports and you don't want them showing.