NIHVIVO-646 Handle authorships with no linked author in add authors to publication form.
This commit is contained in:
parent
e44bbf3929
commit
2a88ff8308
2 changed files with 20 additions and 17 deletions
|
@ -344,6 +344,9 @@ SPARQL queries for existing values. --%>
|
||||||
<%-- span.author will be used in the next phase, when we display a message that the author has been
|
<%-- span.author will be used in the next phase, when we display a message that the author has been
|
||||||
removed. That text will replace the a.authorLink, which will be removed. --%>
|
removed. That text will replace the a.authorLink, which will be removed. --%>
|
||||||
<span class="author">
|
<span class="author">
|
||||||
|
<%-- This span is here to assign a width to. We can't assign directly to the a.authorLink,
|
||||||
|
for the case when it's followed by an em tag - we want the width to apply to the whole thing. --%>
|
||||||
|
<span class="authorLinkWrapper">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${!empty author}">
|
<c:when test="${!empty author}">
|
||||||
<c:url var="authorHref" value="/individual">
|
<c:url var="authorHref" value="/individual">
|
||||||
|
@ -356,10 +359,10 @@ SPARQL queries for existing values. --%>
|
||||||
<c:url var="authorshipHref" value="/individual">
|
<c:url var="authorshipHref" value="/individual">
|
||||||
<c:param name="uri" value="${authorshipUri}"/>
|
<c:param name="uri" value="${authorshipUri}"/>
|
||||||
</c:url>
|
</c:url>
|
||||||
<a href="${authorshipHref}" id="${authorshipUri}" class="authorLink">${authorshipName}<em> (no linked author)</em></a>
|
<a href="${authorshipHref}" id="${authorshipUri}" class="authorLink">${authorshipName}</a><em> (no linked author)</em>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
|
</span>
|
||||||
<c:url var="deleteAuthorshipHref" value="/edit/primitiveDelete" />
|
<c:url var="deleteAuthorshipHref" value="/edit/primitiveDelete" />
|
||||||
<a href="${deleteAuthorshipHref}" class="remove">Remove</a>
|
<a href="${deleteAuthorshipHref}" class="remove">Remove</a>
|
||||||
<%-- <a href="${undoHref}" class="undo">Undo</a> --%>
|
<%-- <a href="${undoHref}" class="undo">Undo</a> --%>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
background: url("../images/sortable_icon.png") no-repeat left center;
|
background: url("../images/sortable_icon.png") no-repeat left center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#authorships a.authorLink {
|
#authorships .authorLinkWrapper {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 15em;
|
width: 15em;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue