Re: [Dspace-tech] Howto: count number of files attached to an in item

2009-02-09 Thread mikan.d.dspace listmail
Another tricky XSL question: Im hoping to dig out title and author in General-Handler.xsl. I tried using the following: xsl:variable name=data select=mets:METS/mets:dmdSec/mets:mdWrap/mets:xmlData/dim:dim/ xsl:variable name=Title select=$data/dim:fie...@element='title'] / xsl:variable

Re: [Dspace-tech] Howto: count number of files attached to an in item

2008-12-30 Thread mikan.d.dspace listmail
Great, thanks. I tried this and it works fine in item-view. What if I'd like to use the variables when browsing search results or collection contens , how could I do this? Mika 2008/12/29 Andreas Geyrecker andreas.geyrec...@gmail.com: Hi Mika, you have to define the following global variables

[Dspace-tech] Howto: count number of files attached to an in item

2008-12-29 Thread mikan.d.dspace listmail
Perhaps someone could give me a hint on following issues: 1) I need to count the number of items attached to an item in template.xsl? 2) If an item has many different files attached to it, I would like to create a concatenated string of the file mime-types (and examine this string later on).

Re: [Dspace-tech] Howto: count number of files attached to an in item

2008-12-29 Thread Andreas Geyrecker
Hi Mika, you have to define the following global variables in template.xsl: xsl:variable name=externalMetadataURL xsl:choose xsl:when test=/dri:document/dri:body/dri:d...@n='item-view']/dri:references...@type='summaryView']/dri:referen...@type='DSpace Item']