1
- <?xml version =' 1.1' encoding =' UTF-8' ?>
1
+ <?xml version =" 1.1" encoding =" UTF-8" ?>
2
+
3
+ <!--
4
+ * See the NOTICE file distributed with this work for additional
5
+ * information regarding copyright ownership.
6
+ *
7
+ * This is free software; you can redistribute it and/or modify it
8
+ * under the terms of the GNU Lesser General Public License as
9
+ * published by the Free Software Foundation; either version 2.1 of
10
+ * the License, or (at your option) any later version.
11
+ *
12
+ * This software is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this software; if not, write to the Free
19
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21
+ -->
22
+
2
23
<xwikidoc version =" 1.5" reference =" InteractiveLinkVisualizer.WebHome" locale =" " >
3
24
<web >InteractiveLinkVisualizer</web >
4
25
<name >WebHome</name >
5
26
<language />
6
- <defaultLanguage >en</ defaultLanguage >
27
+ <defaultLanguage / >
7
28
<translation >0</translation >
8
- <creator >XWiki.Admin</creator >
9
- <creationDate >1691042382000</creationDate >
29
+ <creator >xwiki:XWiki.Admin</creator >
10
30
<parent >Main.WebHome</parent >
11
- <author >XWiki.Admin</author >
12
- <originalMetadataAuthor >XWiki.Admin</originalMetadataAuthor >
13
- <contentAuthor >XWiki.Admin</contentAuthor >
14
- <date >1691042441000</date >
15
- <contentUpdateDate >1691042441000</contentUpdateDate >
16
- <version >2.1</version >
31
+ <author >xwiki:XWiki.Admin</author >
32
+ <contentAuthor >xwiki:XWiki.Admin</contentAuthor >
33
+ <version >1.1</version >
17
34
<title >Interactive Link Visualizer</title >
18
35
<comment />
19
36
<minorEdit >false</minorEdit >
20
37
<syntaxId >xwiki/2.1</syntaxId >
21
- <hidden >false </hidden >
38
+ <hidden >true </hidden >
22
39
<content >{{velocity output="false"}}#set ($discard = $xwiki.jsx.use('InteractiveLinkVisualizer.Code'))#set ($discard = $xwiki.ssx.use('InteractiveLinkVisualizer.Code'))#set($solrConfig = {'filterQuery': ['type:DOCUMENT'], 'facetFields': ['property.XWiki.TagClass.tags_string', 'wiki', 'space_facet', 'locale', 'author', 'creator', 'date', 'creationdate', 'class', 'mimetype', 'attauthor', 'attdate', 'attsize'], 'facetEnabled': false}){{/velocity}}{{include reference="Main.SolrSearchConfig" /}}{{include reference="Main.SolrSearchMacros" /}}{{velocity}}#macro (displaySearchResults){{html}}
23
- < div id="sigma-container" data-results="$escapetool.xml($jsontool.serialize($searchResponse.results))">
24
- < div id="top-bar">
25
- < div id="search">
26
- < i class="fa fa-search"> & lt; /i>
40
+ < div id="sigma-container" data-results="$escapetool.xml($jsontool.serialize($searchResponse.results))">
41
+ < div id="top-bar">
42
+ < div id="search">
43
+ < i class="fa fa-search">& lt; /i>
27
44
< input
28
45
type="search"
29
46
id="search-input"
30
47
list="suggestions"
31
48
placeholder="Find pages in graph…"
32
- /> & lt; datalist id="suggestions"> & lt; /datalist>
33
- < /div>
34
- < div id="graph-info">
35
- < span id="node-count"> & lt; /span>
36
- < span id="edge-count"> & lt; /span>
37
- < /div>
38
- < /div>
39
- < div class="buttonwrapper" id="graph-buttons">
40
- < button class="icon-button" id="zoom-in"> +< /button>
41
- < button class="icon-button" id="zoom-out"> -< /button>
42
- < button class="icon-button" id="zoom-reset"> ⊙< /button>
43
- < button class="icon-button" id="view-fullscreen"> ⛶< /button>
44
- < /div>
45
- < /div>
49
+ />& lt; datalist id="suggestions">& lt; /datalist>
50
+ < /div>
51
+ < div id="graph-info">
52
+ < span id="node-count">& lt; /span>
53
+ < span id="edge-count">& lt; /span>
54
+ < /div>
55
+ < /div>
56
+ < div class="buttonwrapper" id="graph-buttons">
57
+ < button class="icon-button" id="zoom-in"> +< /button>
58
+ < button class="icon-button" id="zoom-out"> -< /button>
59
+ < button class="icon-button" id="zoom-reset"> ⊙< /button>
60
+ < button class="icon-button" id="view-fullscreen"> ⛶< /button>
61
+ < /div>
62
+ < /div>
46
63
{{/html}}#end##
47
64
#macro(setHighlightQuery $query)
48
65
#set ($discard = $query.bindValue('fl', 'title_, reference, links, wiki, spaces, name'))
49
66
#end##
50
67
#macro (displaySearchForm)
51
68
#set($void = $services.progress.startStep('#displaySearchForm'))
52
69
{{html clean="false"}}
53
- < form class="search-form row" action="$doc.getURL()" role="search">
54
- < div class="hidden">
55
- < input type="hidden" name="sort" value="$!escapetool.xml($sort)"/>
56
- < input type="hidden" name="sortOrder" value="$!escapetool.xml($sortOrder)"/>
57
- < input type="hidden" name="highlight" value="$highlightEnabled"/>
58
- < input type="hidden" name="facet" value="$facetEnabled"/>
70
+ < form class="search-form row" action="$doc.getURL()" role="search">
71
+ < div class="hidden">
72
+ < input type="hidden" name="sort" value="$!escapetool.xml($sort)"/>
73
+ < input type="hidden" name="sortOrder" value="$!escapetool.xml($sortOrder)"/>
74
+ < input type="hidden" name="highlight" value="$highlightEnabled"/>
75
+ < input type="hidden" name="facet" value="$facetEnabled"/>
59
76
## The parameter used to determine if the request has been redirected with default search filters.
60
- < input type="hidden" name="r" value="$!escapetool.xml($request.r)"/>
77
+ < input type="hidden" name="r" value="$!escapetool.xml($request.r)"/>
61
78
#if ("$!request.debug" != '')
62
- < input type="hidden" name="debug" value="$escapetool.xml($request.debug)"/>
79
+ < input type="hidden" name="debug" value="$escapetool.xml($request.debug)"/>
63
80
#end
64
81
## Preserve the current facet values when submitting a new search query.
65
82
#foreach ($entry in $request.parameterMap.entrySet())
66
83
#if ($entry.key.startsWith('f_') || $entry.key.startsWith('l_'))
67
84
#foreach ($value in $entry.value)
68
- < input type="hidden" name="$escapetool.xml($entry.key)" value="$escapetool.xml($value)"/>
85
+ < input type="hidden" name="$escapetool.xml($entry.key)" value="$escapetool.xml($value)"/>
69
86
#end
70
87
#end
71
88
#end
72
- < /div>
73
- < div class="col-xs-12 col-sm-6">
74
- < div class="input-group">
89
+ < /div>
90
+ < div class="col-xs-12 col-sm-6">
91
+ < div class="input-group">
75
92
< input type="search" name="text" class="form-control withTip useTitleAsTip"
76
- title="$services.localization.render('search.page.bar.query.title')" value="$escapetool.xml($text)"/>
77
- < span class="input-group-btn">
78
- < button type="submit" class="btn btn-primary">
93
+ title="$services.localization.render('search.page.bar.query.title')" value="$escapetool.xml($text)"/>
94
+ < span class="input-group-btn">
95
+ < button type="submit" class="btn btn-primary">
79
96
$services.icon.renderHTML('search')
80
- < span class="sr-only"> $services.localization.render('search.page.bar.submit')< /span>
81
- < /button>
82
- < /span>
83
- < /div>
84
- < /div>
85
- < /form>
97
+ < span class="sr-only"> $services.localization.render('search.page.bar.submit')< /span>
98
+ < /button>
99
+ < /span>
100
+ < /div>
101
+ < /div>
102
+ < /form>
86
103
{{/html}}
87
104
#set($void = $services.progress.endStep())
88
105
#end##
98
115
#if ($xcontext.action == 'get')
99
116
{{html clean="false"}}
100
117
## The search UI is updated dynamically through AJAX and we need to pull the skin extensions.
101
- ## We put the skin extension imports inside a < noscript> element to prevent jQuery from fetching the JavaScript
118
+ ## We put the skin extension imports inside a < noscript> element to prevent jQuery from fetching the JavaScript
102
119
## files automatically (we want to fetch only the new JavaScript files).
103
- < noscript class="hidden skin-extension-imports"> #skinExtensionHooks< /noscript>
120
+ < noscript class="hidden skin-extension-imports"> #skinExtensionHooks< /noscript>
104
121
{{/html}}
105
122
106
123
#end
212
229
(% class="search-options" %)
213
230
* {{translation key="solr.options"/}}
214
231
#if($facetEnabled)#extendQueryString($url {'facet': [false]})#else#extendQueryString($url {'facet': [true]})#end
215
- * [[{{translation key="solr.options.facet"/}}>> path:${url}||class="options-item#if($facetEnabled) active#end" title="$services.localization.render('solr.options.facet.title')"]]
232
+ * [[{{translation key="solr.options.facet"/}}>> path:${url}||class="options-item#if($facetEnabled) active#end" title="$services.localization.render('solr.options.facet.title')"]]
216
233
217
234
(% class="search-results-sort" %)
218
235
* {{translation key="solr.sortBy"/}}
227
244
#set ($targetSortOrder = "#if ($sortOrder == 'asc')desc#{else}asc#end")
228
245
#end
229
246
#extendQueryString($url {'sort': [$entry.key], 'sortOrder': [$targetSortOrder]})
230
- * [[{{translation key="solr.sortBy.$entry.key"/}}$!sortOrderIndicator>> path:${url}||class="$class"]]
247
+ * [[{{translation key="solr.sortBy.$entry.key"/}}$!sortOrderIndicator>> path:${url}||class="$class"]]
231
248
#end
232
249
#end
233
250
#handleSolrSearchRequest
234
251
{{/velocity}}</content >
235
- </xwikidoc >
252
+ </xwikidoc >
0 commit comments