NIHVIVO-144 Enable adding new primary or additional link from front end

This commit is contained in:
rjy7 2010-03-24 21:41:33 +00:00
parent 6a6a9de920
commit 7f3ba68290
8 changed files with 386 additions and 102 deletions

View file

@ -149,11 +149,19 @@ RY Description not working - FIX
</div> <!-- end labelAndMoniker -->
<%-- Links --%>
<c:if test="${ showEdits || !empty entity.anchor || !empty entity.linksList }">
<div id="dprop-vitro-link" class="propsItem ${editingClass}">
<c:if test="${ showEdits || !empty entity.url || !empty entity.linksList }">
<div id="dprop-vitro-urls" class="propsItem ${editingClass}">
<c:if test="${showEdits}">
<h3 class="propertyName">links</h3>
<edLnk:editLinks item="<%= VitroVocabulary.LINK_ANCHOR %>" icons="false" />
<c:choose>
<c:when test="${empty entity.url}">
<c:set var="addUrlPredicate" value="<%= VitroVocabulary.PRIMARY_LINK %>" />
</c:when>
<c:otherwise>
<c:set var="addUrlPredicate" value="<%= VitroVocabulary.ADDITIONAL_LINK %>" />
</c:otherwise>
</c:choose>
<edLnk:editLinks item="${addUrlPredicate}" icons="false" />
</c:if>
<div class="datatypeProperties">
<div class="datatypePropertyValue">