Changeset 36907


Ignore:
Timestamp:
2022-11-15T14:00:33+13:00 (17 months ago)
Author:
kjdon
Message:

move the tkMetadataURL variable definition into a more appropriate template - prev, if a page didn't show teh quick search area (eg whakatohea), then you didn't get the metadata set loaded for TK labels

File:
1 edited

Legend:

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

    r36905 r36907  
    720720       no search indexes, which is why the extra test for the presence of an index/fq-something is necessary. -->
    721721  <xsl:template name="quick-search-area">
    722 
    723     <gsf:variable name="tkMetadataURL_collection"><xsl:value-of select="$library_name"/>/sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="$collNameChecked"/>/metadata/tk.mds</gsf:variable>
    724     <gsf:variable name="tkMetadataURL_site"><xsl:value-of select="$library_name"/>/sites/<xsl:value-of select="$site_name"/>/metadata/tk.mds</gsf:variable>
    725 
    726722    <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']">
    727723      <xsl:variable name="subaction" select="/page/pageRequest/@subaction"/>
     
    865861
    866862  <xsl:template name="js-for-loading-tk-metadata-set">
     863    <!-- gsf:variable sets these as xsl variables and also gs.variable["xx"] javascript variables-->
     864    <gsf:variable name="tkMetadataURL_collection"><xsl:value-of select="$library_name"/>/sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="$collNameChecked"/>/metadata/tk.mds</gsf:variable>
     865    <gsf:variable name="tkMetadataURL_site"><xsl:value-of select="$library_name"/>/sites/<xsl:value-of select="$site_name"/>/metadata/tk.mds</gsf:variable>
     866
    867867    <script type="text/javascript">
    868868      <xsl:text disable-output-escaping="yes">
Note: See TracChangeset for help on using the changeset viewer.