super(thesis);
}
@Override
protected void fillThesisInfo() {
Thesis thesis = getThesis();
ThesisFile file = thesis.getDissertation();
if (file != null) {
addParameter("thesisTitle", file.getTitle());
addParameter("thesisSubtitle", neverNull(file.getSubTitle()));
addParameter("thesisLanguage", getLanguage(file));
} else {
addParameter("thesisTitle", thesis.getTitle().getContent());
addParameter("thesisSubtitle", EMPTY_STR);
addParameter("thesisLanguage", EMPTY_STR);
}
String date = null;
DateTime discussion = thesis.getDiscussed();
if (discussion != null) {
date = String.format(new Locale("pt"), "%1$td/%1$tm/%1$tY", discussion.toDate());
}
addParameter("discussion", neverNull(date));
int index = 0;
for (String keyword : splitKeywords(thesis.getKeywordsPt())) {
addParameter("keywordPt" + index++, keyword);
}
while (index < 6) {
addParameter("keywordPt" + index++, EMPTY_STR);
}
index = 0;
for (String keyword : splitKeywords(thesis.getKeywordsEn())) {
addParameter("keywordEn" + index++, keyword);
}
while (index < 6) {
addParameter("keywordEn" + index++, EMPTY_STR);
}
addParameter("keywordsPt", thesis.getKeywordsPt());
addParameter("keywordsEn", thesis.getKeywordsEn());
addParameter("abstractPt", neverNull(thesis.getThesisAbstractPt()));
addParameter("abstractEn", neverNull(thesis.getThesisAbstractEn()));
}