Skip to content

Additional Options for linked forms #236

@MichaelRBond

Description

@MichaelRBond

When linking metadata forms to another form, we need the following new options.

  1. Name -- Currently the field that is displayed in the dropdown is selectable, but we need to be able to make this a combination of fields.
  • Don't change the way it is currently handled. Instead allow the first dropdown to be selected and saved in the database exactly as it is now (so no code needs changed and forms don't need updated).
    • Add a plus sign next to the first tome to add another drop down. This drop down should list all of the fields that haven't already been selected. The plus sign should only be diisplayed if there there are more fields that can be selected (many metadata forms have only 1 field). continue adding a plug sign to each line until there is no more fields to be displayed.
    • All of the "plussed"" fields should be put into a new array in the field data being saved. Keep the same name as the previous field, but append an "_addition" or similar (following naming convention already in place). Let me know when the new field name is here.
  1. We need a "Linked based on" option.

Example. A metadata form has a field called "bibid" and the parent object has a field called "bibid". We need to be able to so "Only display drop down options where bibid is equal on both forms"

it is possible that we will need to be able to do this using more than 1 field.

There should be a new check-box that hides/unhides this option. Each row should have an add/delete option on it, so that we can have as many matching options as required.

Each row should have 2 select boxes. 1 would be for the metadata form and 1 for the object form. Each dropdown would have all the non-array fields from the respective form. That way I could match up bibid on the metadata form to idno on the object form (or any other required mapping). I don't see any value in allowing multi-select forms to be selected.

This ticket will need additional back end work to make happen. Let me know when you have it finished, i'll take care of the backend work.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions