Subversion Repositories SmartDukaan

Rev

Rev 5638 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5638 Rev 5705
Line 18... Line 18...
18
 
18
 
19
	public void generate() throws Exception {
19
	public void generate() throws Exception {
20
		StringBuffer sb = new StringBuffer();
20
		StringBuffer sb = new StringBuffer();
21
		for ( Entity entity : entities) {
21
		for ( Entity entity : entities) {
22
			ExpandedEntity ex = new ExpandedEntity(entity);
22
			ExpandedEntity ex = new ExpandedEntity(entity);
23
			if(ex.getCategory().getParentCategory().isComparable()) {
23
			if(entity.getSlide(130088l) != null) {
24
	 			String productName = EntityUtils.getProductName(ex);
24
	 			String productName = EntityUtils.getProductName(ex);
25
				String productUrl = productName.toLowerCase().replace(' ', '-');
25
				String productUrl = productName.toLowerCase().replace(' ', '-');
26
				productUrl = productUrl.replaceAll("/", "-").replaceAll("-+", "-");
26
				productUrl = productUrl.replaceAll("/", "-").replaceAll("-+", "-");
27
				productUrl = "/product-documents/" + productUrl + "-user-manual-software-updates-how-to-" + entity.getID();
27
				productUrl = "/product-documents/" + productUrl + "-user-manual-software-updates-how-to-" + entity.getID();
28
				sb.append("<div>\n");
28
				sb.append("<div>\n");