*/
public static DiscoverQuery getTagCloudDiscoverQuery(Context context,
HttpServletRequest request, DSpaceObject scope, boolean enableFacet)
{
DiscoverQuery queryArgs = new DiscoverQuery();
DiscoveryConfiguration discoveryConfiguration = SearchUtils
.getDiscoveryConfiguration(scope);
List<String> userFilters = setupBasicQuery(context,
discoveryConfiguration, request, queryArgs);
setPagination(request, queryArgs, discoveryConfiguration);
if (enableFacet
&& !"submit_export_metadata".equals(UIUtil.getSubmitButton(
request, "submit")))
{
setFacet(context, request, scope, queryArgs,
discoveryConfiguration, userFilters, discoveryConfiguration
.getTagCloudFacetConfiguration().getTagCloudFacets(), TYPE_TAGCLOUD);
}
return queryArgs;
}