Hello everybody

I'm trying to put the PDF link (if exist) in the result search page or
when the user explores a community, or browse by date, etc.
I've tried to touch DIM-Handler.xsl

....
<!-- Generate the info about the item from the metadata section -->
    <xsl:template match="dim:dim" mode="itemSummaryList-DIM">
        <xsl:variable name="itemWithdrawn" select="@withdrawn" />

        <!-- Here will be a div for the PDF .-->

        <xsl:if test="count(ancestor::mets:fileSec/mets:fileGrp) &gt; 0">
              <p>PDF link</p>
        </xsl:if>

        <div class="artifact-description">
         ....

But cannot make it work, It seems that the XML has fileSec but in
anycase this element is empty (even if the record has files
associated). Only has fileGrp when the user access to the detailed
view clicking in the title. Anybody could point me to the right way to
obtain the attached file list for an object? I've tried //mets:file,
//mets:fileGrp/mets:file, etc etc...

Regards and thanks
German

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to