Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Works Within Works

Esmé Cowles edited this page May 23, 2016 · 1 revision

Plum has Works nested within Works (specifically, ScannedResources as members of MultiVolumeWorks). This functionality consists of:

  1. "container" routes to address a ScannedResource in the context of a MultiVolumeWork: https://github.com/pulibrary/plum/blob/master/config/routes.rb#L66-L67

  2. controller logic to create the membership relationship: https://github.com/pulibrary/plum/blob/master/app/controllers/curation_concerns/scanned_resources_controller.rb#L13-L16

  3. indexing ScannedResources's parent works: https://github.com/pulibrary/plum/blob/master/app/models/scanned_resource.rb#L12-L18

  4. solr search logic to suppress ScannedResources that are members of a MultiVolumeWork, and retrieve the MultiVolumeWork instead (ditto for FileSets): https://github.com/pulibrary/plum/blob/master/app/models/search_builder/join_children_query.rb

  5. views:

Clone this wiki locally