Thank you, Mark,

It made it clear!

On Friday, August 7, 2020 at 9:09:29 a.m. UTC-3 Mark H. Wood wrote:

> On Thu, Aug 06, 2020 at 01:30:30PM -0700, Lolekbolek wrote:
> > What theme(s) am I using?
> > Greetings,
> > 
> > I am working on upgrading DSpace 4.0 to the modern version, but 
> meanwhile, 
> > I would like to edit the simple item display, adding fields like 
> > dc.description.abstract or dc.rights. I read the old conversations and 
> > understand that I would need to edit item-view.xsl. My question is - how 
> > do I know which one(s) to edit? When I run a search, I find 4 copies of 
> > item-view.xsl located in:
> > 
> > C:\DSpace\webapps\xmlui\themes\Mirage\lib\xsl\aspect\artifactbrowser 
> > C:\DSpace\webapps\xmlui\themes\Mirage42\lib\xsl\aspect\artifactbrowser
> > C:\DSpace\webapps\xmlui\themes\dri2xhtml-alt\aspect\artifactbrowser
> > 
> C:\DSpace\webapps\xmlui\themes\Mirage-Myspace\lib\xsl\aspect\artifactbrowser
> > 
> > The xmlui.xconf file has the following themes listed in the following 
> > order. Do I understand that all of them could being used, but Mirage is 
> > the main one, because it has regex=".*"? Would I still have to touch up 
> > all?
>
> From 
> dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/ThemeMatcher.java:
>
> /**
> * This class determines the correct Theme to apply to the URL. This is
> * determined by the Theme rules defined in the xmlui.xml configuration 
> file.
> * Each rule is evaluated in order and the first rule to match is the 
> selected
> * Theme.
>
> So:
>
> > <theme name="Mirage-Myspace" handle="10000/1000" path="Mirage-Myspace/" 
> />
>
> This theme is used when displaying any page for the object 10000/1000.
>
> > <theme name="Mirage" regex=".*" path="Mirage/" />
>
> This theme is used for any other page, because it matches everything.
>
> > <theme name="Mirage42" handle="10000/1000" path="Mirage42/" />
>
> Never considered, because of the wildcard match before it.
>
> > <theme name="Economy" handle="10000/1001" path="EconomyTheme/"/> 
>
> Never considered, because of the wildcard match before it.
>
> I think that you only need adjust the transform in "Mirage-Myspace" and
> "Mirage".
>
> The 'dri2xhtml-alt' theme is imported by Mirage, and probably by your
> Mirage-Myspace. I don't think it is ever used alone.
>
> -- 
> Mark H. Wood
> Lead Technology Analyst
>
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749 <(317)%20274-0749>
> www.ulib.iupui.edu
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 on the web visit 
https://groups.google.com/d/msgid/dspace-tech/38a59433-85fb-414d-8cd4-3b805f714afdn%40googlegroups.com.

Reply via email to