Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite code of MedlineImporter #9673

Merged
merged 8 commits into from
Mar 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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"
koppor marked this conversation as resolved.
Show resolved Hide resolved
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