Commit 62f5097d authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

modification du chemin de surcharge pour la toc d'une édition.156

parent 776a7fd7
Loading
Loading
Loading
Loading
+2 −8
Changes for rxq/util.xqm: 2 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -266,14 +266,8 @@ declare function max.util:getProjectMenuXSL($projectId) {
declare function max.util:getProjectTOCXSL($projectId) {

    let $xmlFormat:=max.config:getXMLFormat($projectId)
    let $xsltFile := max.util:getResourceFilePath($projectId, "ui/xsl/"|| $max.cons:TOC_XSL_FILENAME)
    return if(file:exists($xsltFile))
    then $xsltFile
    else
        let $formatXslt := max.util:getResourceFilePath($projectId, "/ui/xsl/"|| $xmlFormat || "/" || $max.cons:TOC_XSL_FILENAME)
        return if(file:exists($formatXslt))
               then $formatXslt
               else  max.util:getResourceFilePath($projectId, "/ui/xsl/core/" || $max.cons:TOC_XSL_FILENAME)
    let $targetFile := max.util:getResourceFilePath($projectId, "ui/xsl/core/"|| $max.cons:TOC_XSL_FILENAME)
    return  if(file:exists($targetFile)) then $targetFile else ()
};

(:
−10

File deleted.