Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pdn-certic
MaX
Commits
670b320b
Commit
670b320b
authored
7 years ago
by
chauveau
Browse files
Options
Downloads
Patches
Plain Diff
petite modif branche sur le pattern d'une route du pager
parent
d5a11192
No related branches found
Tags
MaX-V0.5
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/pager/pager.xqm
+10
-2
10 additions, 2 deletions
plugins/pager/pager.xqm
with
10 additions
and
2 deletions
plugins/pager/pager.xqm
+
10
−
2
View file @
670b320b
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment