Skip to content

Column type for a value on a related item #85

Description

@jimsafley

See this forum post: https://forum.omeka.org/t/faceted-browse-how-to-show-values-of-related-items/30311. A user wants a browse row to include values from an item it links to.

A column currently shows values belonging to the item in that row. A linking property renders as a link labeled with the target's title, so a row can show that something is linked, but not the target's own values.

A new column type would need two properties configured: the one holding the link, and the one to display on the linked item. Reachable through the row's value and valueResource().

The column wouldn't be sortable, since sorting happens on the row's own fields, so getSortBy() would return null as item_set already does.

This covers the case where the row's own item holds the link. The reverse, where other items link to the row, is reachable through subjectValues() but is left out until someone asks for it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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