Changeset 25824
- Timestamp:
- 2012-06-26T15:42:01+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r25720 r25824 177 177 </xsl:attribute> 178 178 <!-- Get the section content from the document template --> 179 <xsl:call-template name="documentNode Content"/>179 <xsl:call-template name="documentNodeText"/> 180 180 </div> 181 181 <xsl:if test="documentNode"> … … 256 256 </script> 257 257 </xsl:when> 258 <xsl:otherwise> 258 <xsl:when test="@docType='simple'"> 259 <xsl:call-template name="documentHeading"/><br/> 260 <xsl:call-template name="documentContent"/> 261 </xsl:when> 262 <xsl:otherwise> <!-- display the standard greenstone document --> 263 <xsl:call-template name="documentContent"/> 264 </xsl:otherwise> 265 </xsl:choose> 266 </xsl:template> 267 <xsl:template name="documentContent"> 268 <xsl:choose> 269 <xsl:when test="@docType='simple'"> 270 <xsl:call-template name="documentNodeText"/> 271 </xsl:when> 272 <xsl:otherwise> 273 <xsl:call-template name="wrappedDocument"/> 274 </xsl:otherwise> 275 </xsl:choose> 276 </xsl:template> 277 278 <xsl:template name="wrappedDocument"> 259 279 <xsl:choose> 260 280 <xsl:when test="/page/pageRequest/paramList/param[@name = 'alb']/@value = '1' or (string-length(/page/pageRequest/paramList/param[@name = 'd']/@value) > 0 and (/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or not(util:contains(/page/pageResponse/document/@selectedNode, '.'))))"> … … 265 285 <xsl:call-template name="wrapDocumentNodes"/> 266 286 </xsl:for-each> 287 267 288 </div> 268 289 </div> … … 298 319 </script> 299 320 </xsl:otherwise> 300 </xsl:choose>301 </xsl:otherwise>302 321 </xsl:choose> 303 322 … … 437 456 </xsl:choose> 438 457 </xsl:template> 439 440 <!-- The default template for displaying the document content --> 441 <xsl:template name="documentNodeContent"> 458 <xsl:template name="documentHeading"> 459 <b><gsf:metadata name="Title"/></b><br/> 460 </xsl:template> 461 <!-- The default template for displaying the document node text --> 462 <!-- equivalent to gsf:text --> 463 <xsl:template name="documentNodeText"> 442 464 <!-- Hides the "This document has no text." message --> 443 465 <xsl:variable name="noText"><gsf:metadata name="NoText"/></xsl:variable> 466 <xsl:if test="not($noText = '1')"> 444 467 445 468 <!-- Section text --> … … 448 471 <xsl:choose> 449 472 <xsl:when test="not(name())"> 450 <xsl:if test="not($noText = '1')">451 473 <xsl:value-of select="." disable-output-escaping="yes"/> 452 </xsl:if>474 453 475 </xsl:when> 454 476 <xsl:when test="name() = 'annotation'"> 455 477 <xsl:call-template name="displayAnnotation"/> 456 </xsl:when>457 <xsl:when test="name() = 'nodeContent'">458 <xsl:call-template name="documentNodeContent"/>459 478 </xsl:when> 460 479 <xsl:otherwise> … … 463 482 </xsl:choose> 464 483 </xsl:for-each> 465 </xsl:for-each> <xsl:text> </xsl:text>466 </xsl:template> 467 484 </xsl:for-each> </xsl:if><xsl:text> </xsl:text> 485 </xsl:template> 486 468 487 <!-- Used to produce a version of the page in a format that can be read by the realistic books plugin --> 469 488 <xsl:template name="documentNodeFlashXML">
Note:
See TracChangeset
for help on using the changeset viewer.