Commit 1009130f authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1294: Render es mappings based on resources only

Task-Url: https://pm.winseda.de/issues/1294
parent 5cff5dbd
...@@ -13,38 +13,47 @@ ...@@ -13,38 +13,47 @@
<div class="col-12 ${fn:length(images)>0 ? 'col-md-7 col-lg-8 col-xl-9' : ''}"> <div class="col-12 ${fn:length(images)>0 ? 'col-md-7 col-lg-8 col-xl-9' : ''}">
<h3 id="item-detail-collection">${collectionName}</h3> <h3 id="item-detail-collection">${collectionName}</h3>
<h1 id="item-detail-resource"> <h1 id="item-detail-resource">
<c:forEach items="${titles}" var="title"> <c:choose>
${fn:replace(title.value, newLineChar, "<br />")} <c:when test="${titles==null || fn:length(images)==0}">
</c:forEach><br /> <s:message code="~eu.dariah.de.minfba.search.view.result.no_title" />
</c:when>
<c:otherwise>
<c:forEach items="${titles}" var="title">
${fn:replace(title.value, newLineChar, "<br />")}
</c:forEach><br />
</c:otherwise>
</c:choose>
</h1> </h1>
<h2 class="item-detail-heading"><s:message code="~eu.dariah.de.minfba.search.view.item.links" /></h2> <c:if test="${links!=null && fn:length(links)>0}">
<ul class="item-detail-linklist"> <h2 class="item-detail-heading"><s:message code="~eu.dariah.de.minfba.search.view.item.links" /></h2>
<c:forEach items="${links}" var="link"> <ul class="item-detail-linklist">
<c:set var="linkType" value="" /> <c:forEach items="${links}" var="link">
<c:set var="linkUrl" value="N/A" /> <c:set var="linkType" value="" />
<c:choose> <c:set var="linkUrl" value="N/A" />
<c:when test="${link.childResources!=null}"> <c:choose>
<c:forEach items="${link.childResources}" var="linkProp"> <c:when test="${link.childResources!=null}">
<c:choose> <c:forEach items="${link.childResources}" var="linkProp">
<c:when test="${linkProp.key=='Type'}"> <c:choose>
<c:set var="linkType" value="${linkProp.value}: " /> <c:when test="${linkProp.key=='Type'}">
</c:when> <c:set var="linkType" value="${linkProp.value}: " />
<c:when test="${linkProp.key=='URL'}"> </c:when>
<c:set var="linkUrl"> <c:when test="${linkProp.key=='URL'}">
<a href="${linkProp.value}" target="_blank">${linkProp.value}</a> <c:set var="linkUrl">
</c:set> <a href="${linkProp.value}" target="_blank">${linkProp.value}</a>
</c:when> </c:set>
</c:choose> </c:when>
</c:forEach> </c:choose>
</c:when> </c:forEach>
<c:otherwise> </c:when>
<a href="${link}" target="_blank">${link}</a> <c:otherwise>
</c:otherwise> <a href="${link}" target="_blank">${link}</a>
</c:choose> </c:otherwise>
<li><span class="item-detail-linklist-label">${linkType}</span><span class="item-detail-linklist-url">${linkUrl}</span></li> </c:choose>
</c:forEach> <li><span class="item-detail-linklist-label">${linkType}</span><span class="item-detail-linklist-url">${linkUrl}</span></li>
</ul> </c:forEach>
</ul>
</c:if>
</div> </div>
<c:if test="${fn:length(images)>0}"> <c:if test="${fn:length(images)>0}">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment