Changeset 32442

Show
Ignore:
Timestamp:
13.09.2018 09:56:10 (10 months ago)
Author:
kjdon
Message:

if using <gsf:image type='cover'> in search results format statement, then we have assocfilepath in metadata (assuming doc level) not root_assocfilepath. so try both.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl

    r32095 r32442  
    153153            </xslt:when> 
    154154            <xslt:otherwise> 
    155               <xslt:value-of disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='root_assocfilepath']" /> 
     155              <xslt:choose> 
     156            <xslt:when test=".//metadataList)[last()]/metadata[@name='assocfilepath']"> 
     157              <xslt:value-of disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='assocfilepath']" /> 
     158            </xslt:when> 
     159            <xslt:otherwise> 
     160              <xslt:value-of disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='root_assocfilepath']" /> 
     161            </xslt:otherwise> 
     162              </xslt:choose> 
    156163            </xslt:otherwise> 
    157164          </xslt:choose>