NIHVIVO-765 Call reorder when loading add authors form, to prevent problems when adding a new author and the last existing author is unranked.
This commit is contained in:
parent
9944d56635
commit
bd5acb1ef0
2 changed files with 121 additions and 94 deletions
|
@ -362,6 +362,8 @@ SPARQL queries for existing values. --%>
|
|||
|
||||
// A new author will be ranked last when added.
|
||||
// This wouldn't handle gaps in the ranking: vreq.setAttribute("rank", authorships.size()+1);
|
||||
// This value is now inserted by JavaScript, but leave it here as a safety net in case page
|
||||
// load reordering returns an error.
|
||||
request.setAttribute("newRank", maxRank + 1);
|
||||
request.setAttribute("rankPred", rankPredicateUri);
|
||||
%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue