Small modification to the way styles are assigned to authors in author listing on add authors form
This commit is contained in:
parent
79cf12f974
commit
03f2cdcf8c
3 changed files with 11 additions and 15 deletions
|
@ -308,7 +308,7 @@ SPARQL queries for existing values. --%>
|
||||||
Collections.sort(authorships, comp);
|
Collections.sort(authorships, comp);
|
||||||
|
|
||||||
int maxRank = 0;
|
int maxRank = 0;
|
||||||
int authorshipCount = 0;
|
int authorshipCount = authorships.size();
|
||||||
|
|
||||||
// for ( ObjectPropertyStatement stmt : authorshipStmts) {
|
// for ( ObjectPropertyStatement stmt : authorshipStmts) {
|
||||||
// Individual authorship = stmt.getObject();
|
// Individual authorship = stmt.getObject();
|
||||||
|
@ -319,7 +319,6 @@ SPARQL queries for existing values. --%>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
for ( Individual authorship : authorships ) {
|
for ( Individual authorship : authorships ) {
|
||||||
authorshipCount++;
|
|
||||||
|
|
||||||
request.setAttribute("authorshipUri", authorship.getURI());
|
request.setAttribute("authorshipUri", authorship.getURI());
|
||||||
request.setAttribute("authorshipName", authorship.getName());
|
request.setAttribute("authorshipName", authorship.getName());
|
||||||
|
@ -339,7 +338,8 @@ SPARQL queries for existing values. --%>
|
||||||
request.setAttribute("rankValue", rankValue);
|
request.setAttribute("rankValue", rankValue);
|
||||||
request.setAttribute("numericRank", numericRank);
|
request.setAttribute("numericRank", numericRank);
|
||||||
|
|
||||||
request.setAttribute("author", authorship.getRelatedIndividual(vivoCore + "linkedAuthor"));
|
request.setAttribute("author", authorship.getRelatedIndividual(vivoCore + "linkedAuthor"));
|
||||||
|
|
||||||
%>
|
%>
|
||||||
<li class="authorship">
|
<li class="authorship">
|
||||||
<%-- 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
|
||||||
|
|
|
@ -9,10 +9,10 @@
|
||||||
margin-bottom: .75em;
|
margin-bottom: .75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#authorships.dd li,
|
#authorships li.dd {
|
||||||
#authorships.ui-sortable li {
|
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
background: url("../images/sortable_icon.png") no-repeat left center;
|
background: url("../images/sortable_icon.png") no-repeat left center;
|
||||||
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|
||||||
#authorships .authorNameWrapper {
|
#authorships .authorNameWrapper {
|
||||||
|
@ -20,10 +20,6 @@
|
||||||
width: 15em;
|
width: 15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#authorships.dd li {
|
|
||||||
cursor: move;
|
|
||||||
}
|
|
||||||
|
|
||||||
#showAddForm span.or {
|
#showAddForm span.or {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,7 +223,6 @@ var addAuthorForm = {
|
||||||
// or click on the selection with the mouse. This appears to confuse some users.
|
// or click on the selection with the mouse. This appears to confuse some users.
|
||||||
select: function(event, ui) {
|
select: function(event, ui) {
|
||||||
addAuthorForm.showSelectedAuthor(ui);
|
addAuthorForm.showSelectedAuthor(ui);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -309,6 +308,8 @@ var addAuthorForm = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
authorships.addClass('dd');
|
||||||
|
|
||||||
$('.authorNameWrapper').each(function() {
|
$('.authorNameWrapper').each(function() {
|
||||||
$(this).attr('title', 'Drag and drop to reorder authors');
|
$(this).attr('title', 'Drag and drop to reorder authors');
|
||||||
});
|
});
|
||||||
|
@ -662,10 +663,9 @@ var addAuthorForm = {
|
||||||
authorships.sortable({ disable: true } );
|
authorships.sortable({ disable: true } );
|
||||||
authorships.removeClass('dd');
|
authorships.removeClass('dd');
|
||||||
|
|
||||||
authorship.css('background', 'none');
|
authorship.removeClass('dd');
|
||||||
authorship.css('padding-left', '0');
|
|
||||||
|
authorNameWrapper.removeAttr('title');
|
||||||
authorNameWrapper.attr('title', '');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// RY To be implemented later.
|
// RY To be implemented later.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue