Normalize line endings VIVO-101
This commit is contained in:
parent
b097a4d754
commit
54f79f2ea7
587 changed files with 91501 additions and 91501 deletions
|
@ -1,87 +1,87 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%/* this odd thing points to something in web.xml */ %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
||||
<%@ page errorPage="/error.jsp"%>
|
||||
<% /***********************************************
|
||||
Display a list of entities for a tab.
|
||||
|
||||
request.attributes:
|
||||
a List of Entity objects with the name "entities"
|
||||
|
||||
request.parameters:
|
||||
None yet.
|
||||
|
||||
Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output for debugging info.
|
||||
|
||||
bdc34 2006-01-27 created
|
||||
**********************************************/
|
||||
if (request.getAttribute("entities") == null){
|
||||
String e="entityListForTabs.jsp expects that request attribute 'entities' be set to a List of Entity objects.";
|
||||
throw new JspException(e);
|
||||
}
|
||||
%>
|
||||
<c:set var="searchViewPrefix" value="/templates/search/"/>
|
||||
<c:set var='entities' value='${requestScope.entities}' /><%/* just moving this into page scope for easy use */ %>
|
||||
<c:set var='IMG_WIDTH' value='75'/>
|
||||
<jsp:include page="/templates/alpha/alphaIndex.jsp"/>
|
||||
<ul class='tabEntities entityListForTab'>
|
||||
<c:forEach items='${entities}' var='ent'>
|
||||
<c:url var="entHref" value="/entity">
|
||||
<c:param name="uri" value="${ent.URI}"/>
|
||||
</c:url>
|
||||
<li>
|
||||
<a href='<c:out value="${entHref}"/>'>${ent.name}</a>
|
||||
<c:if test="${!empty ent.moniker}">
|
||||
<span class="tab-moniker">
|
||||
| <c:out value="${ent.moniker}"/>
|
||||
</span>
|
||||
</c:if>
|
||||
<c:if test="${!empty ent.VClasses}">
|
||||
<c:forEach items="${ent.VClasses}" var="type">
|
||||
<c:if test="${!empty type.customSearchView}">
|
||||
<c:set var="customSearchView" value="${type.customSearchView}"/>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
<c:set var="anchorText" value="${ent.anchor}"/>
|
||||
|
||||
<c:if test="${(!empty customSearchView) && (!empty anchorText)}">
|
||||
<c:set scope="request" var="individual" value="${ent}"/>
|
||||
<c:if test="${!empty ent.url}">
|
||||
<c:set scope="request" var="individualURL" value="${ent.url}"/>
|
||||
</c:if>
|
||||
<jsp:include page="${searchViewPrefix}${customSearchView}" flush="true"/>
|
||||
<c:remove var="individual"/>
|
||||
<c:remove var="individualURL"/>
|
||||
<c:remove var="anchorText"/>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${!empty anchorText}">
|
||||
<span class="tab-extLink"> |
|
||||
<c:choose>
|
||||
<c:when test="${!empty ent.url}">
|
||||
<c:url var="entUrl" value="${ent.url}"/>
|
||||
<a class="externalLink" href="<c:out value="${entUrl}"/>">${anchorText}</a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<span style="font-style: italic; text-size: 0.75em;">${anchorText}</span>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</span>
|
||||
</c:if>
|
||||
<c:forEach items='${ent.linksList}' var="entLink"><span class="tab-extLink"> | <c:url var="entLinkUrl" value="${entLink.url}"/><a class="externalLink" href="<c:out value="${entLinkUrl}"/>">${entLink.anchor}</a></span></c:forEach>
|
||||
<c:choose>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%/* this odd thing points to something in web.xml */ %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
||||
<%@ page errorPage="/error.jsp"%>
|
||||
<% /***********************************************
|
||||
Display a list of entities for a tab.
|
||||
|
||||
request.attributes:
|
||||
a List of Entity objects with the name "entities"
|
||||
|
||||
request.parameters:
|
||||
None yet.
|
||||
|
||||
Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output for debugging info.
|
||||
|
||||
bdc34 2006-01-27 created
|
||||
**********************************************/
|
||||
if (request.getAttribute("entities") == null){
|
||||
String e="entityListForTabs.jsp expects that request attribute 'entities' be set to a List of Entity objects.";
|
||||
throw new JspException(e);
|
||||
}
|
||||
%>
|
||||
<c:set var="searchViewPrefix" value="/templates/search/"/>
|
||||
<c:set var='entities' value='${requestScope.entities}' /><%/* just moving this into page scope for easy use */ %>
|
||||
<c:set var='IMG_WIDTH' value='75'/>
|
||||
<jsp:include page="/templates/alpha/alphaIndex.jsp"/>
|
||||
<ul class='tabEntities entityListForTab'>
|
||||
<c:forEach items='${entities}' var='ent'>
|
||||
<c:url var="entHref" value="/entity">
|
||||
<c:param name="uri" value="${ent.URI}"/>
|
||||
</c:url>
|
||||
<li>
|
||||
<a href='<c:out value="${entHref}"/>'>${ent.name}</a>
|
||||
<c:if test="${!empty ent.moniker}">
|
||||
<span class="tab-moniker">
|
||||
| <c:out value="${ent.moniker}"/>
|
||||
</span>
|
||||
</c:if>
|
||||
<c:if test="${!empty ent.VClasses}">
|
||||
<c:forEach items="${ent.VClasses}" var="type">
|
||||
<c:if test="${!empty type.customSearchView}">
|
||||
<c:set var="customSearchView" value="${type.customSearchView}"/>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
<c:set var="anchorText" value="${ent.anchor}"/>
|
||||
|
||||
<c:if test="${(!empty customSearchView) && (!empty anchorText)}">
|
||||
<c:set scope="request" var="individual" value="${ent}"/>
|
||||
<c:if test="${!empty ent.url}">
|
||||
<c:set scope="request" var="individualURL" value="${ent.url}"/>
|
||||
</c:if>
|
||||
<jsp:include page="${searchViewPrefix}${customSearchView}" flush="true"/>
|
||||
<c:remove var="individual"/>
|
||||
<c:remove var="individualURL"/>
|
||||
<c:remove var="anchorText"/>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${!empty anchorText}">
|
||||
<span class="tab-extLink"> |
|
||||
<c:choose>
|
||||
<c:when test="${!empty ent.url}">
|
||||
<c:url var="entUrl" value="${ent.url}"/>
|
||||
<a class="externalLink" href="<c:out value="${entUrl}"/>">${anchorText}</a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<span style="font-style: italic; text-size: 0.75em;">${anchorText}</span>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</span>
|
||||
</c:if>
|
||||
<c:forEach items='${ent.linksList}' var="entLink"><span class="tab-extLink"> | <c:url var="entLinkUrl" value="${entLink.url}"/><a class="externalLink" href="<c:out value="${entLinkUrl}"/>">${entLink.anchor}</a></span></c:forEach>
|
||||
<c:choose>
|
||||
<c:when test='${not empty ent.thumbUrl }'>
|
||||
<c:url var="imageHref" value="entity">
|
||||
<c:param name="uri" value="${ent.URI}"/>
|
||||
</c:url>
|
||||
<c:url var="imageHref" value="entity">
|
||||
<c:param name="uri" value="${ent.URI}"/>
|
||||
</c:url>
|
||||
<div class="tab-image"><a class="image" href="<c:out value="${imageHref}"/>"><img width="${IMG_WIDTH}" src="${pageContext.request.contextPath}${ent.thumbUrl}" title="${ent.name}" alt="" /></a></div>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</li>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
|
||||
|
@ -113,7 +113,7 @@ if( request.getAttribute("alpha") != null && ! "all".equalsIgnoreCase((String)re
|
|||
</c:if>
|
||||
</c:forEach>
|
||||
</div>
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
<jsp:include page="/templates/entity/entityListPages.jsp"/>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue