TAMULib / dspace-angular

DSpace 7.x (and above) User Interface built on Angular.io
https://wiki.lyrasis.org/display/DSDOC7x/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Directly use ds-metadata-values component to avoid browse definition … #24

Closed wwelling closed 10 months ago

wwelling commented 10 months ago

…check

dc.contributor.sponsor falls under ValueListBrowseDefinition within dc.contributor.* causing the generic item page field to render as a browse definition link.

References

Resolves #3

Description

ds-generic-item-page-field component conditionally renders metadata values differently based on inputs and whether the metadata fields provided are within backend defined value list browse definition. Which pending the async response, will render the metadata values as a link to browse results starting with the value. In the case of Client/sponsor field we do not want it to be a link, but a comma separated list.

Using directly the ds-metadata-values and specifying the browseDefinition input to be undefined provides the simple metadata value rendering.

Instructions for Reviewers

From this branch, update config to labs DSpace REST API as follows.

rest:
  ssl: true
  host: api-dev.library.tamu.edu
  port: 443
  nameSpace: /dspace7

Start in development mode.

yarn start:dev

Navigate to an item within the Capstone Project.

http://localhost:4000/items/67eafadf-d5b3-4962-b425-9d3f5bc128db

Check to make sure the Client metadata field is not a link.

image

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!