private Map getRecordMap(Submission submission){
Map map= new HashMap();
Study study=submission.getStudy();
Citation citation=study.getCitation();
String publisher=null;
if(!study.isPublished())return null;
//System.out.println("ctype: "+citation.getCitationType());
try{
if(citation.getCitationType().toUpperCase().contains("BOOK"))
publisher=((BookCitation)citation).getPublisher();
else publisher=((ArticleCitation)citation).getJournal();
List<Person> authors=citation.getAuthors();
map.put("title", citation.getTitle());
map.put("creator", authors);
map.put("subject", citation.getKeywords());
if(study.getName()!=null&study.getNotes()!=null)
map.put("description", study.getName()+" "+study.getNotes());
else if(study.getNotes()==null)
map.put("description",study.getName());
else
map.put("description",study.getNotes());
map.put("publisher", publisher);
map.put("date", citation.getPublishYear());
map.put("identifier", "TreeBASE.org/study/TB2:s"+study.getId());
map.put("datestamp", study.getReleaseDate());
}catch(NullPointerException e){
//study 253 citation= null, data should be fixed