Hi Joyner,

See publication.component.ts 
<https://github.com/DSpace/dspace-angular/blob/main/src/themes/custom/app/item-page/simple/item-types/publication/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 
<https://wiki.lyrasis.org/display/DSDOC8x/User+Interface+Customization#UserInterfaceCustomization-AddingComponentDirectoriestoyourTheme>
 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

On Wednesday, November 19, 2025 at 9:04:20 AM UTC+11 Joyner Library wrote:

> 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
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/63cc2e5b-b4b9-4dc3-b9ee-9cbdf5b42696n%40googlegroups.com.

Reply via email to