From 7478e610d99d1f2fb383ecbfa0b70d72eae27f81 Mon Sep 17 00:00:00 2001 From: server Date: Tue, 10 Dec 2019 18:12:37 -0500 Subject: solr changes --- solr-8.1.1/example/files/conf/velocity/macros.vm | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 solr-8.1.1/example/files/conf/velocity/macros.vm (limited to 'solr-8.1.1/example/files/conf/velocity/macros.vm') diff --git a/solr-8.1.1/example/files/conf/velocity/macros.vm b/solr-8.1.1/example/files/conf/velocity/macros.vm deleted file mode 100644 index 8bebb7f5d..000000000 --- a/solr-8.1.1/example/files/conf/velocity/macros.vm +++ /dev/null @@ -1,16 +0,0 @@ -#macro(lensFilterSortOnly)?#if($response.responseHeader.params.getAll("fq").size() > 0)&#fqs($response.responseHeader.params.getAll("fq"))#end#sort($request.params.getParams('sort'))#end -#macro(lensNoQ)#lensFilterSortOnly&type=#current_type#if("#current_locale"!="")&locale=#current_locale#end#end -#macro(lensNoType)#lensFilterSortOnly#q#if("#current_locale"!="")&locale=#current_locale#end#end -#macro(lensNoLocale)#lensFilterSortOnly#q&type=#current_type#end - -## lens modified for example/files - to use fq from responseHeader rather than request, and #debug removed too as it is built into browse params now, also added type to lens -#macro(lens)#lensNoQ#q#end - -## Macros defined custom for the "files" example -#macro(url_for_type $type)#url_for_home#lensNoType&type=$type#end -#macro(current_type)#if($response.responseHeader.params.type)${response.responseHeader.params.type}#{else}all#end#end -#macro(url_for_locale $locale)#url_for_home#lensNoLocale#if($locale!="")&locale=$locale#end&start=$page.start#end -#macro(current_locale)$!{response.responseHeader.params.locale}#end - -## Usage: #label(resource_key[, default_value]) - resource_key is used as label if no default value specified and no resource exists -#macro(label $key $default)#if($resource.get($key).exists)${resource.get($key)}#else#if($default)$default#else${key}#end#end#end -- cgit v1.2.3-70-g09d2