Changeset 14535
- Timestamp:
- 2007-09-17T15:48:40+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/default/transform/document.xsl
r13996 r14535 77 77 <xsl:template match="document"> 78 78 <xsl:param name="collName"/> 79 79 <xsl:variable name="external"><xsl:value-of select="/page/pageResponse/document/@external"/></xsl:variable> 80 <xsl:if test="$external != ''"> 81 <xsl:call-template name="externalPage"> 82 <xsl:with-param name="external" select="$external"/> 83 </xsl:call-template> 84 </xsl:if> 85 86 <xsl:if test="$external = ''"> 80 87 <xsl:if test="$bookswitch = 'flashxml'"> 81 88 <xsl:call-template name="xmldocumentContentPeeling"> … … 140 147 </xsl:text> 141 148 </script> 142 </xsl:if> 149 </xsl:if> 150 </xsl:if> 143 151 </xsl:template> 144 152 … … 570 578 </xsl:if> 571 579 </xsl:template> 580 581 <xsl:template name="externalPage"> 582 <xsl:param name="external"/> 583 <h2>External Link</h2> 584 <p>The link you have selected is external to any of your currently selected collections. If you still wish to view this link and your browser has access to the Web, you can <a><xsl:attribute name="href"><xsl:value-of select="$external"/></xsl:attribute>go forward</a> to this page; otherwise use your browsers "back" button to return to the previous document. 585 </p> 586 </xsl:template> 587 572 588 </xsl:stylesheet> 573 589
Note:
See TracChangeset
for help on using the changeset viewer.