1. csv for coauthors list for each year had a trailing separator. modified the code to remove that.
This commit is contained in:
parent
32f9572442
commit
6e44ac29b6
1 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,7 @@ import javax.servlet.ServletException;
|
|||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
|
||||
import com.hp.hpl.jena.query.DataSource;
|
||||
|
@ -252,10 +253,13 @@ public class VisualizationRequestHandler {
|
|||
|
||||
StringBuilder coAuthorsMerged = new StringBuilder();
|
||||
|
||||
String coAuthorSeparator = "; ";
|
||||
for (Node currCoAuthor : coAuthors) {
|
||||
coAuthorsMerged.append(currCoAuthor.getNodeName() + "; ");
|
||||
coAuthorsMerged.append(currCoAuthor.getNodeName() + coAuthorSeparator);
|
||||
}
|
||||
|
||||
StringUtils.removeEnd(coAuthorsMerged.toString(), coAuthorSeparator);
|
||||
|
||||
return coAuthorsMerged.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue