Revision 48944
Added by Tsampikos Livisianos almost 7 years ago
modules/dnet-openaire-lodexport/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/lodExport/utils/Serializer.java | ||
---|---|---|
10 | 10 |
import eu.dnetlib.data.proto.OafProtos.OafRel; |
11 | 11 |
import eu.dnetlib.data.proto.OrganizationProtos.Organization; |
12 | 12 |
//import eu.dnetlib.data.proto.PersonProtos; |
13 |
import eu.dnetlib.data.proto.PersonProtos; |
|
13 | 14 |
import eu.dnetlib.data.proto.ProjectProtos.Project; |
14 | 15 |
import eu.dnetlib.data.proto.ResultProtos.Result; |
15 | 16 |
import eu.dnetlib.data.proto.ResultProtos.Result.Instance; |
... | ... | |
492 | 493 |
buff.append(getTrust(data)).append(DELIM); |
493 | 494 |
|
494 | 495 |
//Authors |
495 |
/* |
|
496 | 496 |
dataStr = " "; |
497 |
for(PersonProtos.Person p : data.getResult().getAuthorList()){ |
|
498 |
dataStr += clean(p.getMetadata().getFullname().getValue()) + SEPERATOR; |
|
499 |
} |
|
497 | 500 |
|
498 |
for (StringField author : metadata.getContributorList()) { |
|
499 |
dataStr += clean(author.getValue()) + SEPERATOR; |
|
500 |
} |
|
501 | 501 |
buff.append(dataStr).append(DELIM); |
502 |
*/ |
|
503 | 502 |
|
504 | 503 |
return buff.toString(); |
505 | 504 |
} |
Also available in: Unified diff
include author names in result csv