Adding ability for collate by class to work with display limit. NIHVIVO-118
This commit is contained in:
parent
1e7f260253
commit
17116c547b
1 changed files with 53 additions and 59 deletions
|
@ -156,7 +156,8 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
<c:if test="${stmtCounter == displayLimit}"><!-- set up toggle div and expandable continuation div -->
|
<c:if test="${stmtCounter == displayLimit}"><!-- set up toggle div and expandable continuation div -->
|
||||||
</ul>
|
<c:if test="${ collateByClass }"> </ul></li></c:if>
|
||||||
|
<c:if test="${ ! collateByClass }"> </ul></c:if>
|
||||||
<c:set var="hiddenDivCount" value="${hiddenDivCount+1}"/>
|
<c:set var="hiddenDivCount" value="${hiddenDivCount+1}"/>
|
||||||
<c:url var="themePath" value="/${themeDir}site_icons" />
|
<c:url var="themePath" value="/${themeDir}site_icons" />
|
||||||
|
|
||||||
|
@ -170,24 +171,16 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="extraEntities">
|
<div class="extraEntities">
|
||||||
|
<c:if test="${ collateByClass }"> <li></c:if>
|
||||||
<ul class="properties">
|
<ul class="properties">
|
||||||
|
|
||||||
</c:if>
|
</c:if>
|
||||||
<li><span class="statementWrap">
|
<li>
|
||||||
|
<span class="statementWrap">
|
||||||
<c:set var="opStmt" value="${objPropertyStmt}" scope="request"/>
|
<c:set var="opStmt" value="${objPropertyStmt}" scope="request"/>
|
||||||
<c:url var="propertyLink" value="/entity">
|
<c:url var="propertyLink" value="/entity">
|
||||||
<c:param name="home" value="${portal.portalId}"/>
|
<c:param name="home" value="${portal.portalId}"/>
|
||||||
<c:param name="uri" value="${objPropertyStmt.object.URI}"/>
|
<c:param name="uri" value="${objPropertyStmt.object.URI}"/>
|
||||||
<%--
|
|
||||||
<% ObjectPropertyStatement oStmt = (ObjectPropertyStatement)request.getAttribute("opStmt");
|
|
||||||
if (oStmt!=null) {
|
|
||||||
Individual obj= (Individual)oStmt.getObject();
|
|
||||||
if (obj != null) {
|
|
||||||
if (!obj.doesFlag1Match(currentPortalId)) {%>
|
|
||||||
<c:param name="jump" value="true"/>
|
|
||||||
<% }
|
|
||||||
}
|
|
||||||
}%>
|
|
||||||
--%>
|
|
||||||
</c:url>
|
</c:url>
|
||||||
<c:remove var="opStmt" scope="request"/>
|
<c:remove var="opStmt" scope="request"/>
|
||||||
<c:forEach items="${objPropertyStmt.object.VClasses}" var="type">
|
<c:forEach items="${objPropertyStmt.object.VClasses}" var="type">
|
||||||
|
@ -214,11 +207,12 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
|
||||||
<c:if test="${!empty editLinks}"><span class="editLinks">${editLinks} </span></c:if>
|
<c:if test="${!empty editLinks}"><span class="editLinks">${editLinks} </span></c:if>
|
||||||
<c:if test="${empty editLinks}"><em class="nonEditable">(non-editable) </em></c:if>
|
<c:if test="${empty editLinks}"><em class="nonEditable">(non-editable) </em></c:if>
|
||||||
</c:if>
|
</c:if>
|
||||||
</span></li>
|
</span>
|
||||||
|
</li>
|
||||||
<c:set var="stmtCounter" value="${stmtCounter+1}"/>
|
<c:set var="stmtCounter" value="${stmtCounter+1}"/>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
<c:if test="${ collateClassesShownCount > 0 }"></ul></li><!-- collateClasses 2 --></c:if>
|
|
||||||
<c:if test="${objRows > 0}"></ul></c:if>
|
<c:if test="${objRows > 0}"></ul></c:if>
|
||||||
|
<c:if test="${ collateClassesShownCount > 0 }"></li><!-- collateClasses 2 --></c:if>
|
||||||
<c:if test="${ stmtCounter > displayLimit}">
|
<c:if test="${ stmtCounter > displayLimit}">
|
||||||
</div><%-- navlinkblock --%>
|
</div><%-- navlinkblock --%>
|
||||||
</div><%-- extraEntities --%></c:if>
|
</div><%-- extraEntities --%></c:if>
|
||||||
|
|
Loading…
Add table
Reference in a new issue