Loading xq/document_toc_.xq→xq/document_toc.xq +4 −1 Original line number Diff line number Diff line (: For conditions of distribution and use, see the accompanying legal.txt file. :) import module namespace max.config = 'pddn/max/config' at '../../../rxq/config.xqm'; import module namespace max.i18n = 'pddn/max/i18n' at '../../../rxq/i18n.xqm'; declare variable $baseURI external; declare variable $project external; Loading @@ -17,6 +17,8 @@ declare function local:buildEADDocumentTOC($projectId, $docPath){ { for $c in $target/*:ead/*:archdesc/*:dsc return ( <a href="{$baseURI}{$projectId}/{$docPath}/info/eadheader.html">{max.i18n:getText($project,'menu.meta')}</a>, <details id="details_{$c/ancestor::*:archdesc/@level}" level="archdesc" open=""> <summary> <a href="{$baseURI}{$projectId}/{$docPath}/{$c/ancestor::*:archdesc/@id}.html"> Loading @@ -26,6 +28,7 @@ declare function local:buildEADDocumentTOC($projectId, $docPath){ </summary> {local:childrenToc($c, $projectId, $docPath)} </details> ) } </nav> }; Loading Loading
xq/document_toc_.xq→xq/document_toc.xq +4 −1 Original line number Diff line number Diff line (: For conditions of distribution and use, see the accompanying legal.txt file. :) import module namespace max.config = 'pddn/max/config' at '../../../rxq/config.xqm'; import module namespace max.i18n = 'pddn/max/i18n' at '../../../rxq/i18n.xqm'; declare variable $baseURI external; declare variable $project external; Loading @@ -17,6 +17,8 @@ declare function local:buildEADDocumentTOC($projectId, $docPath){ { for $c in $target/*:ead/*:archdesc/*:dsc return ( <a href="{$baseURI}{$projectId}/{$docPath}/info/eadheader.html">{max.i18n:getText($project,'menu.meta')}</a>, <details id="details_{$c/ancestor::*:archdesc/@level}" level="archdesc" open=""> <summary> <a href="{$baseURI}{$projectId}/{$docPath}/{$c/ancestor::*:archdesc/@id}.html"> Loading @@ -26,6 +28,7 @@ declare function local:buildEADDocumentTOC($projectId, $docPath){ </summary> {local:childrenToc($c, $projectId, $docPath)} </details> ) } </nav> }; Loading