Author: jonesde
Date: Mon Mar 5 01:38:27 2007
New Revision: 514624
URL:
http://svn.apache.org/viewvc?view=rev&rev=514624Log:
Added code to fill in list price range search parameter for search string thingy
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java?view=diff&rev=514624&r1=514623&r2=514624==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java Mon Mar 5 01:38:27 2007
@@ -762,10 +762,20 @@
searchParamString.append("=");
searchParamString.append(kc.anyPrefix | kc.anySuffix ? "Y" : "N");
- /* No way to specify parameters for these right now, so table until later
} else if (psc instanceof ProductSearch.ListPriceRangeConstraint) {
ProductSearch.ListPriceRangeConstraint lprc = (ProductSearch.ListPriceRangeConstraint) psc;
- */
+ if (lprc.lowPrice != null || lprc.highPrice != null) {
+ if (isNotFirst) {
+ searchParamString.append("&");
+ } else {
+ isNotFirst = true;
+ }
+ searchParamString.append("LIST_PRICE_RANGE");
+ searchParamString.append("=");
+ if (lprc.lowPrice != null) searchParamString.append(lprc.lowPrice);
+ searchParamString.append("_");
+ if (lprc.highPrice != null) searchParamString.append(lprc.highPrice);
+ }
}
}