Subversion Repositories SmartDukaan

Rev

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

Rev 1257 Rev 1259
Line 47... Line 47...
47
	 */
47
	 */
48
	private String id;
48
	private String id;
49
	
49
	
50
	private String categoryName;
50
	private String categoryName;
51
	private String categoryTitle;
51
	private String categoryTitle;
-
 
52
	private String facetSelection = "";
52
	
53
	
53
	private String query;
54
	private String query;
54
	
55
	
55
	private Double minPrice;
56
	private Double minPrice;
56
	private Double maxPrice;
57
	private Double maxPrice;
Line 128... Line 129...
128
    		String filterUrl = url;
129
    		String filterUrl = url;
129
    		String facetName = StringUtils.split(fqrys[i-1], ":")[0];
130
    		String facetName = StringUtils.split(fqrys[i-1], ":")[0];
130
    		String facetValue = StringUtils.split(fqrys[i-1], ":")[1];
131
    		String facetValue = StringUtils.split(fqrys[i-1], ":")[1];
131
    		String facetLabel = facetLabels[arrList.indexOf(facetName)];
132
    		String facetLabel = facetLabels[arrList.indexOf(facetName)];
132
    		this.categoryTitle += " | " + facetLabel + " " + facetValue;
133
    		this.categoryTitle += " | " + facetLabel + " " + facetValue;
-
 
134
    		this.facetSelection += facetValue + " ";
133
    		for(int j=1; j<length; j++) {
135
    		for(int j=1; j<length; j++) {
134
    			if(i==j){
136
    			if(i==j){
135
    				continue;
137
    				continue;
136
    			}
138
    			}
137
    			filterUrl += "&fq=" + URLEncoder.encode(fqrys[j-1], "UTF-8");
139
    			filterUrl += "&fq=" + URLEncoder.encode(fqrys[j-1], "UTF-8");
Line 222... Line 224...
222
    public String getCategoryName() {
224
    public String getCategoryName() {
223
    	return this.categoryName;
225
    	return this.categoryName;
224
    }	
226
    }	
225
	
227
	
226
    public String getPageMetaDesc() {
228
    public String getPageMetaDesc() {
227
    	return "Best price " + this.categoryName.replaceAll("Phones", "mobile phones") 
229
    	return "Best price " + this.facetSelection + this.categoryName.replaceAll("Phones", "mobile phones") 
228
    	    + " in India. Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews."; 
230
    	    + " in India. Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews."; 
229
    }
231
    }
230
    
232
    
231
    public String getPageMetaKeywords() {
233
    public String getPageMetaKeywords() {
232
        if(CategoryManager.getCategoryManager().getCategory(Long.parseLong(id)).getParentCategoryId()== 10001){
234
        if(CategoryManager.getCategoryManager().getCategory(Long.parseLong(id)).getParentCategoryId()== 10001){