display custom dc inside the item page

110 views
Skip to first unread message

Costantino, Fernán

unread,
Apr 18, 2023, 5:32:41 PM4/18/23
to dspac...@googlegroups.com

Hi people,

Is there a way to display a custom dc data into item page? We are testing DSpace 7.5. Is there something like editing item-view.xsl (DSpace 6.x)?

Thanks,

--
Costantino, Fernán
División Nuevas Tecnologías
Biblioteca Central Francisco P. Moreno
Universidad Nacional del Comahue
Santa Fe y Leloir (Q8300) Neuquén Cap.- Tel 54(0299)4490398

Michael Plate

unread,
Apr 19, 2023, 5:36:19 AM4/19/23
to dspac...@googlegroups.com
Hi,

Am 18.04.23 um 23:32 schrieb Costantino, Fernán:
> Hi people,
>
> Is there a way to display a custom dc data into item page?
[…]


Go to [DSpace-angular]src/app/item-page/simple/item-types/untyped-item
and open

untyped-item.component.html

The "ds-generic-item-page-field" should be a good introduction on how to
display metadata fields.

You can create a theme to avoid changing the main tree
(https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization).
You can play a bit in the template before writing - if anyway - your own
components.
This is a short test(!) of ours for a clickable list of editors
(metadate: dc.contributor.editor):

<!-- UBKS dc.contributor.editor-->
<ng-container *ngIf="object.metadata['dc.contributor.editor']">
<h2>{{'relationships.isEditorOf' | translate}}</h2>
<div style="word-break: break-word;display: inline-block;"
*ngFor="let authors of object.metadata['dc.contributor.editor']| keyvalue">
<a href="/browse/author?value={{authors.value.value}}"
style="border:1px solid
#f0f0f0;border-radius:4px;background-color:#f0f0f0;margin:2px;display:
inline-block;">{{ authors.value.value}}</a>
</div>
</ng-container>

Hope it helps


Michael

Costantino, Fernán

unread,
Apr 27, 2023, 4:13:48 PM4/27/23
to dspac...@googlegroups.com

Hi Michael, thanks. So If I need to change the Item Page, I need to modify Theme source and rebuild it to add changes in production service. Right?

I am going to read https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization

Thanks again,

--
Reply all
Reply to author
Forward
0 new messages