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:

<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 <wsampson@mdah.state.ms.us> 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']">

     <xsl:with-param name="context" select="$context"/>

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:


...as I only want specifically called bundles to display.

Any suggestions are appreciated.

Many thanks,

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
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette