Loading plugins/pager/pager.xqm +10 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ declare variable $max.plugin.pager:ITEMS_PATH := "itemsPath"; declare %rest:GET %output:method("html") %rest:path("/editions/{$project}/{$route=.*\.xml}/page/{$n}") %rest:path("/editions/{$project}/{$route=.*\.xml}/page/{$n=[0-9]+}") function max.plugin.pager:paginate($project as xs:string, $route as xs:string, $n as xs:integer){ let $routeDoc := if(starts-with($route,'doc/')) then tokenize($route, 'doc/')[last()] Loading Loading @@ -251,5 +251,13 @@ function max.plugin.pager:check($project){ }; declare %rest:GET %output:method("html") %rest:path("/editions/{$project}/pager/test") function max.plugin.pager:test($project){ <div>PAGER TEST OK</div> }; No newline at end of file Loading
plugins/pager/pager.xqm +10 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ declare variable $max.plugin.pager:ITEMS_PATH := "itemsPath"; declare %rest:GET %output:method("html") %rest:path("/editions/{$project}/{$route=.*\.xml}/page/{$n}") %rest:path("/editions/{$project}/{$route=.*\.xml}/page/{$n=[0-9]+}") function max.plugin.pager:paginate($project as xs:string, $route as xs:string, $n as xs:integer){ let $routeDoc := if(starts-with($route,'doc/')) then tokenize($route, 'doc/')[last()] Loading Loading @@ -251,5 +251,13 @@ function max.plugin.pager:check($project){ }; declare %rest:GET %output:method("html") %rest:path("/editions/{$project}/pager/test") function max.plugin.pager:test($project){ <div>PAGER TEST OK</div> }; No newline at end of file