diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-03-25 15:18:41 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-03-26 12:51:58 +0100 |
commit | 9b776454d95f5c6bf13c0ca5508c0b2225aa4c1c (patch) | |
tree | dd50ba9c72e6305705b36cc8f3b151ad43a8f16f /help3xsl | |
parent | dba79673b5bbf4f7e6f21dc6a1d776e1556c38d7 (diff) |
Add module name to Contents link URL
Add ?DbPAR=<MODULE> to the contents link URL. <smodule>.tree does not
have the DbPAR param in the link URLs.
2 possibiltites:
1) Add to the source files *.tree and we are done (triggers retranslation)
2) get module name at build time and add to the resulting tree (this
solution)
Change-Id: I2a3c1edcec7dd824a44bb93f0343ec8cb88cb0c4
Reviewed-on: https://gerrit.libreoffice.org/69714
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/get_tree.xsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/help3xsl/get_tree.xsl b/help3xsl/get_tree.xsl index 749dd4a53d..d1cf965e12 100644 --- a/help3xsl/get_tree.xsl +++ b/help3xsl/get_tree.xsl @@ -17,6 +17,7 @@ xsltproc get_tree.xsl <file.tree> <xsl:param name="local"/> <xsl:param name="productversion"/> <xsl:param name="productname"/> +<xsl:param name="module"/> <xsl:output indent="no" method="text"/> <!-- ############################ @@ -56,7 +57,7 @@ xsltproc get_tree.xsl <file.tree> <xsl:template match="topic"> <xsl:variable name="htmlpage"> - <xsl:value-of select="concat($target,$lang,'/',substring-before(substring-after(@id,'/'),'.xhp'),'.html')" /> + <xsl:value-of select="concat($target,$lang,'/',substring-before(substring-after(@id,'/'),'.xhp'),'.html','?DbPAR=',$module)" /> </xsl:variable> <![CDATA[<li><a target="_top" href="]]><xsl:value-of select="$htmlpage"/><![CDATA[">]]><xsl:call-template name="replace"><xsl:with-param name="text"><xsl:value-of select="."/></xsl:with-param></xsl:call-template><![CDATA[</a></li>\]]> </xsl:template> |