NIHVIVO-145, NIHVIVO-146 Don't output wrapping div for blurb and description if not in editing mode and the item has no value, since it adds too much blank space to the page.
This commit is contained in:
parent
354b2f0961
commit
dd84a0ddf4
1 changed files with 64 additions and 58 deletions
|
@ -125,7 +125,7 @@ RY Description not working - FIX
|
||||||
|
|
||||||
<%-- Moniker. Wrap in the div only if editing. If not editing, displays inline next to label. --%>
|
<%-- Moniker. Wrap in the div only if editing. If not editing, displays inline next to label. --%>
|
||||||
<c:if test="${showEdits}">
|
<c:if test="${showEdits}">
|
||||||
<div id="dprop-vitro-moniker" class="propsItem editing" style="display:block;">
|
<div id="dprop-vitro-moniker" class="propsItem editing">
|
||||||
<h3 class="propertyName">moniker</h3>
|
<h3 class="propertyName">moniker</h3>
|
||||||
<edLnk:editLinks item="<%= VitroVocabulary.MONIKER %>" icons="false"/>
|
<edLnk:editLinks item="<%= VitroVocabulary.MONIKER %>" icons="false"/>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
@ -198,7 +198,7 @@ RY Description not working - FIX
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%-- Citation --%>
|
<%-- Citation --%>
|
||||||
<div id="dprop-vitro-citation" class="propsItem ${editingClass}" style="display:block;">
|
<div id="dprop-vitro-citation" class="propsItem ${editingClass}">
|
||||||
<c:if test="${showEdits}">
|
<c:if test="${showEdits}">
|
||||||
<h3 class="propertyName">citation</h3>
|
<h3 class="propertyName">citation</h3>
|
||||||
<edLnk:editLinks item="<%= VitroVocabulary.CITATION %>" icons="false"/>
|
<edLnk:editLinks item="<%= VitroVocabulary.CITATION %>" icons="false"/>
|
||||||
|
@ -222,7 +222,8 @@ RY Description not working - FIX
|
||||||
<p:process>
|
<p:process>
|
||||||
|
|
||||||
<%-- Blurb --%>
|
<%-- Blurb --%>
|
||||||
<div id="dprop-vitro-blurb" class="propsItem ${editingClass}" style="display:block;">
|
<c:if test="${showEdits || !empty entity.blurb}">
|
||||||
|
<div id="dprop-vitro-blurb" class="propsItem ${editingClass}">
|
||||||
<c:if test="${showEdits}">
|
<c:if test="${showEdits}">
|
||||||
<h3 class="propertyName">blurb</h3>
|
<h3 class="propertyName">blurb</h3>
|
||||||
<edLnk:editLinks item="<%= VitroVocabulary.BLURB %>" icons="false"/>
|
<edLnk:editLinks item="<%= VitroVocabulary.BLURB %>" icons="false"/>
|
||||||
|
@ -241,9 +242,11 @@ RY Description not working - FIX
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
|
</c:if>
|
||||||
|
|
||||||
<%-- Description --%>
|
<%-- Description --%>
|
||||||
<div id="dprop-vitro-description" class="propsItem ${editingClass}" style="display:block;">
|
<c:if test="${showEdits || !empty entity.description}">
|
||||||
|
<div id="dprop-vitro-description" class="propsItem ${editingClass}">
|
||||||
<c:if test="${showEdits}">
|
<c:if test="${showEdits}">
|
||||||
<h3 class="propertyName">description</h3>
|
<h3 class="propertyName">description</h3>
|
||||||
<edLnk:editLinks item="<%= VitroVocabulary.DESCRIPTION %>" icons="false"/>
|
<edLnk:editLinks item="<%= VitroVocabulary.DESCRIPTION %>" icons="false"/>
|
||||||
|
@ -262,6 +265,7 @@ RY Description not working - FIX
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
|
</c:if>
|
||||||
|
|
||||||
</p:process>
|
</p:process>
|
||||||
|
|
||||||
|
@ -275,7 +279,8 @@ RY Description not working - FIX
|
||||||
|
|
||||||
<p:process>
|
<p:process>
|
||||||
<%-- Citation, if no thumbnail --%>
|
<%-- Citation, if no thumbnail --%>
|
||||||
<div id="dprop-vitro-citation" class="propsItem ${editingClass}" style="display:block;">
|
<c:if test="${empty entity.imageThumb}">
|
||||||
|
<div id="dprop-vitro-citation" class="propsItem ${editingClass}">
|
||||||
<c:if test="${showEdits}">
|
<c:if test="${showEdits}">
|
||||||
<h3 class="propertyName">citation</h3>
|
<h3 class="propertyName">citation</h3>
|
||||||
<edLnk:editLinks item="<%= VitroVocabulary.CITATION %>" icons="false"/>
|
<edLnk:editLinks item="<%= VitroVocabulary.CITATION %>" icons="false"/>
|
||||||
|
@ -294,6 +299,7 @@ RY Description not working - FIX
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
|
</c:if>
|
||||||
<c:if test="${!empty entity.keywordString}">
|
<c:if test="${!empty entity.keywordString}">
|
||||||
<p id="keywords">Keywords: ${entity.keywordString}</p>
|
<p id="keywords">Keywords: ${entity.keywordString}</p>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
Loading…
Add table
Reference in a new issue