From 1d0f2a917c58703f969548d13b57e96ee972ab87 Mon Sep 17 00:00:00 2001 From: j2blake Date: Thu, 9 Jan 2014 17:27:30 -0500 Subject: [PATCH] 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. --- .../generators/AddAuthorsToInformationResourceGenerator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java index 681ad650..a91f9075 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java +++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java @@ -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); }