Изменения документа Поиск по базе

Редактировал(а) Давид Гавриков 2024/07/22 11:15

От версии 1.1
отредактировано Андрей Ганьков
на 2020/03/30 19:11
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-search-ui/12.1]
К версии 4.1
отредактировано Давид Гавриков
на 2024/07/22 11:15
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-search-ui/16.5.0]

Сводка

Подробности

Свойства страницы
Автор документа
... ... @@ -1,1 +1,1 @@
1 -XWiki.gav
1 +XWiki.gavrikof
Содержимое
... ... @@ -1,7 +1,7 @@
1 1  {{velocity output="false"}}
2 2  #macro (databaseSearchForm)
3 3   {{html clean="false"}}
4 - <form action="$doc.getURL()" id="searchBar">
4 + <form action="$doc.getURL()" id="searchBar" role="search">
5 5   <div>
6 6   <label for="text" class="hidden">$services.localization.render('search.page.query.label')</label>
7 7   <input type="text" id="text" name="text" class="searchQuery" value="$!escapetool.xml($request.text)"
... ... @@ -63,7 +63,10 @@
63 63  {{velocity}}
64 64  #set ($rssMode = $xcontext.action == 'get' || "$!request.xpage" == 'plain')
65 65  #if (!$rssMode)
66 - #set ($discard = $xwiki.ssfx.use('uicomponents/search/search.css', true))
66 + #set ($discard = $xwiki.linkx.use($services.webjars.url(
67 + 'org.xwiki.platform:xwiki-platform-search-webjar',
68 + 'search.min.css',
69 + {'evaluate': true}), {'type': 'text/css', 'rel': 'stylesheet'}))
67 67   ## Disable the document extra data: comments, attachments, history...
68 68   #set ($displayDocExtra = false)
69 69   #databaseSearchForm
... ... @@ -82,8 +82,8 @@
82 82   #set ($discard = $feed.setDescription($services.localization.render('search.rss', [$text])))
83 83   #set ($discard = $feed.setLanguage("$xcontext.locale"))
84 84   #set ($discard = $feed.setCopyright($xwiki.getXWikiPreference('copyright')))
85 - #set ($discard = $response.setContentType('application/rss+xml'))
86 - {{{$xwiki.feed.getFeedOutput($feed, $xwiki.getXWikiPreference('feed_type', 'rss_2.0'))}}}
88 + #set ($feedOutput = $xwiki.feed.getFeedOutput($feed, $xwiki.getXWikiPreference('feed_type', 'rss_2.0')))
89 + #rawResponse($feedOutput, 'application/rss+xml')
87 87   #else
88 88   {{include reference="XWiki.Results"/}}
89 89