Loading plugins/index/index.xqm +6 −19 Original line number Diff line number Diff line Loading @@ -98,10 +98,7 @@ function max.plugin.index:index($project){ else max.plugin.index:generateIndex($project) }; declare %rest:GET %output:method("html") %rest:path("/editions/{$project}/generateindex") declare %private function max.plugin.index:generateIndex($project){ try{ let $indexFilePath :=file:parent(file:parent(file:parent(static-base-uri()))) || '/editions/'||$project||'/fragments/index.frag.html' Loading Loading @@ -149,20 +146,10 @@ function max.plugin.index:generateIndex($project){ return max.html:wrapInHTML($project, 'index', <div class='index'>{$HTMLIndex}</div>) } catch experr:HC0001{<div>Check your Index Plugin Config- TRACE: {$err:description} - {$err:module} - {$err:line-number}</div>} (: <person> <name>{($person//*:persName[@xml:lang='fr'])[1]/text()} - FR</name> <name>{($tei//*:persName[@xml:lang='la'])[1]/text()} - LA</name> { if($i/@*:nymRef) then <li>TODO / nymRef</li> else () } </person> :) }; declare %private function max.plugin.index:generateIndexToDonwload($project){ (: for $i in collection($project)//*:name[@*:type='personne' and @*:ref] return <li>{$i} - {$i/@*:ref/string()}</li> :) }; No newline at end of file Loading
plugins/index/index.xqm +6 −19 Original line number Diff line number Diff line Loading @@ -98,10 +98,7 @@ function max.plugin.index:index($project){ else max.plugin.index:generateIndex($project) }; declare %rest:GET %output:method("html") %rest:path("/editions/{$project}/generateindex") declare %private function max.plugin.index:generateIndex($project){ try{ let $indexFilePath :=file:parent(file:parent(file:parent(static-base-uri()))) || '/editions/'||$project||'/fragments/index.frag.html' Loading Loading @@ -149,20 +146,10 @@ function max.plugin.index:generateIndex($project){ return max.html:wrapInHTML($project, 'index', <div class='index'>{$HTMLIndex}</div>) } catch experr:HC0001{<div>Check your Index Plugin Config- TRACE: {$err:description} - {$err:module} - {$err:line-number}</div>} (: <person> <name>{($person//*:persName[@xml:lang='fr'])[1]/text()} - FR</name> <name>{($tei//*:persName[@xml:lang='la'])[1]/text()} - LA</name> { if($i/@*:nymRef) then <li>TODO / nymRef</li> else () } </person> :) }; declare %private function max.plugin.index:generateIndexToDonwload($project){ (: for $i in collection($project)//*:name[@*:type='personne' and @*:ref] return <li>{$i} - {$i/@*:ref/string()}</li> :) }; No newline at end of file