|
@@ -22,16 +22,14 @@
|
|
</div>
|
|
</div>
|
|
</c:if>
|
|
</c:if>
|
|
<div id="result" class="row content">
|
|
<div id="result" class="row content">
|
|
- <input type="hidden" id="queryId" value="${f:u(queryId)}" /> <input
|
|
|
|
- type="hidden" id="contextPath" value="<%=request.getContextPath()%>" />
|
|
|
|
|
|
+ <input type="hidden" id="queryId" value="${f:u(queryId)}" />
|
|
<input type="hidden" id="rt" value="${f:u(rt)}" />
|
|
<input type="hidden" id="rt" value="${f:u(rt)}" />
|
|
<div class="span8">
|
|
<div class="span8">
|
|
<ol>
|
|
<ol>
|
|
<c:forEach var="doc" varStatus="s" items="${documentItems}">
|
|
<c:forEach var="doc" varStatus="s" items="${documentItems}">
|
|
<li id="result${s.index}">
|
|
<li id="result${s.index}">
|
|
<h3 class="title">
|
|
<h3 class="title">
|
|
- <a href="${doc.urlLink}" class="link">
|
|
|
|
- ${f:h(doc.contentTitle)} </a>
|
|
|
|
|
|
+ <a class="link" href="${doc.urlLink}" data-uri="${doc.urlLink}" data-id="${doc.docId}">${f:h(doc.contentTitle)}</a>
|
|
</h3>
|
|
</h3>
|
|
<div class="body">
|
|
<div class="body">
|
|
<div class="description">${doc.contentDescription}</div>
|
|
<div class="description">${doc.contentDescription}</div>
|
|
@@ -42,30 +40,32 @@
|
|
<a href="#result${s.index}"><bean:message key="labels.search_result_more" /></a>
|
|
<a href="#result${s.index}"><bean:message key="labels.search_result_more" /></a>
|
|
</div>
|
|
</div>
|
|
<div class="info">
|
|
<div class="info">
|
|
- <c:if test="${doc.tstamp!=null && doc.tstamp!=''}">
|
|
|
|
- <bean:message key="labels.search_result_tstamp" />
|
|
|
|
- <fmt:formatDate value="${fe:parseDate(doc.tstamp)}" type="BOTH" />
|
|
|
|
- <span class="br-phone"></span>
|
|
|
|
- <span class="hidden-phone">-</span>
|
|
|
|
|
|
+ <c:if test="${doc.created!=null && doc.created!=''}">
|
|
|
|
+ <c:set var="hasInfo" value="true"/>
|
|
|
|
+ <bean:message key="labels.search_result_created" />
|
|
|
|
+ <fmt:formatDate value="${fe:parseDate(doc.created)}" type="BOTH" />
|
|
</c:if>
|
|
</c:if>
|
|
<c:if test="${doc.lastModified!=null && doc.lastModified!=''}">
|
|
<c:if test="${doc.lastModified!=null && doc.lastModified!=''}">
|
|
|
|
+ <c:if test="${hasInfo}"><span class="br-phone"></span><span class="hidden-phone">-</span></c:if><c:set var="hasInfo" value="true"/>
|
|
<bean:message key="labels.search_result_lastModified" />
|
|
<bean:message key="labels.search_result_lastModified" />
|
|
<fmt:formatDate value="${fe:parseDate(doc.lastModified)}" type="BOTH" />
|
|
<fmt:formatDate value="${fe:parseDate(doc.lastModified)}" type="BOTH" />
|
|
- <span class="br-phone"></span>
|
|
|
|
- <span class="br-tablet"></span>
|
|
|
|
- <span class="hidden-phone hidden-tablet">-</span>
|
|
|
|
</c:if>
|
|
</c:if>
|
|
<c:if test="${doc.contentLength!=null && doc.contentLength!=''}">
|
|
<c:if test="${doc.contentLength!=null && doc.contentLength!=''}">
|
|
|
|
+ <c:if test="${hasInfo}"><span class="br-phone"></span><span class="hidden-phone">-</span></c:if><c:set var="hasInfo" value="true"/>
|
|
<bean:message key="labels.search_result_size"
|
|
<bean:message key="labels.search_result_size"
|
|
arg0="${f:h(doc.contentLength)}" />
|
|
arg0="${f:h(doc.contentLength)}" />
|
|
- <span class="br-phone"></span>
|
|
|
|
- <span class="hidden-phone">-</span>
|
|
|
|
|
|
+ </c:if>
|
|
|
|
+ <c:if test="${searchLogSupport}">
|
|
|
|
+ <c:if test="${hasInfo}"><span class="br-phone"></span><span class="hidden-phone">-</span></c:if><c:set var="hasInfo" value="true"/>
|
|
|
|
+ <bean:message key="labels.search_click_count"
|
|
|
|
+ arg0="${f:h(doc.clickCount_l_x_dv)}" />
|
|
</c:if>
|
|
</c:if>
|
|
<c:if test="${favoriteSupport}">
|
|
<c:if test="${favoriteSupport}">
|
|
- <a href="#${doc.url}" class="favorite"><bean:message
|
|
|
|
- key="labels.search_result_favorite" /></a>
|
|
|
|
|
|
+ <c:if test="${hasInfo}"><span class="br-phone"></span><span class="hidden-phone">-</span></c:if><c:set var="hasInfo" value="true"/>
|
|
|
|
+ <a href="#${doc.docId}" class="favorite"><bean:message
|
|
|
|
+ key="labels.search_result_favorite" /> (${f:h(doc.favoriteCount_l_x_dv)})</a>
|
|
<span class="favorited"><bean:message
|
|
<span class="favorited"><bean:message
|
|
- key="labels.search_result_favorited" /></span>
|
|
|
|
|
|
+ key="labels.search_result_favorited"/> <span class="favorited-count">(${f:h(doc.favoriteCount_l_x_dv)})</span></span>
|
|
</c:if>
|
|
</c:if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -82,10 +82,10 @@
|
|
<div class="well span3">
|
|
<div class="well span3">
|
|
<ul class="nav nav-list">
|
|
<ul class="nav nav-list">
|
|
<c:forEach var="fieldData" items="${facetResponse.fieldList}">
|
|
<c:forEach var="fieldData" items="${facetResponse.fieldList}">
|
|
- <c:if test="${fieldData.name == 'label'}">
|
|
|
|
|
|
+ <c:if test="${fieldData.name == 'label' && fieldData.valueCountMap.size() > 0}">
|
|
<li class="nav-header"><bean:message key="label.facet_label_title" /></li>
|
|
<li class="nav-header"><bean:message key="label.facet_label_title" /></li>
|
|
<c:forEach var="countEntry" items="${fieldData.valueCountMap}">
|
|
<c:forEach var="countEntry" items="${fieldData.valueCountMap}">
|
|
- <c:if test="${countEntry.value != 0}">
|
|
|
|
|
|
+ <c:if test="${countEntry.value != 0 && fe:labelexists(countEntry.key)}">
|
|
<li><s:link
|
|
<li><s:link
|
|
href="search?query=${f:u(query)}&additional=label:${f:u(countEntry.key)}${pagingQuery}${fe:facetQuery()}${fe:mltQuery()}${fe:geoQuery()}">
|
|
href="search?query=${f:u(query)}&additional=label:${f:u(countEntry.key)}${pagingQuery}${fe:facetQuery()}${fe:mltQuery()}${fe:geoQuery()}">
|
|
${f:h(fe:label(countEntry.key))} (${f:h(countEntry.value)})</s:link></li>
|
|
${f:h(fe:label(countEntry.key))} (${f:h(countEntry.value)})</s:link></li>
|