bcgov / MFIN-Data-Catalogue

The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Metadata Standard.
Other
6 stars 0 forks source link

Allow related documents to have a title #419

Closed ChristaBull closed 2 months ago

ChristaBull commented 3 months ago

OP timer

https://openplus.monday.com/boards/4092908516/pulses/6387803536


User story

As a metadata editor I want to be able to communicate the difference between two different documents of the same type so that users know what they are clicking a link to view

Describe the idea

Some of the related document types (e.g. related legislation) could have more than one resource that should be highlighted. In these cases it would be helpful to be able to provide a "Document title" in addition to the "Document link" so it's clear to users viewing the catalogue what each link represents without clicking on the option.

Below is an example where I created a record that links to the Speculation & Vacancy Tax Act, and two of its regulations (there's more).

image

Proposed Solution

See #402 for acceptable link protocol patterns

NicoledeGreef commented 3 months ago

marking this as stuck behind #402

NicoledeGreef commented 2 months ago
NicoledeGreef commented 2 months ago

This relates to: https://github.com/bcgov/MFIN-Data-Catalogue/issues/402#issuecomment-2070630231

@ChristaBull - please review

ChristaBull commented 2 months ago

Seems to work how you proposed the solution. When a title is entered it will show up after the "[DOC TYPE]:" prefix, otherwise just "[DOC TYPE]" is displayed for the link text. When a title is removed there are no unexpected issues.

image source: https://test.cat.data.fin.gov.bc.ca/node/87