Changeset 38826 for main/trunk
- Timestamp:
- 2024-03-11T11:18:49+13:00 (3 months ago)
- Location:
- main/trunk/greenstone3/web/interfaces/default/transform
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/expand-gsf.xsl
r38825 r38826 399 399 <xsl:choose> 400 400 <xsl:when test="@type='classifier'"> 401 <img style ="border:0px">401 <img stylexx="border:0px"> 402 402 <xsl:attribute name="src"> 403 403 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'bookshelf_image')"/> 404 404 </xsl:attribute> 405 <xslt:attribute name='style'> 406 <xslt:text>border:0px;</xslt:text><xsl:value-of select='@style'/> 407 </xslt:attribute> 408 <!-- 409 <xsl:choose> 410 <xsl:when test="@style"> 411 <xslt:attribute name='style'> 412 <xslt:text>border:0px;</xslt:text><xsl:value-of select='@style'/> 413 </xslt:attribute> 414 </xsl:when> 415 <xsl:otherwise> 416 <xslt:attribute name='style'> 417 <xslt:text>border:0px;</xslt:text> 418 </xslt:attribute> 419 </xsl:otherwise> 420 </xsl:choose> 421 --> 422 405 423 </img> 406 424 </xsl:when> … … 429 447 </xsl:when> 430 448 <xsl:when test="not(@type) or @type='document'"> 431 <img style ="border:0px">449 <img styleXX="border:0px"> 432 450 <xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/> 433 451 </xslt:attribute> … … 442 460 </xslt:choose> 443 461 </xslt:attribute> 462 <xslt:attribute name='style'> 463 <xslt:text>border:0px;</xslt:text><xsl:value-of select='@style'/> 464 </xslt:attribute> 465 <!-- 466 <xsl:if test="@style"> 467 <xslt:attribute name='style'> 468 <xslt:text>border:0px;</xslt:text><xsl:value-of select='@style'/> 469 </xslt:attribute> 470 </xsl:if> 471 --> 472 444 473 </img> 445 474 </xsl:when> … … 544 573 </xsl:choose> 545 574 </xsl:template> 575 546 576 547 577 <!-- if this gsf:metadata is a child of a document node then we want to get the metadata for that node --> … … 641 671 <xsl:variable name="meta_name"><xsl:call-template name="getMetadataName"/></xsl:variable> 642 672 <xslt:for-each> 643 <xsl:attribute name="select"><xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>metadataList/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang"><xsl:text> and @lang=</xsl:text><xsl:value-of select="@lang"/></xsl:if><xsl:text>]</xsl:text></xsl:attribute><xsl:choose><xsl:when test='@sort'><xslt:sort/></xsl:when><xsl:when test="gsf:sort"><xslt:sort><xsl:copy-of select="gsf:sort/@*"/></xslt:sort></xsl:when></xsl:choose><xsl:if test='@separator'><xslt:if test='position()>1'><xsl:value-of select='@separator'/></xslt:if></xsl:if> 673 <xsl:attribute name="select"> 674 (<xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>metadataList/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang"><xsl:text> and @lang=</xsl:text><xsl:value-of select="@lang"/></xsl:if><xsl:text>]</xsl:text> 675 </xsl:attribute><xsl:choose><xsl:when test='@sort'><xslt:sort/></xsl:when><xsl:when test="gsf:sort"><xslt:sort><xsl:copy-of select="gsf:sort/@*"/></xslt:sort></xsl:when></xsl:choose><xsl:if test='@separator'><xslt:if test='position()>1'><xsl:value-of select='@separator'/></xslt:if></xsl:if> 644 676 <xsl:apply-templates/> 645 677 </xslt:for-each> … … 686 718 <!-- just copy out the text content--> 687 719 <xsl:otherwise> 688 <xsl:apply-templates select="* [not(self::content)]|text()"/>720 <xsl:apply-templates select="*"/><xsl:value-of select="."/> 689 721 </xsl:otherwise> 690 722 </xsl:choose> … … 692 724 <td> 693 725 <xsl:choose> 694 <xsl:when test="./content"><xsl: apply-templatesselect="./content"/></xsl:when>726 <xsl:when test="./content"><xsl:copy-of select="./content"/></xsl:when> 695 727 <xsl:otherwise> 696 <i><xsl: apply-templatesselect="."/></i>728 <i><xsl:copy-of select="."/></i> 697 729 </xsl:otherwise> 698 730 </xsl:choose> … … 705 737 </table> 706 738 </xsl:template> 707 708 739 709 740 <xsl:template match="gsf:text">
Note:
See TracChangeset
for help on using the changeset viewer.