NIHVIVO-646 Fix fatal errors in author list display

This commit is contained in:
rjy7 2010-06-16 14:29:54 +00:00
parent e620247946
commit 1577753b83

View file

@ -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);