Hi Walker,
I had a project a while back that we had a CurationTask do some funny
business to our Bitstreams, moving a PDF from ORIGINAL to PRESERVATION, and
then making a "watermarked" bitstream that got stuffed in a bundle called
DISPLAY.
We had to modify the item-view XSL code to display anything in ORIGINAL or
DISPLAY.
Take a look at:
https://github.com/osulibraries/DSpace/blob/osukb/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/snazy/snazy.xsl#L32
<xsl:choose>
<xsl:when test="./mets:fileSec/mets:fileGrp[@USE='CONTENT' or
@USE='ORIGINAL' or @USE='DISPLAY']">
<xsl:apply-templates
select="./mets:fileSec/mets:fileGrp[@USE='CONTENT' or @USE='ORIGINAL'
or @USE='DISPLAY']">
This is based off of dri2xhtml, not the dri2xhtml-alt (Mirage).
To possibly actually answer your question, the bundle is also declared on
line 45.
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/item-view.xsl#L45
Peter Dietz
On Thu, May 23, 2013 at 2:33 PM, Walker Sampson
<[email protected]>wrote:
> Hello all,
>
> I've been working with
> [dspace]/webapps/xmlui/themes/my-theme/.../item-view.xsl to have it
> display specific bundles for an item with an appropriate header. The
> intention is to clearly display for the user the different parts of an
> item.
>
> This code works fine, for example, for one bundle:
>
> <xsl:when test="../mets:fileGrp[@USE='PRESERVATION']">
>
>
> <h2><i18n:text>xmlui.dri2xhtml.METS-1.0.item-files-head-preservation</i18n:text></h2>
> <xsl:apply-templates
> select="../mets:fileGrp[@USE='PRESERVATION']/mets:file">
> <xsl:with-param name="context" select="$context"/>
> </xsl:apply-templates>
> </xsl:when>
>
> However, when applying the same template to the ORIGINAL bundle
> (changing PRESERVATION to ORIGINAL), the item view does not render any
> files in ORIGINAL.
>
> A second, related question: Even when removing this ORIGINAL call
> completely, PRESERVATION files are rendered twice; where in
> item-view.xsl are item files being called again? I have removed the
> "<xsl:otherwise>" condition at:
>
>
> https://github.com/DSpace/DSpace/blob/a0714564b78134d7b1dc2e32105aea3e38ffdbb3/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L376
>
>
> ...as I only want specifically called bundles to display.
>
> Any suggestions are appreciated.
>
> Many thanks,
> Walker
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette