Commit 5c738e34 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

put info about author name only if it's available

parent a477f51f
......@@ -320,8 +320,12 @@ public class XmlAnnotationParser {
result.append("<rdf:Bag>\n");
result.append("<rdf:li rdf:parseType=\"Resource\">\n");
result.append("<vCard:N rdf:parseType=\"Resource\">\n");
result.append("<vCard:Family>" + XmlParser.escapeXml(author.getLastName()) + "</vCard:Family>\n");
result.append("<vCard:Given>" + XmlParser.escapeXml(author.getFirstName()) + "</vCard:Given>\n");
if (author.getLastName() != null) {
result.append("<vCard:Family>" + XmlParser.escapeXml(author.getLastName()) + "</vCard:Family>\n");
}
if (author.getFirstName() != null) {
result.append("<vCard:Given>" + XmlParser.escapeXml(author.getFirstName()) + "</vCard:Given>\n");
}
result.append("</vCard:N>\n");
if (author.getEmail() != null && !author.getEmail().trim().isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment