Subversion Repositories SmartDukaan

Rev

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

Rev 1044 Rev 1200
Line 290... Line 290...
290
    
290
    
291
    public List<String[]> getCrumbs() {
291
    public List<String[]> getCrumbs() {
292
    	return this.crumbs;
292
    	return this.crumbs;
293
    }
293
    }
294
 
294
 
295
    public Map<String, String> getSnippets() throws Exception {
295
    public Map<String, String> getSnippets(){
296
    	if(results != null){
296
    	if(results != null){
297
    		snippets = new HashMap<String, String>();	
297
    		snippets = new HashMap<String, String>();	
298
	    	for(String docId: results){
298
	    	for(String docId: results){
-
 
299
				try {
299
				snippets.put(docId, FileUtils.read( Utils.EXPORT_ENTITIES_PATH + docId + File.separator +"CategorySnippet.html"));
300
					snippets.put(docId, FileUtils.read( Utils.EXPORT_ENTITIES_PATH + docId + File.separator +"CategorySnippet.html"));
-
 
301
				} catch (IOException e) {
-
 
302
					log.error(e);
-
 
303
				}
300
			}
304
			}
301
    	}
305
    	}
302
		return snippets;
306
		return snippets;
303
    }
307
    }
304
 
308