Skip to content

Parent CO Inheritance: Add a new collection preference to display the parent CO cat num on children #6409

Description

@CarolineDenis

A.1) Add a collection pref for parent cat num inheritance
The logic for CO parent catalog number inheritance must be configurable as a collection-level preference, being defined in the CollectionPreferences app resource.

  "catalogNumberParentInheritance": {
    "behavior": {
      "inheritance": true
    }
  }

A.2) Add logic to have only one pref at a time possible for inheritance

  • The user should only be allowed to have catalogNumberParentInheritance set to true or catalogNumberInheritance set to true but both will not be taken into account at the same time.

B) Display parent CO cat num on form
When a CO is a child of another parent CO and does not have a defined catalog number, the system should display the catalog number of the parent CO as a placeholder in the catalog number field.

Logic Flow

The display logic will follow these conditions:

  • If a CO has no catalog number,
  • And the CO belongs to a parent CO,
  • And the collection pref is set to true,
  • Then the catalog number of that parent CO will be shown as a placeholder in the Catalog Number field of the child CO.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions