Hi Walker,

Sorry for the slow response.

So at line 423, you are correct that it looks like your filtering to just
the preservation bundle.
<xsl:template match="mets:fileGrp[@USE='PRESERVATION']">

However, keep in mind how XSLT works. This is a new "template match" that
you've created, which makes it a method, and the signature to be matched
upon is filegrp[...Preservation], but does anything ever call that?

But, a different template is probably taking precedence over this. This
type of condition, of saying ONLY preservation, should probably be a
condition in an IF block (aka choose / when) which L48 looks like a good
choice. So, you could alter L48, and others like it, to have ONLY
preservation.

For reference that data that xslt is matching upon is the item DRI metadata.
http://kb.osu.edu/dspace/metadata/handle/1811/51351/mets.xml
<mets:fileSec>
<mets:fileGrp USE="TEXT">
<mets:file CHECKSUMTYPE="MD5" GROUPID="group_file_245874" ID="file_245934"
MIMETYPE="text/plain" SIZE="25148" CHECKSUM="
c3d129c0ec03150273ea67a9c721357b">
<mets:FLocat LOCTYPE="URL" xlink:title="
ARV_BusFin_08_Annual_and_09_Quarterly_Financial_Report.doc.txt" xlink:label
="Extracted text" xlink:type="locator"xlink:href="
/dspace/bitstream/handle/1811/51351/ARV_BusFin_08_Annual_and_09_Quarterly_Financial_Report.doc.txt?sequence=3
"/>
</mets:file>
</mets:fileGrp>
<mets:fileGrp USE="CONTENT">
<mets:file CHECKSUMTYPE="MD5" GROUPID="group_file_245874" ID="file_245874"
MIMETYPE="application/msword" SIZE="117248" CHECKSUM="
d002fe7571652d82d6fd4f677ca1fb65">
<mets:FLocat LOCTYPE="URL" xlink:title="
ARV_BusFin_08_Annual_and_09_Quarterly_Financial_Report.doc" xlink:type="
locator"xlink:href="
/dspace/bitstream/handle/1811/51351/ARV_BusFin_08_Annual_and_09_Quarterly_Financial_Report.doc?sequence=1
"/>
</mets:file>
</mets:fileGrp>
</mets:fileSec>




Peter Dietz


On Wed, Jun 5, 2013 at 4:55 PM, Walker Sampson <[email protected]>wrote:

> Okay, perhaps my issue will be clearer this time. Again, 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 different parts of an item, however
> I'm not understanding how item display works in item-view.xsl.
>
> item-view.xsl here: http://pastebin.com/mKEedSNY
>
> At L423 I'm only calling the PRESERVATION bundle. However, CONTENT files
> are also displaying.
>
> This must come from the template matches at L49. Is this line calling
> 'ItemViewer.java'
> (
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/ItemViewer.java
> )?
>
>
> Is that why CONTENT files are still displayed?
>
> Thanks-
> Walker
>
> On 05/29/2013 09:48 AM, Walker Sampson wrote:
> > Peter and helix84,
> >
> > Sorry it's taken a while to respond, I haven't been able to get back to
> > this till now.
> >
> > In any case, thank you both for the tips. I'm looking at your code Peter
> > for pointers. I was aware of the bundle test condition at L45 of
> > item-view.xsl, and have that working correctly (it appears).
> >
> > Thanks for the patch helix84. It's a good start, though I'm still having
> > trouble getting the specific bundles to display as I need them -
> > specifically ORIGINAL seems difficult to call, or the display is being
> > overridden by another bundle. I'm taking your advice though and removing
> > sections where I can to see where the conflict lies.
> >
> > Once I've got item-view.xsl where I need it I'll post back and set it on
> > Gist.
> >
> > Thanks-
> > Walker
> >
> > On 05/23/2013 05:10 PM, helix84 wrote:
> >> You're doing some weird things here. I made a patch for you instead.
> >>
> >> I think you got confused by the complicated structure of the already
> >> existing theme. Next time, try to gut the stuff you don't need and
> >> rewrite what you need in a simpler way - you'll save time and learn
> >> something along the way.
> >>
> >>
> >> Regards,
> >> ~~helix84
> >>
> >> Compulsory reading: DSpace Mailing List Etiquette
> >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >>
> >
> >
> ------------------------------------------------------------------------------
> > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> > Get 100% visibility into your production application - at no cost.
> > Code-level diagnostics for performance bottlenecks with <2% overhead
> > Download for free and get started troubleshooting in minutes.
> > http://p.sf.net/sfu/appdyn_d2d_ap1
> > _______________________________________________
> > 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
> >
>
> --
> Walker Sampson
> Electronic Records Analyst, Government Records
> Mississippi Department of Archives & History
> 601-576-6929
> [email protected]
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
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

Reply via email to