Skip to content

Relationships Development Pattern

E. Lynette Rayle edited this page Feb 4, 2022 · 8 revisions

NOTE: At this writing, all links are to code in Release 3.3.0.

Relationships

General Overview

  • A Collection MAY be in one or more Collections (NOTE: The collection type of both MUST support nesting.)
  • A Work MUST be in one and only one Admin Set (NOTE: This is a special type of Collection requiring Work membership.)
  • A Work MAY be in one or more Collections (NOTE: Some collection types require a Work, if it is in a Collection of that type, to be in one and only one Collection of that type.)
  • A Work, if it is in another work, MUST be in one and only one other Work
  • A File Set, if a work has a file, MUST be in one and only one Work
  • A File Set MUST contain one uploaded File and MAY contain multiple derivatives of that File

Navigating the Model

Works in an Admin Set

How to add a work to an admin set?

How to check if a work is in an admin set?

How to find all works in an admin set? (child-works)

How to find the admin set that a work is in? (parent-admin-set)

Collections in Collections

How to add a collection to a collection?

How to check if a collection is in a collection?

How to find all collections in a collection? (child-collections)

How to find all collections that a collection is in? (parent-collections)

Works in Collections

How to add a work to a collection?

How to check if a work is in a collection?

How to find all works in a collection? (child-works)

How to find all collections that a work is in? (parent-collections)

Works in a Work

How to add a work to a work?

How to check if a work is in a work?

How to find all works in a work? (child-works)

How to find a work that a work is in? (parent-work)

Files (and File Sets) in a Work

How to add a file to a work?

How to check if a file is in a work?

How to find all files in a work? (child-files)

How to find the work that a file is in? (parent-work)

Clone this wiki locally