I'm trying to add the mimetype to the item display on browse lists generated by 
item-list.xsl.   It thought it would be simple to follow the example that is in 
the item-view.xsl, where it displays just fine, but I think the context must be 
off somehow.  I tried adding the following snippet, but it doesn't seem to know 
the mimetype, and just displays "/"  .  I'm guessing that it is some sort of 
context problem, but am too new to this to understand exactly what is 
happening.   (I also tried copying in the getFileTypeDesc template from the 
General-Handler.xsl, but that just did the same thing, so I'm assuming it sees 
the template, but not the mimetype ....)??  Any hints much appreciated!




<xsl:call-template name="getFileTypeDesc">
                        <xsl:with-param name="mimetype">
                            <xsl:value-of 
select="substring-before(@MIMETYPE,'/')"/>
                            <xsl:text>/</xsl:text>
                            <xsl:value-of 
select="substring-after(@MIMETYPE,'/')"/>
                        </xsl:with-param>
</xsl:call-template>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to