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.
--
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
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.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/381c125d-817f-4dd4-9752-158213751d35n%40googlegroups.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
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/0fd08eed-d56a-4ff1-a128-242e07871f99n%40googlegroups.com.