Skip to content

Commit 79b8197

Browse files
committed
Try to normalize month
1 parent ec47f21 commit 79b8197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystem.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import org.jabref.logic.cleanup.MoveFieldCleanup;
1616
import org.jabref.logic.formatter.bibtexfields.ClearFormatter;
17+
import org.jabref.logic.formatter.bibtexfields.NormalizeMonthFormatter;
1718
import org.jabref.logic.formatter.bibtexfields.NormalizeNamesFormatter;
1819
import org.jabref.logic.formatter.bibtexfields.RemoveBracesFormatter;
1920
import org.jabref.logic.formatter.bibtexfields.RemoveNewlinesFormatter;
@@ -143,6 +144,7 @@ public void doPostCleanup(BibEntry entry) {
143144
new FieldFormatterCleanup(StandardField.ABSTRACT, new RemoveNewlinesFormatter()).cleanup(entry);
144145
new FieldFormatterCleanup(StandardField.TITLE, new RemoveBracesFormatter()).cleanup(entry);
145146
new FieldFormatterCleanup(StandardField.AUTHOR, new NormalizeNamesFormatter()).cleanup(entry);
147+
new FieldFormatterCleanup(StandardField.MONTH, new NormalizeMonthFormatter()).cleanup(entry);
146148

147149
// Remove ADS note
148150
new FieldFormatterCleanup(new UnknownField("adsnote"), new ClearFormatter()).cleanup(entry);
@@ -249,7 +251,6 @@ public Optional<BibEntry> performSearchById(String identifier) throws FetcherExc
249251
* bibcodes
250252
*/
251253
private List<BibEntry> performSearchByIds(Collection<String> identifiers) throws FetcherException {
252-
253254
List<String> ids = identifiers.stream().filter(identifier -> !StringUtil.isBlank(identifier)).collect(Collectors.toList());
254255
if (ids.isEmpty()) {
255256
return Collections.emptyList();

0 commit comments

Comments
 (0)