Commit f134d1fa authored by emelinemancel's avatar emelinemancel
Browse files

Maj toc.xq

parent 13431a30
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -9,17 +9,18 @@ declare function local:list-db-resources($projectId, $dbPath, $baseURI, $dir){
    order by $d/text()
    return

        let $fullPathXml := substring-after($dir || '/' || $d/text(),'/')
        let $fullPathHtml :=substring-before($fullPathXml,'.xml')
    let $fullPath := substring-after($dir || '/' || $d/text(),'/')


        return
        <ul class="collection">
            {if(ends-with($d/text(),'.xml'))
            then
                (
                for $c in doc($dbPath || '/' || $fullPathXml)//*:ead
                for $c in doc($dbPath || '/' || $fullPath)//*:ead
                return
                <li data-href='{$baseURI}{$projectId}/sommaire/{$fullPathHtml}.html' depth="{$depth}">
                <li data-href='{$baseURI}{$projectId}/{$fullPath}/info/eadheader.html' depth="{$depth}">

                {data($c//*:titleproper)}
                </li>
                )