Author: ssthkjer
Date: 2007-08-08 12:17:00 +0200 (Wed, 08 Aug 2007)
New Revision: 5597

Modified:
   
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/result/CatalogueSearchResultItem.java
Log:
https://jira.sesam.no/jira/browse/SEARCH-3198 - Haster! Oppf?\195?\184ringer 
til kunder vises ikke korrekt

Modified: 
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/result/CatalogueSearchResultItem.java
===================================================================
--- 
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/result/CatalogueSearchResultItem.java
     2007-08-08 10:10:26 UTC (rev 5596)
+++ 
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/result/CatalogueSearchResultItem.java
     2007-08-08 10:17:00 UTC (rev 5597)
@@ -26,7 +26,7 @@
     public void addProducts(final ProductResult products) {
        this.products = products;
     }
-    
+
     /**
      * TODO javadoc.
      * @return
@@ -34,7 +34,7 @@
     public boolean hasProducts(){
        return this.products != null ? true : false;
     }
-    
+
     /**
      * TODO  javadoc.
      * @return
@@ -42,7 +42,7 @@
     public ProductResult getProducts(){
        return this.products;
     }
-    
+
     /**
      * Utility method for checking if the entry belongs to a paying customer.
      * @return true if the result item is an entry for a paying customer.
@@ -54,7 +54,7 @@
        }
        return false;
     }
-    
+
     /**
      * Responsible for getting the phone number to display for this result 
item.
      * @return The phone number to display for this result item.
@@ -66,21 +66,21 @@
        }
        return null;
     }
-    
+
     /**
-     * Returns a description of the result item. 
+     * Returns a description of the result item.
      * @return  a description of the result item.
      */
     public String getCompanyDescription(){
        String description = getField("iyplogotekst");
-        
+
        if(isCommercial() && (description != null && description.length() > 0)){
                return description;
        }
 
         return null;
     }
-    
+
     /**
      * Returns the url for the logo to display for this result item.
      * @return URL for the logo to display.
@@ -90,59 +90,59 @@
        if(!isCommercial()){
                return null;
        }
-       
+
        final String logoURL = getField("iyplogourl");
        if(logoURL != null && logoURL.length() > 0){
                return logoURL;
        }
        return null;
     }
-    
-    
+
+
     /**
      * Returns the address for for this result item.
      * @return The address in format: street, zipcode city.
      */
     public String getAddress(){
-       
+
        String address = getField("iypadresse");
        String zipCode = getField("iyppostnr");
        String city = getField("iyppoststed");
-       
+
        StringBuffer compositAddress = new StringBuffer();
        if(address != null && address.length() > 0){
                compositAddress.append(address);
                compositAddress.append(", ");
        }
-       
+
        if(zipCode != null && zipCode.length() > 0){
                compositAddress.append(zipCode);
        }
-       
+
        if(city != null && city.length() > 0){
                compositAddress.append(" ");
                compositAddress.append(city);
        }
-       
+
        if(compositAddress.length() > 0){
                return compositAddress.toString();
        }
        return null;
     }
-    
+
     public String getEmailAddress(){
        //TODO: check product.
        if(!isCommercial()){
                return null;
        }
-       
+
        String email = getField("iypepost");
        if(email != null && email.length() > 0){
                return email;
        }
        return null;
     }
-    
+
     /**
      * Returns the url of the homepage for this result item.
      * @return The URL of the homepage for a paying customer.
@@ -158,28 +158,28 @@
        }
        return null;
     }
-    
+
     public String imagePart(final String stringToSplit){
-     
+
         if(stringToSplit == null || stringToSplit.length() < 1 || 
!stringToSplit.contains(";")){
             return null;
         }
-        
+
         String[] imageAndUrl = stringToSplit.split(";");
         return imageAndUrl[0];
     }
-    
+
     public String urlPart(final String stringToSplit){
         if(stringToSplit == null || stringToSplit.length() < 1 || 
!stringToSplit.contains(";")){
             return null;
         }
-        
+
         String[] imageAndUrl = stringToSplit.split(";");
         return imageAndUrl[1];
     }
 
-    
-    
+
+
     /**
      * Checks if the result item should be rendered with a bold title.
      * @return true if the product has bold title.
@@ -190,7 +190,7 @@
                try{
                        //TODO: move bold indicator to index to avoid 
hardcoding of product and rules.
                        int packageId = Integer.parseInt(productPackage);
-                       if(packageId == 3 || packageId == 116 || packageId == 
120  ||packageId ==121 || packageId ==122 || packageId == 123 ){
+                       if(packageId == 3 || packageId == 116 || packageId == 
119 || packageId == 120  ||packageId ==121 || packageId ==122 || packageId == 
123 ){
                                return true;
                        }
                }catch(NumberFormatException e){

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to