NIHVIVO-646 Fix fatal errors in author list display
This commit is contained in:
parent
e620247946
commit
1577753b83
1 changed files with 3 additions and 3 deletions
|
@ -266,9 +266,9 @@ SPARQL queries for existing values. --%>
|
|||
|
||||
<ul id="authors">
|
||||
<%
|
||||
String rank;
|
||||
int rank = 0;
|
||||
for ( Individual authorship : authorships ) {
|
||||
rank = authorship.getDataValue(rankUri);
|
||||
rank = Integer.valueOf(authorship.getDataValue(rankUri));
|
||||
Individual author = authorship.getRelatedIndividual(linkedAuthorProperty);
|
||||
if ( author != null ) {
|
||||
request.setAttribute("author", author);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue