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

Transform AF indexing properties to render_as #173

Closed ShanaLMoore closed 1 year ago

ShanaLMoore commented 1 year ago

Summary

The m3 profile have indexing keys. The values need to get transformed in such a way that we can format it to match what hyrax expects.

ref: https://github.com/scientist-softserv/iiif_print/blob/main/lib/iiif_print/configuration.rb#L72

resource_type: { render_as: :faceted },

Acceptance Criteria

Screenshots or Video

Testing Instructions

UTK instructions - create an Attachment with an image file. `Rdf type: http://pcdm.org/use#IntermediateFile` - Create a parent work without any image files. Add some subjects in the parent's metadata (subject is a facetable property according to their [m3](https://github.com/utkdigitalinitiatives/m3_profiles/blob/main/maps/utk.yml) profile). Save the parent work. - Go the parent work's edit form > `Relationships` tab > `Other works in this work` > attach the child attachment from step 1. Save. - now in the parent's work show page's UV, open the metadata pane and observe that the subjects are links - click on the link and it should open a new tab with a facetted search for that term

Notes

ShanaLMoore commented 1 year ago

This looks to be resolved with #154

kirkkwang commented 1 year ago

QA with https://github.com/scientist-softserv/iiif_print/issues/72

DiemBTran commented 1 year ago

Paired with Kirk. Blocked for QA. Currently parent works are not showing thumbnails of child works. Because of this, parent works are not rendering their UV.

tested on:

ShanaLMoore commented 1 year ago

30 or gaining access to ESSI should unblock this.

ESSI: To test, you will need an IU account that has been registered with a VPN. Your account will need admin access as well cc the essi client channel or ping Kirk/Shana.

After logging into VPN, you'll be able to access the following site.

Test site: https://dcadmin-test.dlib.indiana.edu/

kirkkwang commented 1 year ago

QA'd on staging with this work: https://dcadmin-test.dlib.indiana.edu/concern/paged_resources/zw12z528p?locale=en

image

clicking the link goes to:

image
DiemBTran commented 1 year ago

This passes SoftServ QA: See attached screenshots.

tested on:

Parent work: cowboy has a child work: clown attached. In the Parent work's UV, facetable metadata field are hyperlinks. If you click a hyperlink, it navigates you to a search page with that facet as a query. ![Image parent work ID qf85nb285 Digital Collections 2023-04-12 at 3 11 58 PM](https://user-images.githubusercontent.com/29311858/231598142-c35dda30-08c7-427e-8382-cba385d77d24.jpg) ![Index Catalog Digital Collections 2023-04-12 at 3 12 27 PM](https://user-images.githubusercontent.com/29311858/231598154-89f477cd-6060-43d5-9601-2c855ee63a55.jpg)
markpbaggett commented 1 year ago

@jillpe this looks good to us. We're going to bump it forward, but are curious if faceted fields will also be facets in search and not just links from the viewer / record.

jillpe commented 1 year ago

cc. @laritakr @kirkkwang ^^