Changeset 33363

Show
Ignore:
Timestamp:
25.07.2019 15:59:25 (4 weeks ago)
Author:
davidb
Message:

Customization of help text

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/transform/pages/help.xsl

    r33223 r33363  
    1616  </xsl:template> 
    1717 
    18   <xsl:template match="page"> 
    19     <xsl:call-template name="searchingHelp"/> 
    20     </xsl:template> 
     18 
     19  <!-- optional cgi-params for links to document pages --> 
     20  <!-- needed here because collectionConfig.xml defined a template in 
     21       its *global* section that uses gsf:link, which in turn then 
     22       generates XSL tags that refer to opt-doc-link-arg --> 
     23 
     24  <xsl:variable name="opt-doc-link-args"></xsl:variable> 
     25 
     26 
     27  <xsl:template name="collectionHelp"> 
     28    <!-- **** -->  
     29    <h2>Using the Archaeological Reports Digital Library</h2> 
     30 
     31    <!-- general intro text --> 
     32    <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($help_interface_name, /page/@lang, 'help.collection_general')"/><br/><br/> 
     33 
     34    <xsl:call-template name="browsingHelp"/> 
     35    <xsl:if test="/page/pageResponse/collection/serviceList/service[@type='query']"> 
     36      <xsl:call-template name="searchingHelp"/> 
     37      <xsl:call-template name="searchParamsHelp"/> 
     38      <xsl:call-template name="searchResultsHelp"/> 
     39    </xsl:if> 
     40<!-- **** 
     41    <xsl:call-template name="documentHelp"/> 
     42--> 
     43    <xsl:if test="/page/pageResponse/interfaceOptions/option[@name='favouriteBasket']/@value='true'"> 
     44      <xsl:call-template name="favouriteBasketHelp"/> 
     45    </xsl:if> 
     46    <xsl:if test="/page/pageResponse/interfaceOptions/option[@name='berryBasket']/@value='true'"> 
     47      <xsl:call-template name="berryBasketHelp"/> 
     48    </xsl:if> 
     49    <xsl:if test="//format/gsf:option[@name='RSS']/@value= 'true'"> 
     50      <xsl:call-template name="rssHelp"/> 
     51    </xsl:if> 
     52  </xsl:template> 
     53 
     54   
     55  <xsl:template name="browsingHelp"> 
     56    <h3><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($help_interface_name, /page/@lang, 'help.browsing_title')"/></h3><br/> 
     57    <p><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($help_interface_name, /page/@lang, 'help.browsing_general')"/></p> 
     58 
     59    <p><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($help_interface_name, /page/@lang, 'help.browsing_extra')"/></p> 
     60 
     61<!-- *** 
     62    <dl> 
     63      <dt><img src="interfaces/{$interface_name}/images/bshelf.gif"/></dt> 
     64      <xsl:variable name="plus_icon"><img src="interfaces/{$interface_name}/images/expand.png"/></xsl:variable> 
     65      <dd><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceTextWithDOM($help_interface_name, /page/@lang, 'help.browsing_bookshelf', $plus_icon)"/></dd> 
     66      <xsl:variable name="book_icon"><img src="interfaces/{$interface_name}/images/book.png"/></xsl:variable> 
     67      <xsl:variable name="page_icon"><img src="interfaces/{$interface_name}/images/itext.gif"/> </xsl:variable> 
     68 
     69      <dt><xsl:copy-of select="$book_icon"/><gsf:space/> <xsl:copy-of select="$page_icon"/></dt> 
     70      <dd><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceTextWithDOM($help_interface_name, /page/@lang, 'help.browsing_book', $book_icon, $page_icon)"/></dd> 
     71       <dt><img src="interfaces/{$interface_name}/images/ipdf.gif"/><gsf:space/><img src="interfaces/{$interface_name}/images/imsword.gif"/><gsf:space/><img src="interfaces/{$interface_name}/images/imp3.gif"/> ...</dt> 
     72      <dd><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($help_interface_name, /page/@lang, 'help.browsing_srcicon')"/></dd> 
     73 
     74      </dl> 
     75--> 
     76  </xsl:template> 
    2177 
    2278</xsl:stylesheet>