Jose,

1.) Changing the Item Type is going to require altering Java code in the
XMLUI for the METS generator

2.) Changing the Controller code: Some of the DRI rendering in determining
the "mode" or "view type" such as summary or list, is going to result in
actually needing to change the DRI Elements ReferenceSet.java and/or
Reference.java.

Maybe you can explain what your hoping to attain, are you trying to create
Views on different types of Items?

Mark

On Thu, Jul 21, 2011 at 12:55 PM, Blanco, Jose <[email protected]> wrote:

> OK, After looking at the code some more today, I kind of see how this
> works.  The dri2xhtml.xsl file imports:
>
> Structural.xsl
> DIM-Handler.xsl
> General-Handler.xsl
>
> And if you look at these xsl carefully you can see that they call the
> appropriate template based on the DRI and mets XML.
>
> I'm still stuck though, because what I would ideally like is for my new
> aspect to create some sort of flag that would tell the theme to go to a
> particular template, but I can't figure out how to do this.
>
> In DIM-Handler.xsl  there is some code that looks like this:
>
>    <xsl:template
> match="mets:METS[mets:dmdSec/mets:mdWrap[@OTHERMDTYPE='DIM']]"
> mode="summaryList">
>        <xsl:choose>
>            <xsl:when test="@LABEL='DSpace Item'">
>                <xsl:call-template name="itemSummaryList-DIM"/>
>            </xsl:when>
>            <xsl:when test="@LABEL='DSpace Collection'">
>                <xsl:call-template name="collectionSummaryList-DIM"/>
>            </xsl:when>
>            <xsl:when test="@LABEL='DSpace Community'">
>                <xsl:call-template name="communitySummaryList-DIM"/>
>            </xsl:when>
>            <xsl:otherwise>
>
>  <i18n:text>xmlui.dri2xhtml.METS-1.0.non-conformant</i18n:text>
>            </xsl:otherwise>
>        </xsl:choose>
>    </xsl:template>
>
> And I would like to add a new new case that would look like this:
>
>            <xsl:when test="@LABEL='DSpace Item 2'">
>                <xsl:call-template name="itemSummaryList-DIM-2"/>
>            </xsl:when>
>
>
> But how do I get LABEL set to 'Dspace Item 2' from the aspect code?
>
> How do I create a new type of item?  Any help would be greatly appreciated.
>
> -Jose
>
> -----Original Message-----
> From: Blanco, Jose [mailto:[email protected]]
> Sent: Thursday, July 21, 2011 10:19 AM
> To: [email protected]
> Subject: [Dspace-tech] from aspect to theme
>
> The aspect aspect.artifactbrowser.ItemViewer prepares a DRI that is later
> processed by the theme General-Handler.xsl.  How does the system know to go
> to General-Handler.xsl?
>
> I've created a new aspect called aspect.artifactbrowser.ItemViewerNew, and
> I changed the aspect sitemap to go to either ItemViewer aspect or
> ItemViewerNew depending on a condition.  Now I want to create a new theme
> for ItemViewerNew.  How do I connect my new aspect with a new theme?
>
> Thank you!
> Jose
>
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient
> ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient
> ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>



-- 
Mark R. Diggory
@mire - www.atmire.com
2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
Esperantolaan 4 - Heverlee 3001 - Belgium
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to