Commit 670b320b authored by chauveau's avatar chauveau
Browse files

petite modif branche sur le pattern d'une route du pager

parent d5a11192
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -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()]
@@ -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