summaryrefslogtreecommitdiffstats
path: root/help3xsl/get_bookmark.xsl
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2018-01-22 16:48:08 +0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-01-23 12:03:49 +0100
commit995f740adfff22aff1105a7e1b2801dfdab43434 (patch)
treeb130ea7c62f69430fb97df90fb5b6bf40784645c /help3xsl/get_bookmark.xsl
parenttdf#35301 Tiny text tweak for newly available ruby position (diff)
downloadhelp-995f740adfff22aff1105a7e1b2801dfdab43434.tar.gz
help-995f740adfff22aff1105a7e1b2801dfdab43434.zip
Use list.js for Index listing and search
List.js - http://listjs.com/ - allows us to paginate the results so the height does not get out of hand. Fuzzy search would be cool: http://listjs.com/docs/fuzzysearch/ ...but it gives too big of a perf hit with our 5700 items. Might try to bribe the creator to look into perf. Thanks a lot to David Tardon for the makefile solution and to Christian Lohmaier for playing a rubber duck. Change-Id: I359eed541470ccaa309b0b6ff5d809a796d9befd Reviewed-on: https://gerrit.libreoffice.org/48335 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/get_bookmark.xsl')
-rw-r--r--help3xsl/get_bookmark.xsl8
1 files changed, 5 insertions, 3 deletions
diff --git a/help3xsl/get_bookmark.xsl b/help3xsl/get_bookmark.xsl
index d0fd8f19a3..6e8d4aff35 100644
--- a/help3xsl/get_bookmark.xsl
+++ b/help3xsl/get_bookmark.xsl
@@ -55,9 +55,11 @@ xsltproc get_bookmark.xsl <file.xhp>
<xsl:variable name="hrefhtml" select="substring-before($filename,'xhp')"/>
<xsl:variable name="href" select="concat($productversion,'/',$Language,'/',$hrefhtml,'html?DbPAR=',$app,'#',@id)"/>
<xsl:for-each select="bookmark_value">
- <xsl:text disable-output-escaping="yes"><![CDATA[<li><a target="_top" href="]]></xsl:text>
- <xsl:value-of select="$href"/>
- <xsl:text disable-output-escaping="yes"><![CDATA[">]]></xsl:text>
+ <xsl:text disable-output-escaping="yes"><![CDATA[<li><a target="_top" href="]]></xsl:text>
+ <xsl:value-of select="$href"/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[" class="]]></xsl:text>
+ <xsl:value-of select="$app"/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[">]]></xsl:text>
<xsl:call-template name="replace"><xsl:with-param name="text" select="."/></xsl:call-template>
<xsl:text disable-output-escaping="yes"><![CDATA[</a></li>\]]>&#xA;</xsl:text>
</xsl:for-each>