6. Araxis Merge File Comparison Report

Produced by Araxis Merge on Fri Oct 19 14:25:19 2007 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Internet Explorer. For optimum results when printing this report, enable printing of background images and colours in your browser and use landscape orientation.

6.1 Files compared

#FileLocationLast Modified
1search_result_list.incC:\jahia\template_diff\V2_JAHIA_5_0_0\src\jsp\advsearchFri Oct 19 14:18:33 2007 UTC
2search_result_list.incC:\jahia\template_diff\V2_JAHIA_5_0_3\src\jsp\advsearchFri Oct 19 14:16:50 2007 UTC

6.2 Comparison summary

DescriptionBetween
Files 1 and 2
BlocksLines
Unchanged6108
Changed514
Inserted00
Removed00

6.3 Comparison options

WhitespaceAll differences in whitespace within lines are ignored
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersHidden in comparison detail

6.4 Active regular expressions

No regular expressions were active.

6.5 Comparison detail

1 <%-- 1 <%--
2 Copyright 2002-2006 Jahia Ltd 2 Copyright 2002-2006 Jahia Ltd
3  3 
4 Licensed under the JAHIA COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (JCDDL),  4 Licensed under the JAHIA COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (JCDDL),
5 Version 1.0 (the "License"), or (at your option) any later version; you may  5 Version 1.0 (the "License"), or (at your option) any later version; you may
6 not use this file except in compliance with the License. You should have  6 not use this file except in compliance with the License. You should have
7 received a copy of the License along with this program; if not, you may obtain  7 received a copy of the License along with this program; if not, you may obtain
8 a copy of the License at  8 a copy of the License at
9  9 
10  http://www.jahia.org/license/ 10  http://www.jahia.org/license/
11  11 
12 Unless required by applicable law or agreed to in writing, software  12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,  13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and  15 See the License for the specific language governing permissions and
16 limitations under the License. 16 limitations under the License.
17 --%><table width="100%" border="0" cellspacing="0" cellpadding="0"> 17 --%><table width="100%" border="0" cellspacing="0" cellpadding="0">
18 <tr> 18 <tr>
19     <td valign="top" width="100%" class="maintable10"> 19     <td valign="top" width="100%" class="maintable10">
20         <h1><span class="grey"><content:resourceBundle resourceBundle="jahiatemplates.Corporate_portal_templates_v2" resourceName="searchResultFor"/></span> "<%=JahiaTools.text2html(searchString)%>"</h1> 20         <h1><span class="grey"><content:resourceBundle resourceBundle="jahiatemplates.Corporate_portal_templates_v2" resourceName="searchResultFor"/></span> "<%=JahiaTools.text2html(searchString)%>"</h1>
21         <div> 21         <div>
22         <%if ( searchRefineAttributeList != null && !searchRefineAttributeList.isEmpty() ){%> 22         <%if ( searchRefineAttributeList != null && !searchRefineAttributeList.isEmpty() ){%>
23         <content:engineResourceBundle resourceName="org.jahia.engines.search.searchRefine.yourSearchIsFilteredBy" defaultValue="Your search is filtered by"/>&nbsp;<%=searchRefineAttributeList.size()%>&nbsp;<content:engineResourceBundle resourceName="org.jahia.engines.search.searchRefine.attribute" defaultValue="attribute(s)"/>&nbsp:&nbsp; 23         <content:engineResourceBundle resourceName="org.jahia.engines.search.searchRefine.yourSearchIsFilteredBy" defaultValue="Your search is filtered by"/>&nbsp;<%=searchRefineAttributeList.size()%>&nbsp;<content:engineResourceBundle resourceName="org.jahia.engines.search.searchRefine.attribute" defaultValue="attribute(s)"/>&nbsp:&nbsp;
24             <span class="searchLink"><a href="javascript:SearchTools.resetSearchRefine('<%=searchRefineForm%>')"><content:engineResourceBundle resourceName="org.jahia.engines.search.searchRefine.reset" defaultValue="reset"/></a></span> 24             <span class="searchLink"><a href="javascript:SearchTools.resetSearchRefine('<%=searchRefineForm%>')"><content:engineResourceBundle resourceName="org.jahia.engines.search.searchRefine.reset" defaultValue="reset"/></a></span>
25         <%}%> 25         <%}%>
26         </div>   26         </div> 
27  27 
28     <%  if (totalHits!=0) { 28     <%  if (totalHits!=0) {
29     %> 29     %>
30         <%@ include file="../search_result_pager.inc"%><br/> 30         <%@ include file="../search_result_pager.inc"%><br/>
31         <ul> 31         <ul>
32         <% 32         <%
33             for (int i = offset.intValue(), 33             for (int i = offset.intValue(),
34                  l  = Math.min(i + maxPageItems, totalHits); 34                 displayedHitCount = Math.min(i + maxPageItems, totalHits);
35                 i <  l ; i++){ 35                 i < displayedHitCount; i++){
36         %> 36         %>
37             <pg:item> 37             <pg:item>
38             <div class="searchHit"><li> 38             <div class="searchHit"><li>
39             <% 39             <%
40  40 
41             JahiaSearchHit thisHit = (JahiaSearchHit)searchResults.results().get(i); 41             JahiaSearchHit thisHit = (JahiaSearchHit)searchResults.results().get(i);
42             boolean isFile = (thisHit.getType() == JahiaSearchHitInterface.FILE_TYPE); 42             boolean isFile = (thisHit.getType() == JahiaSearchHitInterface.FILE_TYPE);
43             String highlightedText = thisHit.getTeaser(); 43             String highlightedText = thisHit.getTeaser();
44             CompassHighlighter highlighter = thisHit.highlighter( ); 44             CompassHighlighter highlighter = thisHit.highlighter(searchQueryForHighlighting,JahiaSearchConstant.CONTENT_FULLTEXT_SEARCH_FIELD,"default");
45             if ( highlighter != null ){ 45             if ( highlighter != null ){
46                 highlighter.setSeparator("<p style=\"font-weight: bold\">........</p>"); 46                 highlighter.setSeparator("<p style=\"font-weight: bold\">........</p>");
47                 highlighter.setMaxNumFragments(3); 47                 highlighter.setMaxNumFragments(3);
48                 highlightedText = highlighter.fragmentsWithSeparator(JahiaSearchConstant.CONTENT_FULLTEXT_SEARCH_FIELD); 48                 highlightedText = highlighter.fragmentsWithSeparator(JahiaSearchConstant.CONTENT_FULLTEXT_SEARCH_FIELD);
49                 highlightedText = highlightedText.replaceAll("\\r\\n","\r"); 49                 highlightedText = highlightedText.replaceAll("\\r\\n","\r");
50                 highlightedText = highlightedText.replaceAll("\\r{2,}","<br/>"); 50                 highlightedText = highlightedText.replaceAll("\\r{2,}","<br/>");
51  51 
52             } 52             }
53                 if ( thisHit.getPage() != null ) { 53                 if ( thisHit.getPage() != null ) {
54                                           pageHitsList = (List)searchResults.getPageHitsMap().get(new Integer(thisHit.getPage().getID())); 54                                           pageHitsList = (List)searchResults.getPageHitsMap().get(new Integer(thisHit.getPage().getID()));
55                if ( !isFile ){ 55                if ( !isFile ){
56             %> 56             %>
57                                         <a class="leftlinkon" href="<%=thisHit.getURL()%>"><b><%=thisHit.getPage().getTitle()%></b></a> - score : <%= new Float(thisHit.getScore()).intValue()%>% <% if ( oneHitPerPage && pageHitsList!= null ){%>, <content:engineResourceBundle resourceName="org.jahia.engines.search.nbOfMatchingObjects" defaultValue="matching objects"/>: <%=pageHitsList.size()%>, <a href="javascript:void('')" onclick="addIframeElement('searchPageDetail<%=thisHit.getPage().getID()%>','<%=contextURL%>/search_hit_detail.jsp?pageHitId=<%=thisHit.getPage().getID()%>&searchRefineForm=<%=searchRefineForm%>&iFrameId=opened_searchPageDetail<%=thisHit.getPage().getID()%>','100%','50','opened_searchPageDetail<%=thisHit.getPage().getID()%>','no','no','left','searchPageDetailFrame');SearchTools.showHitDetails('opened_searchPageDetail<%=thisHit.getPage().getID()%>','showSearchHitDetails<%=thisHit.getPage().getID()%>','<content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/>','<content:engineResourceBundle resourceName="org.jahia.engines.search.hideHitDetails" defaultValue="hide details"/>')"><span class="searchLink" id="showSearchHitDetails<%=thisHit.getPage().getID()%>"> <content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/></span></a><% } %> 57                                         <a class="leftlinkon" href="<%=thisHit.getURL()%>"><b><%=thisHit.getPage().getTitle()%></b></a> - score : <%= new Float(thisHit.getScore()).intValue()%>% <% if ( oneHitPerPage && pageHitsList!= null ){%>, <content:engineResourceBundle resourceName="org.jahia.engines.search.nbOfMatchingObjects" defaultValue="matching objects"/>: <%=pageHitsList.size()%>, <a href="javascript:void('')" onclick="addIframeElement('searchPageDetail<%=thisHit.getPage().getID()%>','<%=contextURL%>/search_hit_detail.jsp?pageHitId=<%=thisHit.getPage().getID()%>&searchRefineForm=<%=searchRefineForm%>&iFrameId=opened_searchPageDetail<%=thisHit.getPage().getID()%>','100%','50','opened_searchPageDetail<%=thisHit.getPage().getID()%>','no','no','left','searchPageDetailFrame');SearchTools.showHitDetails('opened_searchPageDetail<%=thisHit.getPage().getID()%>','showSearchHitDetails<%=thisHit.getPage().getID()%>','<content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/>','<content:engineResourceBundle resourceName="org.jahia.engines.search.hideHitDetails" defaultValue="hide details"/>')"><span class="searchLink" id="showSearchHitDetails<%=thisHit.getPage().getID()%>"> <content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/></span></a><% } %>
58                                         <br/><br/><%=highlightedText%>... 58                                         <br/><br/><%=highlightedText%>...
59                                         <br/><br/> 59                                         <br/><br/>
60                           <div id="searchPageDetail<%=thisHit.getPage().getID()%>" style="display: none;">&nbsp;</div> 60                           <div id="searchPageDetail<%=thisHit.getPage().getID()%>" style="display: none;">&nbsp;</div>
61  61 
62             <% 62             <%
63                 } else { 63                 } else {
64                     String thisPicto = getPicto(thisHit.getURL()); 64                     String thisPicto = getPicto(thisHit.getURL());
65                     String filePath = java.net.URLDecoder.decode(thisHit.getURL(),"UTF-8"); 65                     String filePath = java.net.URLDecoder.decode(thisHit.getURL(),"UTF-8");
66                     String fieldId = thisHit.getParsedObject().getValue(JahiaSearchConstant.FIELD_FIELDID); 66                     String fieldId = thisHit.getParsedObject().getValue(JahiaSearchConstant.FIELD_FIELDID);
67  67 
68                     %> 68                     %>
69                     <span class="leftlink"><a href="<%=thisHit.getURL()%>"><img 69                     <span class="leftlink"><a href="<%=thisHit.getURL()%>"><img
70                     src="<%=contextUrl%>/img/files/<%=thisPicto%>.gif" alt="[<%=thisPicto%>]" 70                     src="<%=contextUrl%>/img/files/<%=thisPicto%>.gif" alt="[<%=thisPicto%>]"
71                     width="16" height="16" border="0"/>&nbsp;<%=filePath%></a>- score : <%= new Float(thisHit.getScore()).intValue()%>% <% if ( oneHitPerPage ){%>, <a href="javascript:void('')" onclick="addIframeElement('searchFileDetail<%=fieldId%>','<%=contextURL%>/search_hit_detail.jsp?fieldId=<%=fieldId%>&searchRefineForm=<%=searchRefineForm%>&iFrameId=opened_searchFileDetail<%=fieldId%>','100%','50','opened_searchFileDetail<%=fieldId%>','no','no','left','searchPageDetailFrame');SearchTools.showHitDetails('opened_searchFileDetail<%=fieldId%>','showSearchFileDetails<%=fieldId%>','<content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/>','<content:engineResourceBundle resourceName="org.jahia.engines.search.hideHitDetails" defaultValue="hide details"/>')"><span class="searchLink" id="showSearchFileDetails<%=fieldId%>"> <content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/></span></a><% } %> 71                     width="16" height="16" border="0"/>&nbsp;<%=filePath%></a>- score : <%= new Float(thisHit.getScore()).intValue()%>% <% if ( oneHitPerPage ){%>, <a href="javascript:void('')" onclick="addIframeElement('searchFileDetail<%=fieldId%>','<%=contextURL%>/search_hit_detail.jsp?fieldId=<%=fieldId%>&searchRefineForm=<%=searchRefineForm%>&iFrameId=opened_searchFileDetail<%=fieldId%>','100%','50','opened_searchFileDetail<%=fieldId%>','no','no','left','searchPageDetailFrame');SearchTools.showHitDetails('opened_searchFileDetail<%=fieldId%>','showSearchFileDetails<%=fieldId%>','<content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/>','<content:engineResourceBundle resourceName="org.jahia.engines.search.hideHitDetails" defaultValue="hide details"/>')"><span class="searchLink" id="showSearchFileDetails<%=fieldId%>"> <content:engineResourceBundle resourceName="org.jahia.engines.search.showHitDetails" defaultValue="show details"/></span></a><% } %>
72                     <br/><br/> 72                     <br/><br/>
73                     <%=highlightedText%>...</span> 73                     <%=highlightedText%>...</span>
74                                         <% 74                                         <%
75                                           List fileHitsList = (List)searchResults.getFileHitsMap().get(thisHit.getURL()); 75                                           List fileHitsList = (List)searchResults.getFileHitsMap().get(thisHit.getURL());
76                                           ArrayList refPages = new ArrayList(); 76                                           ArrayList refPages = new ArrayList();
77                                           int pageRefCount = 0; 77                                           int pageRefCount = 0;
78                       if ( fileHitsList != null ){ 78                       if ( fileHitsList != null ){
79                         Iterator  i terator = fileHitsList.iterator(); 79                         Iterator fileHitsListIterator = fileHitsList.iterator();
80                         JahiaSearchHit fileHit = null; 80                         JahiaSearchHit fileHit = null;
81                         JahiaPage refPage = null; 81                         JahiaPage refPage = null;
82                         while (  i terator.hasNext() ){ 82                         while ( fileHitsListIterator.hasNext() ){
83                           fileHit = (JahiaSearchHit) i terator.next(); 83                           fileHit = (JahiaSearchHit)fileHitsListIterator.next();
84                           refPage = fileHit.getPage(); 84                           refPage = fileHit.getPage();
85                           if ( refPage != null && !refPages.contains(new Integer(refPage.getID())) ){ 85                           if ( refPage != null && !refPages.contains(new Integer(refPage.getID())) ){
86                             pageRefCount++; 86                             pageRefCount++;
87                             refPages.add(new Integer(refPage.getID())); 87                             refPages.add(new Integer(refPage.getID()));
88                             if ( pageRefCount== 1 ){%> 88                             if ( pageRefCount== 1 ){%>
89                               <br/><br/> 89                               <br/><br/>
90                               <content:resourceBundle resourceBundle="jahiatemplates.Corporate_portal_templates_v2" resourceName="linkedPages" defaultValue="Linked pages" /> : 90                               <content:resourceBundle resourceBundle="jahiatemplates.Corporate_portal_templates_v2" resourceName="linkedPages" defaultValue="Linked pages" /> :
91                             <% 91                             <%
92                             } 92                             }
93                             if ( pageRefCount>1 ){%>,&nbsp;<% } %><a class="leftlinkon" href="<%=refPage.getURL(jParams)%>" target="_blank"><b><%=refPage.getTitle()%></b></a><% 93                             if ( pageRefCount>1 ){%>,&nbsp;<% } %><a class="leftlinkon" href="<%=refPage.getURL(jParams)%>" target="_blank"><b><%=refPage.getTitle()%></b></a><%
94                             } 94                             }
95                         } 95                         }
96                       } %> 96                       } %>
97                       <br/><br/> 97                       <br/><br/>
98                               <div id="searchFileDetail<%=fieldId%>" style="display: none;">&nbsp;</div> 98                               <div id="searchFileDetail<%=fieldId%>" style="display: none;">&nbsp;</div>
99                       <% 99                       <%
100                 } %> 100                 } %>
101             <br/><br/></li><% if ( i <  l -1 ){%><hr /><% } %></div> 101             <br/><br/></li><% if ( i < displayedHitCount-1 ){%><hr /><% } %></div>
102         <%  } %> 102         <%  } %>
103             </pg:item> 103             </pg:item>
104         <% } %> 104         <% } %>
105         </ul> 105         </ul>
106     <% } else { %> 106     <% } else { %>
107         <content:resourceBundle resourceBundle="jahiatemplates.Corporate_portal_templates_v2" resourceName="noMatch"/>. 107         <content:resourceBundle resourceBundle="jahiatemplates.Corporate_portal_templates_v2" resourceName="noMatch"/>.
108     <% } %> 108     <% } %>
109         <p>&nbsp;</p> 109         <p>&nbsp;</p>
110         <p>&nbsp;</p> 110         <p>&nbsp;</p>
111         <div style="clear: both;">Search powered by <a href="http://jakarta.apache.org/lucene" target="_new"><img src="<%=contextUrl%>/img/lucene_green_100.gif" width="100" height="15" border="0" alt=""/></a></div> 111         <div style="clear: both;">Search powered by <a href="http://jakarta.apache.org/lucene" target="_new"><img src="<%=contextUrl%>/img/lucene_green_100.gif" width="100" height="15" border="0" alt=""/></a></div>
112     </td> 112     </td>
113     <td width="3"><img src="<content:serverHttpPath />/jsp/jahia/engines/images/pix.gif" width="4" height="10" border="0" alt=""/></td> 113     <td width="3"><img src="<content:serverHttpPath />/jsp/jahia/engines/images/pix.gif" width="4" height="10" border="0" alt=""/></td>
114 </tr> 114 </tr>
115 </table> 115 </table>