NIHVIVO-146 Add/edit/delete description on front end.

NIHVIVO-145 Remove extra closing div tag in the blurb block that was messing up formatting
This commit is contained in:
rjy7 2010-03-23 18:10:12 +00:00
parent 54c5019347
commit 65d9c2a7e4

View file

@ -143,9 +143,10 @@ RY Description not working - FIX
</div> </div>
</c:if> </c:if>
<c:if test="${showEdits}"></div></c:if> <%-- end dprop-vitro-moniker --%> <c:if test="${showEdits}"></div></c:if> <%-- end dprop-vitro-moniker --%>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</div><!-- end labelAndMoniker --> </div> <!-- end labelAndMoniker -->
<%-- Links --%> <%-- Links --%>
<c:if test="${ (!empty entity.anchor) || (!empty entity.linksList) }"> <c:if test="${ (!empty entity.anchor) || (!empty entity.linksList) }">
@ -223,11 +224,10 @@ RY Description not working - FIX
<div class="datatypePropertyValue"> <div class="datatypePropertyValue">
<div class="statementWrap"> <div class="statementWrap">
<div class="description">${entity.blurb}</div> <div class="description">${entity.blurb}</div>
<c:if test="${showEdits}"> <c:if test="${showEdits}">
<c:set var="editLinks"><edLnk:editLinks item="<%= VitroVocabulary.BLURB %>" data="${entity.blurb}" icons="false"/></c:set> <c:set var="editLinks"><edLnk:editLinks item="<%= VitroVocabulary.BLURB %>" data="${entity.blurb}" icons="false"/></c:set>
<c:if test="${!empty editLinks}"><span class="editLinks">${editLinks}</span></c:if> <c:if test="${!empty editLinks}"><span class="editLinks">${editLinks}</span></c:if>
</c:if> </c:if>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -235,29 +235,36 @@ RY Description not working - FIX
</div> </div>
<%-- Description --%> <%-- Description --%>
<c:if test="${!empty entity.description}"> <div id="dprop-vitro-description" class="propsItem ${editingClass}" style="display:block;">
<div class="datatypePropertyValue"> <c:if test="${showEdits}">
<div class="statementWrap"> <h3 class="propertyName">description</h3>
<div class="description">${entity.description}</div> <edLnk:editLinks item="<%= VitroVocabulary.DESCRIPTION %>" icons="false"/>
<%-- </c:if>
<c:if test="${showEdits}"> <c:if test="${!empty entity.description}">
<c:set var="editLinks"><edLnk:editLinks item="<%= VitroVocabulary.DESCRIPTION %>" data="${entity.description}" icons="false"/></c:set> <div class="datatypeProperties">
<c:if test="${!empty editLinks}"><span class="editLinks">${editLinks}</span></c:if> <div class="datatypePropertyValue">
</c:if> --%> <div class="statementWrap">
<div class="description">${entity.description}</div>
<c:if test="${showEdits}">
<c:set var="editLinks"><edLnk:editLinks item="<%= VitroVocabulary.DESCRIPTION %>" data="${entity.description}" icons="false"/></c:set>
<c:if test="${!empty editLinks}"><span class="editLinks">${editLinks}</span></c:if>
</c:if>
</div>
</div>
</div> </div>
</div> </c:if>
</c:if> </div>
</p:process> </p:process>
<%-- Properties --%> <%-- Properties --%>
<c:import url="${entityMergedPropsListJsp}"> <c:import url="${entityMergedPropsListJsp}">
<%-- <c:param name="mode" value="edit"/> --%> <%-- <c:param name="mode" value="edit"/> --%>
<c:param name="grouped" value="false"/> <c:param name="grouped" value="false"/>
<%-- unless a value is provided, properties not assigned to a group will not have a tab or appear on the page --%> <%-- unless a value is provided, properties not assigned to a group will not have a tab or appear on the page --%>
<c:param name="unassignedPropsGroupName" value=""/> <c:param name="unassignedPropsGroupName" value=""/>
</c:import> </c:import>
<p:process> <p:process>
<%-- Citation, if no thumbnail --%> <%-- Citation, if no thumbnail --%>
@ -278,5 +285,5 @@ RY Description not working - FIX
</c:if> </c:if>
</p:process> </p:process>
${requestScope.servletButtons} ${requestScope.servletButtons}
</div> </div> <!-- contents -->
</div> <!-- content --> </div> <!-- content -->