Ignore:
Timestamp:
2018-09-13T09:56:10+12:00 (6 years 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.

File:
1 edited

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>                       
Note: See TracChangeset for help on using the changeset viewer.