Show
Ignore:
Timestamp:
09.05.2011 14:37:04 (8 years ago)
Author:
sjm84
Message:

Updating this branch to match the latest Greenstone3 changes

Location:
main/branches/64_bit_Greenstone/greenstone3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/branches/64_bit_Greenstone/greenstone3

  • main/branches/64_bit_Greenstone/greenstone3/web/interfaces/oran/transform/pages/help.xsl

    r19988 r24007  
    1515 
    1616    <!-- set page breadcrumbs --> 
    17     <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/></xsl:template> 
     17    <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/> <gslib:collectionNameLinked/><gslib:rightArrow/></xsl:template> 
    1818 
    1919    <!-- the page content --> 
    2020    <xsl:template match="page"> 
    21         Help text goes here 
     21        <xsl:call-template name="helpTopics"/> 
     22        <xsl:call-template name="findingInformationHelp"/> 
     23        <xsl:call-template name="readingDocsHelp"/> 
     24        <xsl:call-template name="searchingHelp"/> 
     25        <xsl:call-template name="preferencesHelp"/> 
     26    </xsl:template> 
     27     
     28    <xsl:template name="helpTopics"> 
     29         
     30    </xsl:template> 
     31 
     32    <xsl:template name="findingInformationHelp"> 
     33        <xsl:variable name="searchEnabled"> 
     34            <xsl:choose> 
     35                <xsl:when test="/page/pageResponse/collection[@name=$collName]/serviceList/service[@type='query']">1</xsl:when> 
     36                <xsl:otherwise>0</xsl:otherwise> 
     37            </xsl:choose> 
     38        </xsl:variable> 
     39         
     40        <xsl:variable name="numClassifiers"> 
     41            <xsl:value-of select="count(/page/pageResponse/collection[@name=$collName]/serviceList/service[@name = 'ClassifierBrowse']/classifierList/classifier)"/> 
     42        </xsl:variable> 
     43 
     44        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.findinginformationtitle')"/> 
     45        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.findinginformation', $searchEnabled + $numClassifiers)"/> 
     46         
     47        <!-- using actual <ul> and <li> tags here would cause the XML parser to break --> 
     48        <xsl:text disable-output-escaping="yes">&lt;ul&gt;</xsl:text> 
     49        <xsl:if test="$searchEnabled = 1"> 
     50            <xsl:text disable-output-escaping="yes">&lt;li&gt;</xsl:text> 
     51            <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchdesc')"/> 
     52            <xsl:text disable-output-escaping="yes">&lt;/li&gt;</xsl:text> 
     53        </xsl:if> 
     54         
     55        <xsl:for-each select="/page/pageResponse/collection[@name=$collName]/serviceList/service[@name = 'ClassifierBrowse']/classifierList/classifier"> 
     56            <xsl:text disable-output-escaping="yes">&lt;li&gt;</xsl:text> 
     57            <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.browsedesc', ./displayItem[@name = 'name'])"/> 
     58            <xsl:text disable-output-escaping="yes">&lt;/li&gt;</xsl:text> 
     59        </xsl:for-each> 
     60        <xsl:text disable-output-escaping="yes">&lt;/ul&gt;</xsl:text> 
     61    </xsl:template> 
     62     
     63    <xsl:template name="readingDocsHelp"> 
     64        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.readingdocstitle')"/> 
     65        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.readingdocs')"/> 
     66         
     67        <table> 
     68            <tr> 
     69                <td colspan="2"><img src="interfaces/oran/images/bookshelf.png"/></td> 
     70                <td><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.openbookshelf')"/></td> 
     71            </tr> 
     72            <tr> 
     73                <td><img src="interfaces/oran/images/previous.png"/></td> 
     74                <td><img src="interfaces/oran/images/next.png"/></td> 
     75                <td><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.sectionarrows')"/></td> 
     76            </tr> 
     77        </table> 
     78    </xsl:template> 
     79     
     80    <xsl:template name="searchingHelp"> 
     81        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchingtitle')"/> 
     82        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searching')"/> 
     83         
     84        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.querytermstitle')"/> 
     85        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.queryterms')"/> 
     86         
     87        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.querytypetitle')"/> 
     88        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.querytype')"/> 
     89         
     90        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.queryscopetitle')"/> 
     91        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.queryscope')"/> 
     92    </xsl:template> 
     93     
     94    <xsl:template name="preferencesHelp"> 
     95        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.changingpreferencestitle')"/> 
     96        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.changingpreferences')"/> 
     97         
     98        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.collectionpreferencestitle')"/> 
     99        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.collectionpreferences')"/> 
     100         
     101        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.languagepreferencestitle')"/> 
     102        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.languagepreferences')"/> 
     103         
     104        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.presentationpreferencestitle')"/> 
     105        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.presentationpreferences')"/> 
     106         
     107        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchpreferencestitle')"/> 
     108        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchpreferences1')"/> 
     109        <xsl:if test="/page/pageResponse/collection[@name=$collName and (@type='mgpp' or @type='mg')]"> 
     110            <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.mgsearchpreferences')"/> 
     111        </xsl:if> 
     112        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchpreferences2')"/> 
    22113    </xsl:template> 
    23114</xsl:stylesheet>