use of org.jabref.logic.importer.fileformat.medline.Journal in project jabref by JabRef.
the class MedlineImporter method addArticleInformation.
private void addArticleInformation(Map<String, String> fields, List<Object> content) {
for (Object object : content) {
if (object instanceof Journal) {
Journal journal = (Journal) object;
putIfValueNotNull(fields, FieldName.JOURNAL, journal.getTitle());
ISSN issn = journal.getISSN();
if (issn != null) {
putIfValueNotNull(fields, FieldName.ISSN, issn.getContent());
}
JournalIssue journalIssue = journal.getJournalIssue();
putIfValueNotNull(fields, FieldName.VOLUME, journalIssue.getVolume());
putIfValueNotNull(fields, FieldName.ISSUE, journalIssue.getIssue());
addPubDate(fields, journalIssue.getPubDate());
} else if (object instanceof ArticleTitle) {
ArticleTitle articleTitle = (ArticleTitle) object;
fields.put(FieldName.TITLE, StringUtil.stripBrackets(articleTitle.getContent().toString()));
} else if (object instanceof Pagination) {
Pagination pagination = (Pagination) object;
addPagination(fields, pagination);
} else if (object instanceof ELocationID) {
ELocationID eLocationID = (ELocationID) object;
addElocationID(fields, eLocationID);
} else if (object instanceof Abstract) {
Abstract abs = (Abstract) object;
addAbstract(fields, abs);
} else if (object instanceof AuthorList) {
AuthorList authors = (AuthorList) object;
handleAuthors(fields, authors);
}
}
}
Aggregations