VIVO-662 Remove duplicate rows from the SPARQL query results.

Two rows are considered to be duplicates if they have the same authorshipURI or the same authorURI.
This commit is contained in:
j2blake 2014-01-09 17:27:30 -05:00
parent d3dab78fa3
commit 1d0f2a917c

View file

@ -378,6 +378,7 @@ public class AddAuthorsToInformationResourceGenerator extends VivoBaseGenerator
} catch (Exception e) {
log.error(e, e);
}
authorships = QueryUtils.removeDuplicatesMapsFromList(authorships, "authorShipURI", "authorURI");
log.debug("authorships = " + authorships);
return getAuthorshipInfo(authorships);
}