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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pdn-certic
MaX
Commits
43c8379e
Commit
43c8379e
authored
8 years ago
by
chauveau
Browse files
Options
Downloads
Patches
Plain Diff
attr de debug pour le plugin search, i18n
parent
5a5de813
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
max.xq
+1
-0
1 addition, 0 deletions
max.xq
plugins/search/search.xqm
+8
-0
8 additions, 0 deletions
plugins/search/search.xqm
rxq/route.xqm
+1
-0
1 addition, 0 deletions
rxq/route.xqm
ui/i18n/I18n.xml
+1
-0
1 addition, 0 deletions
ui/i18n/I18n.xml
with
11 additions
and
0 deletions
max.xq
+
1
−
0
View file @
43c8379e
...
...
@@ -42,6 +42,7 @@ function max:page($project, $page){
return
max.html:wrapInHTML
(
$project
,
$page
,
$content
)
}
catch
err:FODC0002
{
admin:write-log
(
'Page/fragment "'
||
$page
||
'" introuvable ou mal formé'
,
'INFO'
)
,
let
$content
:=
max.route:HTMLRouteList
(
$project
)
return
max.html:wrapInHTML
(
$project
,
$page
,
$content
)
}
...
...
This diff is collapsed.
Click to expand it.
plugins/search/search.xqm
+
8
−
0
View file @
43c8379e
...
...
@@ -59,6 +59,7 @@ function max.plugin.search:search($project, $search as xs:string, $docs as item(
let
$dbPath
:=
max.config:getProjectDBPath
(
$project
)
let
$plugin
:=
max.config:getPluginByName
(
$project
,
$max.plugin.search:PLUGIN_ID
)
let
$tag
:=
string
(
$plugin
//
parameter
[
@key
=
$max.plugin.search:TAG_PARAMETER
]
/
@value
)
let
$debug
:=
string
(
$plugin
/
@debug
)
let
$b2t_xpath
:=
string
(
$plugin
//
parameter
[
@key
=
$max.plugin.search:BACK_TO_TEXT_ID_PARAMETER
]
/
@value
)
let
$docTargets
:=
if
(
$docs
=
$max.plugin.search:ALL_TXT
)
then
for
$a
in
max.route:HTMLRouteList
(
$project
)
//
a
/
@href
...
...
@@ -71,6 +72,13 @@ function max.plugin.search:search($project, $search as xs:string, $docs as item(
else
$docs
return
<div
id=
'hits'
>
{
if
(
$debug
=
'true'
)
then
<div
class=
'debug'
>
for
$hit
in
ft:mark(doc(
{
$dbPath
}
/$doc)//*[local-name(.)=
{
$tag
}
and
.//text()
contains
text
{
$search
}
])
</div>
else
()
}
{
for
$doc
in
$docTargets
return
...
...
This diff is collapsed.
Click to expand it.
rxq/route.xqm
+
1
−
0
View file @
43c8379e
...
...
@@ -46,6 +46,7 @@ declare function max.route:HTMLRouteList($project){
'baseURI'
:
max.config:getReversedProxyBaseURI
()
,
'dbPath'
:
max.config:getProjectDBPath
(
$project
)
})
(:route list collected from config file:)
case
$max.cons:CONFIG_LIST_ROUTE_TYPE
return
...
...
This diff is collapsed.
Click to expand it.
ui/i18n/I18n.xml
+
1
−
0
View file @
43c8379e
...
...
@@ -8,6 +8,7 @@
<entry
key=
"menu.contacts"
>
Contacts
</entry>
<entry
key=
"menu.partenaires"
>
Partenaires
</entry>
<entry
key=
"menu.recherche"
>
Rechercher
</entry>
<entry
key=
"menu.index"
>
Index
</entry>
<entry
key=
"search.loading"
>
Recherche en cours ...
</entry>
<entry
key=
"search.results"
>
résultat(s)
</entry>
...
...
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