Adding a component to the item result component.

91 views
Skip to first unread message

Jose Blanco

unread,
Sep 23, 2023, 2:08:34 PM9/23/23
to DSpace Technical Support
I want the file information that shows up in the simple item page to
be displayed below the item in the result list page. So....

I added this

<ds-themed-item-page-file-section
[item]="dso"></ds-themed-item-page-file-section>

to this file:
app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.html

I'm using the dspace theme.

I'm getting this error:

src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.html:48:1
- error NG8001: 'ds-themed-item-page-file-section' is not a known
element: 1. If 'ds-themed-item-page-file-section' is an Angular
component, then verify that it is part of this module. 2. If
'ds-themed-item-page-file-section' is a Web Component then add
'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component
to suppress this message. 48 <ds-themed-item-page-file-section
[item]="dso"></ds-themed-item-page-file-section>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.ts:43:16
43 templateUrl: './item-search-result-list-element.component.html'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the
template of component ItemSearchResultListElementComponent.

What do I need to do to use this component in
item-search-result-list-element.component.html ?

Thank you!
-Jose
Reply all
Reply to author
Forward
0 new messages