Changes for page Database Search
Last modified by Administrator on 2024/12/27 14:37
From version
2.1


edited by Administrator
on 2019/02/02 16:07
on 2019/02/02 16:07
Change comment:
Migrated property [async_enabled] from class [XWiki.UIExtensionClass]
To version
3.1


edited by Administrator
on 2020/12/29 00:17
on 2020/12/29 00:17
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-search-ui/12.10.2]
Summary
Details
- Page properties
-
- Content
-
... ... @@ -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)" ... ... @@ -56,7 +56,7 @@ 56 56 #databaseAddResults(", BaseObject as obj, StringProperty as prop where $matchLocation obj.name = doc.fullName and prop.id.id = obj.id and upper(prop.value) like upper(:text) escape '!'" $params $results) 57 57 ## Search in big text fields (textarea properties) 58 58 #databaseAddResults(", BaseObject as obj, LargeStringProperty as prop where $matchLocation obj.name = doc.fullName and prop.id.id = obj.id and upper(prop.value) like upper(:text) escape '!'" $params $results) 59 - #set ($discard = $list.addAll($ sorttool.sort($results, ['date'])))59 + #set ($discard = $list.addAll($collectiontool.sort($results, ['date']))) 60 60 #end 61 61 {{/velocity}} 62 62