Subversion Repositories SmartDukaan

Rev

Rev 1849 | Rev 1966 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1849 Rev 1921
Line 64... Line 64...
64
	private long windowSize = 20;
64
	private long windowSize = 20;
65
	private long page = 1;
65
	private long page = 1;
66
	private long totalResults;
66
	private long totalResults;
67
	private long beginIndex = 0;
67
	private long beginIndex = 0;
68
	private String url;
68
	private String url;
-
 
69
	private String priceUrl = "?";
69
 
70
 
70
	/**
71
	/**
71
	 * GET /abc/10004
72
	 * GET /abc/10004
72
	 * 
73
	 * 
73
	 */
74
	 */
Line 143... Line 144...
143
    	this.crumbs = new ArrayList<String[]>();
144
    	this.crumbs = new ArrayList<String[]>();
144
    	List<String> arrList = Arrays.asList(facetDefIDs);
145
    	List<String> arrList = Arrays.asList(facetDefIDs);
145
    	for(int i=1; i<length; i++) {
146
    	for(int i=1; i<length; i++) {
146
    		newfqrys[i] = fqrys[i-1];
147
    		newfqrys[i] = fqrys[i-1];
147
    		urlCrumb += "&fq=" + URLEncoder.encode(fqrys[i-1], "UTF-8");
148
    		urlCrumb += "&fq=" + URLEncoder.encode(fqrys[i-1], "UTF-8");
-
 
149
    		priceUrl += "&fq=" + URLEncoder.encode(fqrys[i-1], "UTF-8");
148
    		String filterUrl = url;
150
    		String filterUrl = url;
149
    		String facetName = StringUtils.split(fqrys[i-1], ":")[0];
151
    		String facetName = StringUtils.split(fqrys[i-1], ":")[0];
150
    		String facetValue = StringUtils.split(fqrys[i-1], ":")[1];
152
    		String facetValue = StringUtils.split(fqrys[i-1], ":")[1];
151
    		String facetLabel = facetLabels[arrList.indexOf(facetName)];
153
    		String facetLabel = facetLabels[arrList.indexOf(facetName)];
152
    		this.categoryTitle += " | " + facetLabel + " " + facetValue;
154
    		this.categoryTitle += " | " + facetLabel + " " + facetValue;
Line 306... Line 308...
306
    
308
    
307
    public Double getMaxPrice() {
309
    public Double getMaxPrice() {
308
    	return this.maxPrice;
310
    	return this.maxPrice;
309
    }
311
    }
310
    
312
    
-
 
313
    public String getPriceUrl() {
-
 
314
        return this.priceUrl;
-
 
315
    }
-
 
316
    
311
    public List<String[]> getCrumbs() {
317
    public List<String[]> getCrumbs() {
312
    	return this.crumbs;
318
    	return this.crumbs;
313
    }
319
    }
314
 
320
 
315
    public Map<String, String> getSnippets(){
321
    public Map<String, String> getSnippets(){