Commit 56fd6e05 authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel
Browse files

amélioration recherche

parent 0c2bc976
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ declare %private function max:applySearchMarkup($html as node(), $search as xs:s
        let $markedHtml :=
            if ($search)
            then
                max.util:markSearchedText($html, $search, ())
                max.util:markSearchedText($html, $search, $focusTarget)
            else
                $html
        let $focusedHtml :=
+3 −1
Original line number Diff line number Diff line
@@ -95,7 +95,9 @@ function max.plugin.search:search($project,$search, $docs as item()*){
  let $docList := 
    if(count($docs) > 0(: = $max.plugin.search:ALL_TXT:))
      then $docs
    else for $d in collection($dbPath) return base-uri($d)
    else for $d in collection($dbPath) 
    where not(max.config:isIgnored(replace(base-uri($d), ".+/([^/]+)$", "$1"), $project))
    return base-uri($d)

  for $docPath in $docList
    let $res :=