Skip to content

Commit

Permalink
Rewrite code of MedlineImporter (#9673)
Browse files Browse the repository at this point in the history
  • Loading branch information
aqurilla authored Mar 18, 2023
1 parent 2cd0082 commit 23a0c44
Show file tree
Hide file tree
Showing 12 changed files with 1,677 additions and 733 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- 'Get full text' now also checks the file url. [#568](https://github.com/koppor/jabref/issues/568)
- We refined the 'main directory not found' error message. [#9625](https://github.com/JabRef/jabref/pull/9625)
- We modified the `Add Group` dialog to use the most recently selected group hierarchical context [#9141](https://github.com/JabRef/jabref/issues/9141)
- We improved the Medline importer to correctly import ISO dates for `revised`. [#9536](https://github.com/JabRef/jabref/issues/9536)



Expand Down
10 changes: 0 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ processResources {

task generateSource(dependsOn: ["generateBstGrammarSource",
"generateSearchGrammarSource",
"generateMedlineSource",
"generateBibtexmlSource",
"generateEndnoteSource",
"generateModsSource",
Expand Down Expand Up @@ -290,15 +289,6 @@ tasks.register("generateSearchGrammarSource", JavaExec) {
args = ["-o","src-gen/main/java/org/jabref/search" , "-visitor", "-no-listener", "-package", "org.jabref.search", "$projectDir/src/main/antlr4/org/jabref/search/Search.g4"]
}

task generateMedlineSource(type: XjcTask) {
group = 'JabRef'
description = "Generates java files for the medline importer."

schemaFile = "src/main/resources/xjc/medline/medline.xsd"
outputDirectory = "src-gen/main/java"
javaPackage = "org.jabref.logic.importer.fileformat.medline"
}

task generateBibtexmlSource(type: XjcTask) {
group = 'JabRef'
description = "Generates java files for the bibtexml importer."
Expand Down
1,365 changes: 957 additions & 408 deletions src/main/java/org/jabref/logic/importer/fileformat/MedlineImporter.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.jabref.logic.importer.fileformat.medline;

public record ArticleId(
String idType,
String content
) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.jabref.logic.importer.fileformat.medline;

import java.util.List;

public record Investigator(
String lastName,
String foreName,
List<String> affiliationList
) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.jabref.logic.importer.fileformat.medline;

import java.util.List;

public record MeshHeading(
String descriptorName,
List<String> qualifierNames
) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.jabref.logic.importer.fileformat.medline;

public record OtherId(
String source,
String content
) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.jabref.logic.importer.fileformat.medline;

public record PersonalNameSubject(
String lastName,
String foreName
) {
}
314 changes: 0 additions & 314 deletions src/main/resources/xjc/medline/medline.xsd

This file was deleted.

Loading

0 comments on commit 23a0c44

Please sign in to comment.