private static SeadPerson getSubmitter(SolrDocument doc) { SeadPerson submitter = new SeadPerson(); String name = getFirst(doc, SeadSolrField.SubmitterField.NAME); String id = getFirst(doc, SeadSolrField.SubmitterField.SUBMITTERID); String type = getFirst(doc, SeadSolrField.SubmitterField.SUBMITTERIDTYPE); submitter.setName(name); submitter.setId(id); submitter.setIdType(type); return submitter; }
private static Set<SeadPerson> getCreatorSet(SolrDocument doc) { Set<SeadPerson> set = new HashSet<SeadPerson>(); String[] names = setgetAll(doc, SeadSolrField.CreatorField.NAME); String[] ids = setgetAll(doc, SeadSolrField.CreatorField.CREATORID); String[] types = setgetAll(doc, SeadSolrField.CreatorField.CREATORIDTYPE); for (int i = 0; i < names.length; i++) { SeadPerson cr = new SeadPerson(); cr.setName(names[i]); cr.setId(ids[i]); cr.setIdType(types[i]); set.add(cr); } return set; }