Skip to content

Commit

Permalink
Images in help now visible
Browse files Browse the repository at this point in the history
  • Loading branch information
roewenstrunk committed Dec 2, 2024
1 parent fc3baf8 commit 93444a3
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 102 deletions.
7 changes: 5 additions & 2 deletions add/data/xql/getHelp.xql
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ declare option output:omit-xml-declaration "yes";

let $lang := request:get-parameter('lang', 'en')
let $idPrefix := request:get-parameter('idPrefix', '')
let $contextPath := request:get-context-path()

let $base := replace(system:get-module-load-path(), 'embedded-eXist-server', '') (:TODO:)

let $doc := doc(concat('../../help/help_', $lang, '.xml'))
let $contextPath := if(starts-with(document-uri($doc), '/db'))
then substring-after(document-uri($doc), '/db')
else document-uri($doc)
let $contextPath := substring-before($contextPath, concat('help/help_', $lang, '.xml'))
let $contextPath := request:get-context-path() || $contextPath

let $xsl := doc('../xslt/edirom_langReplacement.xsl')
let $doc :=
Expand All @@ -43,7 +47,6 @@ let $doc :=
<param name="base" value="{concat($base, '/../xslt/')}"/>
<param name="lang" value="{$lang}"/>
<param name="tocDepth" value="1"/>
<param name="graphicsPrefix" value="help/"/>
<param name="contextPath" value="{$contextPath}"/>
(: == passing empty value for docUri (XSLT expects xs:anyURI, but ExtJS view does not provide value) -> github#480 == :)
<param name="docUri" value="''"/>
Expand Down
Loading

0 comments on commit 93444a3

Please sign in to comment.