Hi All

On dsapce 3.1/xmlui version.Previosuly  thanks for heliex,we have done 
thumbnails to be linked to their corresponding pdf files.
But now we need to make thumbnail  without pdf to be clickable to url 
(http://www.slideshare.net/ILRI/spvcd-uganda-zachary).


Can anyone assists on this


From: Webshet, Sisay (ILRI)
Sent: Tuesday, May 28, 2013 12:03 PM
To: '[email protected]'
Cc: [email protected]
Subject: RE: [Dspace-tech] thumbnails to pdf

Thanks Helix,

It works !


From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]]<mailto:[mailto:[email protected]]> On Behalf 
Of helix84
Sent: Tuesday, May 28, 2013 11:39 AM
To: Webshet, Sisay (ILRI)
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Dspace-tech] thumbnails to pdf

On Tue, May 28, 2013 at 10:15 AM, Webshet, Sisay (ILRI) 
<[email protected]<mailto:[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
------------------------------------------------------------------------------
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