From 77126a37829443a622b3b320d6b8bff5c1ba7fc5 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Mon, 14 Sep 2009 20:55:12 +0000 Subject: [PATCH] Add nl2ul macro for convenient rendering of a NamedList. Added q parameter to url_for_start macro git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@814849 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/solr/conf/velocity/VM_global_library.vm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/contrib/velocity/src/main/solr/conf/velocity/VM_global_library.vm b/contrib/velocity/src/main/solr/conf/velocity/VM_global_library.vm index baa96b6be88..398b8a2ef85 100644 --- a/contrib/velocity/src/main/solr/conf/velocity/VM_global_library.vm +++ b/contrib/velocity/src/main/solr/conf/velocity/VM_global_library.vm @@ -1,10 +1,23 @@ + + + +#macro(nl2ul $named_list) + +#end + #macro(url_for_filters $filter_queries) /solr/itas?fq=$filter_queries #end #macro(url_for_home)/solr/itas#end -#macro(url_for_start $start)/solr/itas?start=$start#end +#macro(url_for_start $start)/solr/itas?start=$start&q=$!{esc.url($params.get('q'))}#end ## TODO: need to add escaping #macro(url_for_nested_facet $field $value)/solr/itas?fq=$field:%22$value%22#end