Adding another entity type

23 views
Skip to first unread message

Joyner Library

unread,
Nov 18, 2025, 5:04:20 PM (11 days ago) Nov 18
to DSpace Technical Support

Dear DSpace community,

Please recommend additional configuration to fully implement a data entity type.

My library wants to add another entity type called data or data catalog. We will link to the data in other databases. I have modified files in dspace/config and my library’s theme on the angular side. My DSpace version is 9.

The references added to OrgUnit, Publications, and Projects entities build without an error. My data component files have multiple errors. I didn't edit the virtual-metadata.xml file but maybe that is necessary. I updated the relationship database tables too.

The data component is at \src\themes\myTheme\app\item-page\simple\item-types\data but could easily be an entity-groups.

Thank you,

Nick

relationship-formats.xml
relationship-types.md
data.component.ts
data.component.html

mrwer...@gmail.com

unread,
Nov 18, 2025, 10:17:12 PM (11 days ago) Nov 18
to DSpace Technical Support
Hi Joyner,

See publication.component.ts from the custom theme. The call to @listableObjectComponent adds PublicationComponent to the list of objects which DSpace can render dynamically. If the first argument to @listableObjectComponent is the same as the field dspace.entity.type, then it will render the component in the resulting HTML. Keep in mind that the last argument must be the theme name, since you can have multiple components depending on the theme. This is covered briefly in adding custom component which you might find helpful. Another point is that it doesn't matter the folder path of the component (there are ones in item-page/ and entity-group/ which I think you've noticed.)

I also found modifying the HTML of different components to be helpful to see which one is rendering.

-Andrew

Joyner Library

unread,
Nov 21, 2025, 3:55:55 PM (8 days ago) Nov 21
to DSpace Technical Support
Hi Andrew,

Thank you! I basically copied the PublicationComponent.ts and replaced a few imports to get the theme built. I think it can go live in December.

Nick

Reply all
Reply to author
Forward
0 new messages