Modifications pour le document Confluence bridge for Content by label
Modifié par superadmin le 21/07/2025 - 08:59
Résumé
-
Objets (1 modifications, 0 ajouts, 0 suppressions)
Détails
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -2,15 +2,6 @@ 2 2 3 3 {{velocity output=false}} 4 4 5 -## See https://solr.apache.org/guide/solr/latest/query-guide/standard-query-parser.html#escaping-special-characters 6 -## And https://jira.xwiki.org/browse/XCOMMONS-2926 7 -#set ($solrSpecialChars = ['+', '-', '&&', '||', '!', '(', ')', '{', '}', '[', ']', '^', '"', '~', '*', '?', ':', '/', '\', ' ']) 8 -#set ($escapedSolrSpecialChars = ['\+', '\-', '\&&', '\||', '\!', '\(', '\)', '\{', '\}', '\[', '\]', '\^', '\"', '\~', '\*', '\?', '\:', '\/', '\\', '\ ']) 9 - 10 -#macro (escapeSolr $v) 11 -$stringtool.replaceEach($v, $solrSpecialChars, $escapedSolrSpecialChars)## 12 -#end 13 - 14 14 #macro (contentbylabellink $d) 15 15 <a href="$escapetool.xml($d.getURL('view'))">## 16 16 $escapetool.xml($d.getDisplayTitle())## ... ... @@ -17,14 +17,6 @@ 17 17 </a>## 18 18 #end 19 19 20 -#macro (getSpaceFacet $space) 21 -#set ($facetNumber = $space.getReversedReferenceChain().size() - 1) 22 -#if ($space.getRoot().getType().toString() == "WIKI")) 23 -#set ($facetNumber = $facetNumber - 1) 24 -#escapeSolr("$facetNumber/${serializer.serialize($space)}.")## 25 -#end 26 -#end 27 - 28 28 #macro (executeMacro) 29 29 #if ("$!xcontext.macro.params.title" != "") 30 30 **$services.rendering.escape($xcontext.macro.params.title, $xwiki.currentContentSyntaxId)**