Is there anyway to customize Item Page if its a Person Entity?

116 views
Skip to first unread message

Soukaïna Mahboub Mehboub

unread,
Dec 5, 2024, 3:17:06 AM12/5/24
to DSpace Technical Support
Hello, 

I have checked the Dspace 7 guide, but I only can see that you can customize Item that are not items or Items of type Publication, what about the other entitites? 

I have a list of items that are Authors so I assigned to them the Person Entity.

TIA. 

Rergards,

SMM


Eike Martin Löhden

unread,
Dec 5, 2024, 3:25:02 AM12/5/24
to dspac...@googlegroups.com

Hello,

to customize the item pages of other entities you can do the same as for Publication entities. You just have to make sure to change the Entitytype in the @listableObjectComponent section. You can find the other default entity pages here: https://github.com/DSpace/dspace-angular/tree/main/src/app/entity-groups/research-entities/item-pages .
I hope it helps!

Kind regards,
Eike.

Am 05.12.24 um 09:17 schrieb 'Soukaïna Mahboub Mehboub' via DSpace Technical Support:
--
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 dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/87ecdeb6-7559-461c-af42-1d32304d175dn%40googlegroups.com.
-- 
Eike Martin Löhden
Entwicklung, Betrieb und Beratung im Kontext von Repositorien, Infrastruktur Digitale Sammlungen
Philipps-Universität Marburg
Deutschhausstraße 9
D-35032 Marburg

tel.: +49 6421 28-25238
eMail: eike.l...@staff.uni-marburg.de
ORCiD: 0000-0001-9315-3660

Soukaïna Mahboub Mehboub

unread,
Dec 11, 2024, 3:15:29 AM12/11/24
to DSpace Technical Support

Hello Eike, 

Thanks for your reply. I copy pasted that Person folder in the main DSpace folder, inside /opt/dspace-7-angular/src/app/item-page/simple/item-types, I ran yarn build:prod, no errors so far. No logs. But no effects on the UI, although I restarting all.

Do you have any idea what might be?

TIA.
El dia dijous, 5 de desembre del 2024 a les 9:25:02 UTC+1, Eike Martin Löhden va escriure:

Eike Martin Löhden

unread,
Dec 11, 2024, 4:05:03 AM12/11/24
to dspac...@googlegroups.com

Hej,

Have you added the theme name in the @listableObjectComponent in the person.component.ts (https://github.com/DSpace/dspace-angular/blob/main/src/themes/custom/app/entity-groups/research-entities/item-pages/person/person.component.ts#L22)? You can just copy line 22 and replace 'custom' with your theme name. Sorry, I forgot to mention this earlier!

Kind regards,
Eike.

Am 11.12.24 um 09:15 schrieb 'Soukaïna Mahboub Mehboub' via DSpace Technical Support:

Soukaïna Mahboub Mehboub

unread,
Dec 11, 2024, 5:08:21 AM12/11/24
to DSpace Technical Support
Hi Eike, I am using the default theme 'dspace', and added the folder Person with its files  in  /opt/dspace-7-angular/src/app/item-page/simple/item-types where Publication folder exists. 

I changed the theme name to 'dspace' as it is the default one, but no effect, after rebuilding it. Caché is also cleaned afterwards. 

Thank you !

El dia dimecres, 11 de desembre del 2024 a les 10:05:03 UTC+1, Eike Martin Löhden va escriure:

Matyas F. Bajger

unread,
Dec 13, 2024, 4:25:48 AM12/13/24
to dspac...@googlegroups.com

Hello!

I  have a similar issue with modifying journal entities. I guess you must not move any files to use components for entities.
They are located in ..../app/entity-groups/ and used (try to add some <div>test</div> to check it)

The case is that not all components used for general items in .../app/item-page/simple/item-types/  are imported to entities components. I just try to add a component for uri link (<ds-item-page-uri-field  or <ds-general-item-page-uri-field ) and especially button for dowloading the bitstream and miss these components.

The build claims:

Error: src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html:46:5 - error NG8001: 'ds-item-page-uri-field' is not a known element:
1. If 'ds-item-page-uri-field' is an Angular component, then verify that it is part of this module.
2. If 'ds-item-page-uri-field' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
46     <ds-item-page-uri-field [item]="object"
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47       [fields]="['dc.relation.uri']"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48       [label]="'item.page.relationship-uri'">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I have coppied an import of the expect modules to journal.component.ts :

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { MetadataUriValuesComponent } from '../../../../item-page/field-components/metadata-uri-values/metadata-uri-values.component';
import { ItemPageUriFieldComponent } from '../../../../item-page/simple/field-components/specific-field/uri/item-page-uri-field.component';


But still the same error...

Do you have a similar issue or what do you need to modify in Person entity view?

Best,

Matyas F. Bajger

University of Ostrava - University Library

https://library.osu.eu
https://eduo.osu.cz


Dne 11.12.2024 v 11:08 'Soukaïna Mahboub Mehboub' via DSpace Technical Support napsal(a):
Reply all
Reply to author
Forward
0 new messages