dear all,

I want to add to the bitstreamurl the search query post value. 

Is there a way to access this variable in xsl?

    <xsl:if test="@MIMETYPE='application/pdf'">
          <xsl:variable name="bitstreamurl" 
select="mets:FLocat[@LOCTYPE='URL']/@xlink:href"/>
            <xsl:variable name="bitstreamid" select="@ID"/>

                <xsl:choose>
                    <xsl:when test="contains($bitstreamurl, 'isAllowed=n')">
                        <xsl:text>Restricted Access</xsl:text>
                    </xsl:when>
                    <xsl:otherwise>
                        <a >
                            <xsl:attribute name="href">
                            
                                <xsl:value-of select="$bitstreamurl"/>   // 
add search query
                            </xsl:attribute>
                           <xsl:text>open PDF</xsl:text>
                        </a>
                    </xsl:otherwise>
                </xsl:choose>
        </xsl:if>

best
lars

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to