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

Add image gallery theme #13

Closed wwelling closed 10 months ago

wwelling commented 10 months ago

References

Resolves #6

Description

There are a lot of extraneous comments that came along with overriding core dspace-angular components and modules. We will be attempting minimal changes to files copied for overriding to afford easier synchronization when merging from upstream.

Reimplements image gallery theme by customizing collection, community, and search result grid components. The community components required fetching the recent submissions for the community and all custom components required template modifications. The grid component has styles customized to match the image gallery theme.

image

image

image

image

Instructions for Reviewers

Configure dspace-angular to point to dev environment DSpace REST API with config.dev.yml such as:

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

Switch theme matcher to use UUID in regex until handles are supported:

  - name: image-gallery
    extends: tamu
    regex: 'befb7166-392b-445b-b907-1f4363bb6dfb|ed211f67-86ad-41ff-9696-fe0e7e17e1cb|d61f515b-8153-4718-9b9d-1ce679c955a0|c431e202-fc5b-46c8-b188-00901e1e215a|7c2ac72f-fd7a-4f27-b701-eb6e0539a876|beea4d64-0ff6-4e58-9f7b-489e1d6c6f75|282ec515-7b66-4492-b4d0-ae66d76f516b|6d433be8-7a28-4dc7-a245-f8dfbb7a513c|282ec515-7b66-4492-b4d0-ae66d76f516b|a3923d8b-249c-4b7d-8459-0c83953f7d8f|7c61a02c-2176-4c5a-9dd8-919353159e91|a4116d8b-8135-4449-a1b0-3378d5c7ecad'

Navigate to

http//:localhost:4000/collections/befb7166-392b-445b-b907-1f4363bb6dfb http//:localhost:4000/collections/ed211f67-86ad-41ff-9696-fe0e7e17e1cb http//:localhost:4000/collections/d61f515b-8153-4718-9b9d-1ce679c955a0 http//:localhost:4000/collections/c431e202-fc5b-46c8-b188-00901e1e215a http//:localhost:4000/collections/7c2ac72f-fd7a-4f27-b701-eb6e0539a876 http//:localhost:4000/collections/beea4d64-0ff6-4e58-9f7b-489e1d6c6f75 http//:localhost:4000/collections/282ec515-7b66-4492-b4d0-ae66d76f516b http//:localhost:4000/communities/6d433be8-7a28-4dc7-a245-f8dfbb7a513c http//:localhost:4000/collections/282ec515-7b66-4492-b4d0-ae66d76f516b http//:localhost:4000/communities/a3923d8b-249c-4b7d-8459-0c83953f7d8f http//:localhost:4000/collections/7c61a02c-2176-4c5a-9dd8-919353159e91 http//:localhost:4000/communities/a4116d8b-8135-4449-a1b0-3378d5c7ecad

List of changes in this PR:

*Was unable to only override ItemSearchResultGridElementComponent as customized element would not apply. Had to override the parent component and use a custom selector.

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!