scientist-softserv / iiif_print

A gem for Hyrax/Samvera for displaying PDF pages in a IIIF Compliant viewer
Apache License 2.0
4 stars 1 forks source link

Add resource type for child works #361

Closed laritakr closed 3 months ago

laritakr commented 3 months ago

Story

Refs https://github.com/scientist-softserv/palni_palci_knapsack/pull/103

Resource_type is handled similarly to title, outside of attributes in Hyrax's BatchCreateJob. A required resource_type attribute causes the Hyrax ChildWorkJob to fail, but resource_type cannot be passed via attributes.

Expected Behavior Before Changes

A required value of resource_type causes child works to not create.

Expected Behavior After Changes

PDF split is successful, and child works are created with resource types if the term applies.

Screenshots / Video

Screenshot 2024-06-25 at 3 17 48 PM Screenshot 2024-06-25 at 3 18 05 PM

Notes

laritakr commented 3 months ago

Thank you so much for figuring this one out 🙃 Should keyword be included here too?

No, since keyword is not required, I put that into pal's custom configuration option.