Skip to content

Multi-entity view ​

Several related records side by side, one column each, so you can read and edit them together (for example a work, its expression and a manifestation).

views-multientityview--defaultOpen in Storybook ↗

When to use ​

  • Records that only make sense together, such as the levels of a work–expression–manifestation chain. A client opens the view with a link action on a record's page.
  • Correcting a value on one record while you check the related ones.

When not to use ​

  • One record: use its detail page.
  • Two versions of the same record: use the history diff.
  • Many records of one type: use a list, such as an entity list element.

Anatomy ​

  1. The page, in --color-background-normal, in the same shell as a detail page. The breadcrumbs come from the route's configuration, for the record the view was opened from.
  2. Columns, one per record, in the order the route's query returns them. They share the width equally. Each is a card in --color-neutral-0.
  3. Column header, in --color-neutral-10 with a --color-neutral-100 line under it. It stays on top while the column scrolls.
    • The record's type as a large chip (--text-chip-lg, --chip-padding-lg), coloured by the client's pill configuration. Without a type chip the header shows the translated type name, large and bold in --color-text-light.
    • The heading links to the record's detail page.
    • In the right half of the header, an Edit metadata button when the record's type turns on the page-wide edit mode (see Variants).
  4. The record's panels, the same panels and field rows as on its detail page, built from the record's own view configuration. Each column scrolls on its own.

On small screens (below 1024px) the columns stack from top to bottom and share the height of the page; each one still scrolls on its own. A record's own panels stack below 768px, as on its detail page.

views-multientityview--defaultOpen in Storybook ↗

Variants ​

VariantWhat changesWhen
Per-field editing — the defaultevery editable value opens in place and saves on its ownalways, unless the type turns on the page-wide edit mode
Page-wide edit modean Edit metadata button in that column's headerthe record's type has hasEditMetadataButton in the route's page config

Each column follows its own record: its type decides the edit mode, and its canUpdate decides whether its fields are editable. A column you may not update shows plain values and no button.

views-multientityview--page-wide-editOpen in Storybook ↗

In the page-wide edit mode, Edit metadata switches that column's rows to their form inputs and the header to Save and Cancel. Save is disabled while a field has an error. Cancel asks in a confirm dialog before it drops the changes. The heading is not a link while you edit.

States ​

StateWhat you seeTrigger
Loadinga spinner in the middle of the pagethe records are being fetched
Loadedone column per recordthe query returned records
No resultsNo data found to display. in the middle of the page, in --color-text-lightthe query returned no records, or failed
Editing a fieldthe field's inline editor in its column; the other columns stay as they area click on an editable value
Savedonly the edited column reloads with the new valuea save in a column worked
views-multientityview--statesOpen in Storybook ↗
views-multientityview--editingOpen in Storybook ↗

Editing follows per-field editing: one value is open at a time across all columns, and a save sends only that record's field.

Keyboard & accessibility ​

KeyEffect
Tabmoves through the columns from left to right (top to bottom on small screens): heading link, header button, then the column's editable values
Enteron a heading: opens that record's detail page
Enter / Spaceon a value or button: the field row and button keys apply
  • The heading link and the buttons show the focus ring.
  • The header buttons have a visible label as well as an icon.

Content ​

  • The type chip carries the label the client configures per type, such as a type letter.
  • Translation keys: multi-entity.no-results, entity-translations.{type}, metadata.labels.edit-metadata, bulk-operations.save, bulk-operations.cancel, confirm.discard-edit.*.

Per-field editing · Field row · Chip & badge · Panel & block shells · History diff

Powered by Elody - Open Source Semantic Data Platform