| Line 278... |
Line 278... |
| 278 |
props.put("metaDescription", metaDescription);
|
278 |
props.put("metaDescription", metaDescription);
|
| 279 |
props.put("metaKeywords", metaKeywords);
|
279 |
props.put("metaKeywords", metaKeywords);
|
| 280 |
props.put("entityUrl", entityUrl);
|
280 |
props.put("entityUrl", entityUrl);
|
| 281 |
props.put("title", title);
|
281 |
props.put("title", title);
|
| 282 |
props.put("name", EntityUtils.getProductName(expEntity));
|
282 |
props.put("name", EntityUtils.getProductName(expEntity));
|
| 283 |
if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY){
|
283 |
if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY && expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY){
|
| 284 |
props.put("displayAccessories", "TRUE");
|
284 |
props.put("displayAccessories", "TRUE");
|
| 285 |
}else{
|
285 |
}else{
|
| 286 |
props.put("displayAccessories", "FALSE" );
|
286 |
props.put("displayAccessories", "FALSE" );
|
| 287 |
}
|
287 |
}
|
| 288 |
|
288 |
|
| Line 515... |
Line 515... |
| 515 |
params.put("CATEGORY_ID", ((int)categoryId)+"");
|
515 |
params.put("CATEGORY_ID", ((int)categoryId)+"");
|
| 516 |
params.put("CATEGORY_NAME", categoryName);
|
516 |
params.put("CATEGORY_NAME", categoryName);
|
| 517 |
params.put("CATEGORY_URL", categoryName.replaceAll(" ", "-").toLowerCase() + "/" + categoryId);
|
517 |
params.put("CATEGORY_URL", categoryName.replaceAll(" ", "-").toLowerCase() + "/" + categoryId);
|
| 518 |
params.put("PRODUCT_URL", URLEncoder.encode("http://www.", "UTF-8") + "${domain}" + URLEncoder.encode(EntityUtils.getEntityURL(expEntity), "UTF-8"));
|
518 |
params.put("PRODUCT_URL", URLEncoder.encode("http://www.", "UTF-8") + "${domain}" + URLEncoder.encode(EntityUtils.getEntityURL(expEntity), "UTF-8"));
|
| 519 |
if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY && expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY){
|
519 |
if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY && expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY){
|
| 520 |
params.put("IS_MOBILE", "TRUE" );
|
520 |
params.put("IS_MOBILE", "TRUE" );
|
| 521 |
}else{
|
521 |
}else{
|
| 522 |
params.put("IS_MOBILE", "FALSE" );
|
522 |
params.put("IS_MOBILE", "FALSE" );
|
| 523 |
}
|
523 |
}
|
| 524 |
params.put("CATALOG_ID", expEntity.getID()+"");
|
524 |
params.put("CATALOG_ID", expEntity.getID()+"");
|
| 525 |
params.put("TAGLINE", tagline);
|
525 |
params.put("TAGLINE", tagline);
|
| Line 584... |
Line 584... |
| 584 |
filenames.add("SearchSnippet");
|
584 |
filenames.add("SearchSnippet");
|
| 585 |
filenames.add("CategorySnippet");
|
585 |
filenames.add("CategorySnippet");
|
| 586 |
filenames.add("SlideGuide");
|
586 |
filenames.add("SlideGuide");
|
| 587 |
filenames.add("MyResearchSnippet");
|
587 |
filenames.add("MyResearchSnippet");
|
| 588 |
filenames.add("AfterSales");
|
588 |
filenames.add("AfterSales");
|
| 589 |
if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY){
|
589 |
if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY && expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY){
|
| 590 |
filenames.add("PhonesIOwnSnippet");
|
590 |
filenames.add("PhonesIOwnSnippet");
|
| 591 |
filenames.add("CompareProductSnippet");
|
591 |
filenames.add("CompareProductSnippet");
|
| 592 |
filenames.add("ComparisonSnippet");
|
592 |
filenames.add("ComparisonSnippet");
|
| 593 |
filenames.add("CompareProductSummarySnippet");
|
593 |
filenames.add("CompareProductSummarySnippet");
|
| 594 |
// This method wont use any velocity file, So calling directly
|
594 |
// This method wont use any velocity file, So calling directly
|