agent.jsp 693 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<c:set var="agentString" value="${agent.value}"></c:set>
<dd>
  <c:choose>
    <c:when test="${not empty agent.id}">
      <c:choose>
        <c:when test="${fn:startsWith(agent.id, 'pnd:')}">
          <a href="http://d-nb.info/gnd/${fn:substringAfter(agent.id, 'pnd:')}">${agentString}</a> ${agentRole} 
        </c:when>
        <c:otherwise>
          <a href="${agent.id}">${agentString}</a> ${agentRole} 
        </c:otherwise>
      </c:choose>
    </c:when>
    <c:otherwise>
      ${agentString} ${agentRole}
    </c:otherwise>
  </c:choose>
</dd>