Ignore:
Timestamp:
2024-03-11T11:18:49+13:00 (3 months ago)
Author:
kjdon
Message:

merged the changes from expand-gsf.xsl.for-gs312 into current version, and deleting the 312 version

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  
    399399        <xsl:choose>
    400400            <xsl:when test="@type='classifier'">
    401                 <img style="border:0px">
     401                <img stylexx="border:0px">
    402402                    <xsl:attribute name="src">
    403403                        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'bookshelf_image')"/>
    404404                    </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
    405423                </img>
    406424            </xsl:when>
     
    429447            </xsl:when>
    430448            <xsl:when test="not(@type) or @type='document'">
    431                 <img style="border:0px">
     449                <img styleXX="border:0px">
    432450                    <xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/>
    433451                    </xslt:attribute>
     
    442460                        </xslt:choose>
    443461                    </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
    444473                </img>
    445474            </xsl:when>
     
    544573      </xsl:choose>
    545574    </xsl:template>
     575
    546576
    547577    <!-- if this gsf:metadata is a child of a document node then we want to get the metadata for that node -->
     
    641671    <xsl:variable name="meta_name"><xsl:call-template name="getMetadataName"/></xsl:variable>
    642672    <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>
    644676      <xsl:apply-templates/>
    645677    </xslt:for-each>
     
    686718          <!-- just copy out the text content-->
    687719          <xsl:otherwise>
    688         <xsl:apply-templates select="*[not(self::content)]|text()"/>
     720        <xsl:apply-templates select="*"/><xsl:value-of select="."/>
    689721          </xsl:otherwise>
    690722        </xsl:choose>
     
    692724      <td>
    693725        <xsl:choose>
    694           <xsl:when test="./content"><xsl:apply-templates select="./content"/></xsl:when>
     726          <xsl:when test="./content"><xsl:copy-of select="./content"/></xsl:when>
    695727          <xsl:otherwise>
    696         <i><xsl:apply-templates select="."/></i>
     728        <i><xsl:copy-of select="."/></i>
    697729          </xsl:otherwise>
    698730        </xsl:choose>
     
    705737    </table>
    706738  </xsl:template>
    707  
    708739
    709740  <xsl:template match="gsf:text">
Note: See TracChangeset for help on using the changeset viewer.