Subversion Repositories SmartDukaan

Rev

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

Rev 5489 Rev 5525
Line 209... Line 209...
209
    	
209
    	
210
    	this.facets = new LinkedHashMap<String, List<String[]>>();
210
    	this.facets = new LinkedHashMap<String, List<String[]>>();
211
    	String qryString = this.request.getQueryString();
211
    	String qryString = this.request.getQueryString();
212
    	log.info("qryString=" + qryString);
212
    	log.info("qryString=" + qryString);
213
    	
213
    	
-
 
214
    	String[] toshowfacetDefIDs;
-
 
215
    	String[] toshowfacetLabels;
-
 
216
    	
-
 
217
    	if (categoryId == Utils.ROOT_CATEGORY || categoryId == Utils.MOBILE_ACCESSORIES_CATEGORY ){
-
 
218
    		toshowfacetDefIDs = Utils.rootfacetDefIDs;
-
 
219
        	toshowfacetLabels = Utils.rootfacetLabels;
-
 
220
    	}
-
 
221
    	else {
-
 
222
    		toshowfacetDefIDs = Utils.facetDefIDs;
-
 
223
        	toshowfacetLabels = Utils.facetLabels;
-
 
224
    	}
-
 
225
    	
214
    	for (int i=0; i<facetDefIDs.length; i++) {
226
    	for (int i=0; i<toshowfacetDefIDs.length; i++) {
215
    		String facetDefID = facetDefIDs[i];
227
    		String facetDefID = toshowfacetDefIDs[i];
216
    		String facetLabel = facetLabels[i];
228
    		String facetLabel = toshowfacetLabels[i];
217
    		HashMap<String, Integer> facetDetailMap = search.getFacetDetails(facetDefID);
229
    		HashMap<String, Integer> facetDetailMap = search.getFacetDetails(facetDefID);
218
    		if(facetDetailMap==null)
230
    		if(facetDetailMap==null)
219
    			continue;
231
    			continue;
220
    		List<String[]> values = new ArrayList<String[]>();
232
    		List<String[]> values = new ArrayList<String[]>();
221
    		for(Entry<String, Integer> facetEntry: facetDetailMap.entrySet()){
233
    		for(Entry<String, Integer> facetEntry: facetDetailMap.entrySet()){