Make the discovery facet layout parametrizable

This commit is contained in:
Andrea Bollini
2013-10-03 06:37:32 +02:00
parent 95d54d355f
commit 1d04d4dd25
2 changed files with 6 additions and 2 deletions

View File

@@ -60,7 +60,7 @@
} }
if (brefine) { if (brefine) {
%> %>
<div class="col-md-8"> <div class="col-md-<%= discovery_panel_cols %>">
<h3 class="facets"><fmt:message key="jsp.search.facet.refine" /></h3> <h3 class="facets"><fmt:message key="jsp.search.facet.refine" /></h3>
<div id="facets" class="facetsBox row panel"> <div id="facets" class="facetsBox row panel">
<% <%
@@ -78,7 +78,7 @@
} }
String fkey = "jsp.search.facet.refine."+f; String fkey = "jsp.search.facet.refine."+f;
int limit = facetConf.getFacetLimit()+1; int limit = facetConf.getFacetLimit()+1;
%><div id="facet_<%= f %>" class="facet col-md-4"> %><div id="facet_<%= f %>" class="facet col-md-<%= discovery_facet_cols %>">
<span class="facetName"><fmt:message key="<%= fkey %>" /></span> <span class="facetName"><fmt:message key="<%= fkey %>" /></span>
<ul class="list-group"><% <ul class="list-group"><%
int idx = 1; int idx = 1;

View File

@@ -216,6 +216,10 @@ if (communities != null && communities.length != 0)
<% <%
} }
%> %>
<%
int discovery_panel_cols = 8;
int discovery_facet_cols = 4;
%>
<%@ include file="discovery/static-sidebar-facet.jsp" %> <%@ include file="discovery/static-sidebar-facet.jsp" %>
</div> </div>
</dspace:layout> </dspace:layout>