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 @@
<div class="col-12 ${fn:length(images)>0 ? 'col-md-7 col-lg-8 col-xl-9' : ''}">
<h3 id="item-detail-collection">${collectionName}</h3>
<h1 id="item-detail-resource">
<c:forEach items="${titles}" var="title">
${fn:replace(title.value, newLineChar, "<br />")}
</c:forEach><br />
<c:choose>
<c:when test="${titles==null || fn:length(images)==0}">
<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>
<h2 class="item-detail-heading"><s:message code="~eu.dariah.de.minfba.search.view.item.links" /></h2>
<ul class="item-detail-linklist">
<c:forEach items="${links}" var="link">
<c:set var="linkType" value="" />
<c:set var="linkUrl" value="N/A" />
<c:choose>
<c:when test="${link.childResources!=null}">
<c:forEach items="${link.childResources}" var="linkProp">
<c:choose>
<c:when test="${linkProp.key=='Type'}">
<c:set var="linkType" value="${linkProp.value}: " />
</c:when>
<c:when test="${linkProp.key=='URL'}">
<c:set var="linkUrl">
<a href="${linkProp.value}" target="_blank">${linkProp.value}</a>
</c:set>
</c:when>
</c:choose>
</c:forEach>
</c:when>
<c:otherwise>
<a href="${link}" target="_blank">${link}</a>
</c:otherwise>
</c:choose>
<li><span class="item-detail-linklist-label">${linkType}</span><span class="item-detail-linklist-url">${linkUrl}</span></li>
</c:forEach>
</ul>
<c:if test="${links!=null && fn:length(links)>0}">
<h2 class="item-detail-heading"><s:message code="~eu.dariah.de.minfba.search.view.item.links" /></h2>
<ul class="item-detail-linklist">
<c:forEach items="${links}" var="link">
<c:set var="linkType" value="" />
<c:set var="linkUrl" value="N/A" />
<c:choose>
<c:when test="${link.childResources!=null}">
<c:forEach items="${link.childResources}" var="linkProp">
<c:choose>
<c:when test="${linkProp.key=='Type'}">
<c:set var="linkType" value="${linkProp.value}: " />
</c:when>
<c:when test="${linkProp.key=='URL'}">
<c:set var="linkUrl">
<a href="${linkProp.value}" target="_blank">${linkProp.value}</a>
</c:set>
</c:when>
</c:choose>
</c:forEach>
</c:when>
<c:otherwise>
<a href="${link}" target="_blank">${link}</a>
</c:otherwise>
</c:choose>
<li><span class="item-detail-linklist-label">${linkType}</span><span class="item-detail-linklist-url">${linkUrl}</span></li>
</c:forEach>
</ul>
</c:if>
</div>
<c:if test="${fn:length(images)>0}">
......
Markdown is supported
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