mcardle     2005/10/11 16:06:27 CEST

  Modified files:
    src/view/jsp/include box_newslast5_cached.inc 
  Log:
  * fix to support news displayed in boxes with other ids such as : left, right 
and main2
  
  Revision  Changes    Path
  1.5       +4 -1      
corporate_portal_templates/src/view/jsp/include/box_newslast5_cached.inc
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/corporate_portal_templates/src/view/jsp/include/box_newslast5_cached.inc.diff?r1=1.4&r2=1.5&f=h
  
  
  
  Index: box_newslast5_cached.inc
  ===================================================================
  RCS file: 
/home/cvs/repository/corporate_portal_templates/src/view/jsp/include/box_newslast5_cached.inc,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- box_newslast5_cached.inc  23 Jun 2005 09:28:18 -0000      1.4
  +++ box_newslast5_cached.inc  11 Oct 2005 14:06:27 -0000      1.5
  @@ -5,7 +5,8 @@
   
       //Containers Definitions over which to search/filter/sort over
       String[] newsContainerDefNames = new 
String[]{"newsContainer1","newsContainer2","newsContainer3",
  -     "newsContainermain_1","newsContainerLast5"+id};
  +     "newsContainermain_1","newsContainermain_2","newsContainerright",
  +     "newsContainerleft","newsContainerLast5"+id};
       //"newsContainerLast5"+id is the name of the container where the search 
results will be aggregated
   
       //The (optional) search string to search for entered by the user
  @@ -122,6 +123,8 @@
           //manually limit the search to news containers only
           luceneSearchString.append("(container_definition_name:newsContainer1 
OR container_definition_name:newsContainer2"+
           " OR container_definition_name:newsContainer3 OR 
container_definition_name:newsContainermain_1"+
  +        " OR container_definition_name:newsContainerright OR 
container_definition_name:newsContainermain_2"+
  +        " OR container_definition_name:newsContainerleft"+
           " OR container_definition_name:newsContainerLast5"+id+" )");
           if (userQueryString!=null && !"".equals(userQueryString.trim())) {
               luceneSearchString.append(" ) ");
  

Reply via email to