On Tue, May 28, 2013 at 10:15 AM, Webshet, Sisay (ILRI) <[email protected]>
wrote:
> Or I want to hide the thumbnails info like ( Files      Size    Format
 View    Description)
> But I want the thumbnails to be linkable to pdf file

https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L40

To hide the "Files in this item" section, remove the xsl:choose block.

Adding the JPG thumbnail image linking to the PDF file is easy, just add
the following code to the top of the template:

        <a>
            <xsl:attribute name="href">
                <xsl:value-of
select="./mets:fileSec/mets:fileGrp[@USE='CONTENT' or
@USE='ORIGINAL']/mets:file[@MIMETYPE='application/pdf']/mets:FLocat/@xlink:href"
/>
            </xsl:attribute>
            <img>
                <xsl:attribute name="src">
                    <xsl:value-of
select="./mets:fileSec/mets:fileGrp[@USE='CONTENT' or
@USE='ORIGINAL']/mets:file[@MIMETYPE='image/jpeg']/mets:FLocat/@xlink:href"
/>
                </xsl:attribute>
            </img>
        </a>


Regards,
~~helix84

Compulsory reading: DSpace Mailing 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

Reply via email to