Tweaking Collection name in Item page (DSpace 7.6.1 Angular)

23 views
Skip to first unread message

Abel Gómez

unread,
Apr 18, 2024, 11:22:19 AM4/18/24
to DSpace Technical Support
Hi all,

I'm looking for advice to tweak how links to collections are rendered in DSpace Angular 7.6.1.

This is because I have a few Items that are mapped to multiple collections (all with the same name, see the "Colecciones" section at: https://hdl.handle.net/11705/1507), and I'd like to show the name of the corresponding parent community next to the collection name to easily differentiate them.

I've been trying to change the "CollectionsComponent" in the "src/app/item-page/field-components-collections/collections.component.ts" and "src/app/item-page/field-components-collections/collections.component.html", but I've been unable to make it work.

From what I understand, it seems that the "parentCommunity" HALLink is not preloaded, but I'm not experienced enough with Angular.io to load it and make it work.

Any help from an experienced Angular developer on how to achieve this would be appreciated.

Best regards,

Abel

Abel Gómez

unread,
Apr 19, 2024, 7:37:23 AM4/19/24
to DSpace Technical Support
For the records:

Thanks to a suggestion I received in a direct message from people from https://bibliotecnica.upc.edu/ (thanks!), I finally found a solution.

I implemented a custom component as shown in this patch:


Thanks!

Abel
Reply all
Reply to author
Forward
0 new messages