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):
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:
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:
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:
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:
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
<https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization#UserInterfaceCustomization-CustomizethesimpleItempage:~:text=changes%20are%20detected.-,Customize%20the%20simple%20Item%20page,code%20under%20%22src/app/item-page/simple/item-types/publication/%22,-Here's%20the%20basics>,
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
--
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/87ecdeb6-7559-461c-af42-1d32304d175dn%40googlegroups.com
<https://groups.google.com/d/msgid/dspace-tech/87ecdeb6-7559-461c-af42-1d32304d175dn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 <tel:+49%206421%202825238>
eMail:[email protected]
ORCiD: 0000-0001-9315-3660
--
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/381c125d-817f-4dd4-9752-158213751d35n%40googlegroups.com
<https://groups.google.com/d/msgid/dspace-tech/381c125d-817f-4dd4-9752-158213751d35n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 <tel:+49%206421%202825238>
eMail:[email protected]
ORCiD: 0000-0001-9315-3660
--
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/0fd08eed-d56a-4ff1-a128-242e07871f99n%40googlegroups.com
<https://groups.google.com/d/msgid/dspace-tech/0fd08eed-d56a-4ff1-a128-242e07871f99n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/e5535465-c0a7-4698-879e-277c95881f15%40seznam.cz.