DSpace 7 item theming

883 views
Skip to first unread message

Bill Tantzen

unread,
Aug 1, 2022, 1:44:01 PM8/1/22
to DSpace Technical Support
This seems like a pretty basic problem, but I have not been able to find a solution.  If documentation exists, please point it out to me!

I would like to add / remove / re-order the metadata on the simple item view page for a custom theme.  I have discovered src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html however I don't want to make global changes; I have a pair of custom themes, and I would like different item views in the different themes.

Is there a way to accomplish this?

Thanks!
Bill

--
Human wheels spin round and round
While the clock keeps the pace... -- John Mellencamp
________________________________________________________________
Bill Tantzen    University of Minnesota Libraries
612-626-9949 (U of M)    612-325-1777 (cell)

Mark H. Wood

unread,
Aug 2, 2022, 8:50:39 AM8/2/22
to dspac...@googlegroups.com
On Mon, Aug 01, 2022 at 12:43:46PM -0500, 'Bill Tantzen' via DSpace Technical Support wrote:
> This seems like a pretty basic problem, but I have not been able to find a
> solution. If documentation exists, please point it out to me!
>
> I would like to add / remove / re-order the metadata on the simple item
> view page for a custom theme. I have discovered
> src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html
> however I don't want to make global changes; I have a pair of custom
> themes, and I would like different item views in the different themes.
>
> Is there a way to accomplish this?

That is one of the theme-able components, so you can copy the whole
component into your themes and reorganize the copies as needed.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Bill Tantzen

unread,
Aug 2, 2022, 10:34:56 AM8/2/22
to dspac...@googlegroups.com
Mark,
I'll give it a try -- my understanding was that only things from the custom theme were themeable (and item-page/simple/item-types/untyped-item/ is not in themes/custom/item-page).  But I'll find out!
Thanks,
Bill

--
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 on the web visit https://groups.google.com/d/msgid/dspace-tech/YukdmlN7wzL1%2BRH9%40IUPUI.Edu.

Mark H. Wood

unread,
Aug 3, 2022, 8:04:26 AM8/3/22
to dspac...@googlegroups.com
On Tue, Aug 02, 2022 at 09:34:40AM -0500, 'Bill Tantzen' via DSpace Technical Support wrote:
> Mark,
> I'll give it a try -- my understanding was that only things from the custom
> theme were themeable (and item-page/simple/item-types/untyped-item/ is not
> in themes/custom/item-page). But I'll find out!

I should've said that I'm doing something similar with a custom
untyped-item in a theme and it works.
signature.asc

Bill Tantzen

unread,
Aug 3, 2022, 8:26:27 AM8/3/22
to dspac...@googlegroups.com
Yes it does!  I was misled by the part of the docs that stated, if a component is not in the custom theme, then it's not themeable.  Maybe this works because it's a child of a themeable component?  You have to be careful about adjusting the import paths in UntypedItemComponent, and to import the component itself, but once you jump through a couple hoops, it works.

I'm still not quite where I want to be -- it seems as if the smallest level of refinement is <ds-generic-item-page-field>, and I need a bit more than that.  For instance, we have dc.identifier.issn, isbn, uri, and a couple others.  I would like to group them together in the same pseudo "field" (as I might do with field=dc.identifier.*) but still label them by type individually.

There's a frustration level after getting pretty adept at doing these things in xmlui, but with every new tech there's a learning curve!

Anyway, thanks for the tip!
~~Bill

--
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.

Bollini, Andrea

unread,
Aug 3, 2022, 8:40:44 AM8/3/22
to Mark H. Wood, dspac...@googlegroups.com
You could be interested in knowing that DSpace-CRIS supports configuration of the item page layout in the database.
You can find more about that at page 43 and following of the technical documentation

Best,
Andrea


Da: Mark H. Wood,UL 0115A,+1 317 274 0749, <mw...@IUPUI.Edu> per conto di Mark H. Wood <mwood...@gmail.com>
Inviato: mercoledì 3 agosto 2022, 14:04
A: dspac...@googlegroups.com <dspac...@googlegroups.com>
Oggetto: Re: [dspace-tech] DSpace 7 item theming

On Tue, Aug 02, 2022 at 09:34:40AM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > Mark, > I'll give it a try -- my understanding was that only things from the custom > theme were themeable (and item-page/simple/item-types/untyped-item/ is not > in themes/custom/item-page). But I'll find out! I should've said that I'm doing something similar with a custom untyped-item in a theme and it works. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- 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 on the web visit https://groups.google.com/d/msgid/dspace-tech/YupkR0oJ2YUjHTO0%40IUPUI.Edu.
Reply all
Reply to author
Forward
0 new messages