dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

Coar 3.0 resource types

Open FelixNicol opened this issue 3 years ago • 2 comments
trafficstars

References

  • Fixes #1645
  • Requires DSpace/DSpace#8439 (for configurations)

Description

Creating a Resource Type entity based on COAR Resource Types 3.0. New components and module to display the resource type details and search results. Metadata locale translation component and service. English and french i18n labels.

Instructions for Reviewers

List of changes in this PR:

  • There's 5 pulls in this pull request the first is the feature the other four are minor adjustments.
  • A new entity-group "resource-type" with page, item (grid and list), search (grid and list) elements.
  • A new module for this entity-group
  • A new field-component that display, if availlable, the metadata value corresponding to the user's locale.
  • New corresponding unit tests
  • Declaration of this new module in some other modules
  • MetadataUriValuesComponent and ItemPageUriFieldComponent declaration moved from item-page.module to shared.module.
  • New labels in french and english
  • Display the ResourceType on the Publication item page as a comment.

##Example of a resource type: image

Include guidance for how to test or review your PR. To test ResourceType, corresponding PR in DSpace/DSpace configurations should be running on the server. Create a ResourceType collection with the entity type : ResourceType. You can then add new ResourceType items to the collection and link thoses resource types to publication entities.

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!

  • [x] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • [x] My PR passes TSLint validation using yarn run lint
  • [x] My PR doesn't introduce circular dependencies
  • [n/a] My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • [x] My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • [n/a] If my PR includes new, third-party dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.

FelixNicol avatar Aug 02 '22 21:08 FelixNicol

This pull request introduces 4 alerts when merging 6037eb861947dd5fe924d67aaf144aece1e1a9ce into bfbe38974ba8eb40a93c412b2960381b6ace3303 - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class

lgtm-com[bot] avatar Aug 02 '22 21:08 lgtm-com[bot]

This pull request introduces 4 alerts when merging 4bb19b070aac0dfed8c7d116b55ccbffec4c5c2d into bfbe38974ba8eb40a93c412b2960381b6ace3303 - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class

lgtm-com[bot] avatar Aug 03 '22 13:08 lgtm-com[bot]