Skip to content

Commit fa6c648

Browse files
committed
Moved folder facet entry to above the Refine your search header and gave it header. Reduced the max height of folder facet to avoid pushing down the facet list so much
1 parent fc7029d commit fa6c648

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

access-common/src/main/resources/META-INF/resources/jsp/util/facetList.jsp

-11
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,5 @@
119119
</c:forEach>
120120
</ul>
121121
</c:if>
122-
<c:if test="${facetField.name == 'PARENT_COLLECTION'}">
123-
<div id="facet_field_path_structure" class="hidden">
124-
<c:if test="${not empty selectedContainer}"><c:set var="containerPath" value="/${selectedContainer.id}"/></c:if>
125-
<c:url var="structureUrl" scope="page" value='structure${containerPath}/path${searchStateParameters}'>
126-
<c:param name="view" value="facet"/>
127-
<c:param name="queryp" value="list"/>
128-
<c:param name="files" value="false"/>
129-
</c:url>
130-
<a href="<c:out value="${structureUrl}" />"><img src="/static/images/ajax_loader.gif"/></a>
131-
</div>
132-
</c:if>
133122
</div>
134123
</c:forEach>

access/src/main/webapp/WEB-INF/jsp/searchResults.jsp

+10-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<c:set var="facetFields" scope="request" value="${resultResponse.facetFields}"/>
5858
<c:choose>
5959
<c:when test="${resultType == 'collectionBrowse'}">
60-
6160
<h2>Refine your results</h2>
6261
<c:import url="/jsp/util/facetList.jsp">
6362
<c:param name="queryMethod">search</c:param>
@@ -66,6 +65,16 @@
6665
</c:when>
6766
<c:otherwise>
6867
<c:set var="selectedContainer" scope="request" value="${resultResponse.selectedContainer}"/>
68+
<h2>Folders</h2>
69+
<div id="facet_field_path_structure" class="hidden">
70+
<c:if test="${not empty resultResponse.selectedContainer}"><c:set var="containerPath" value="/${selectedContainer.id}"/></c:if>
71+
<c:url var="structureUrl" scope="page" value='structure${containerPath}/path'>
72+
<c:param name="view" value="facet"/>
73+
<c:param name="queryp" value="list"/>
74+
<c:param name="files" value="false"/>
75+
</c:url>
76+
<a href="<c:out value="${structureUrl}" />"><img src="/static/images/ajax_loader.gif"/></a>
77+
</div>
6978
<h2>Refine your search</h2>
7079
<c:import url="/jsp/util/facetList.jsp">
7180
<c:param name="queryMethod">search</c:param>

static/css/cdrui_styles.css

+4
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,10 @@ p.navigation_bar a {
804804

805805
}
806806

807+
#facet_field_path_structure .structure.facet .structure_content {
808+
max-height: 300px;
809+
}
810+
807811
.metadata table {
808812
clear: both;
809813
font-size: 12px;

0 commit comments

Comments
 (0)