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

Add an importer for Citavi backup files #8848

Merged
merged 45 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
23fd2d2
First draft for citavi
Siedlerchr Apr 14, 2022
4ce0f3a
add 'CitaviXmlImporter.java' first draft, based on endnotexmlimporter.
lishangyu9 Apr 18, 2022
0ddefdf
Add '.ctv6bak' and '.ctv5bak' file type in the file type list.
lishangyu9 Apr 25, 2022
f339dab
Modify the citavi importer, draft of importDatabase()
lishangyu9 Apr 27, 2022
6adf1b6
Modify the citavi importer, draft of isRecognizedFormat()
lishangyu9 Apr 27, 2022
be26116
fix spell error for citavi
lefeimei Apr 27, 2022
1d79364
update getReaderFromZip()
lishangyu9 Apr 27, 2022
9a1e6ff
XSD file for Citavi updated and isRecognizedFormat method updated
lefeimei May 11, 2022
9f14063
update xsd
lishangyu9 May 18, 2022
ffd23b0
update xsd
lishangyu9 May 18, 2022
177930b
update CitaviXmlImporter.java
lishangyu9 May 18, 2022
48ebb0b
update CitaviXmlImporter.java. Add a function to check and delete the…
lishangyu9 May 19, 2022
51d95ee
update xsd file and parseData function in citaviimporter
lefeimei May 19, 2022
1dee43d
Add CitaviXmlImporterTestFiles.java
lishangyu9 May 19, 2022
ec8b195
Merge remote-tracking branch 'origin/citavixml' into citavixml
lishangyu9 May 19, 2022
b72c43c
fix codestyle
lefeimei May 20, 2022
df6cf9c
Merge remote-tracking branch 'origin/citavixml' into citavixml
lefeimei May 20, 2022
c75f0f6
CitaviXmlImporterTestFiles.java update the test functions
lishangyu9 May 20, 2022
6f2ea32
Add test example
lishangyu9 May 20, 2022
bd09c1b
XSD file updated. Importing functions in CitaviXmlImporter updated.
lefeimei May 20, 2022
d13c4f7
Merge remote-tracking branch 'origin/citavixml' into citavixml
lefeimei May 20, 2022
f8e4179
Add clean up for temp file
lishangyu9 May 20, 2022
b97e3cb
Add test files
lishangyu9 May 20, 2022
c4cb2ac
Importing authors' name functionality fixed
lefeimei May 21, 2022
d995c40
Some other fields added
lefeimei May 24, 2022
97e2bdc
fix the author and editor format
lishangyu9 May 24, 2022
571ed8e
Small bug fixed
lefeimei May 24, 2022
8b1e979
fixed the null pointer exception of publishers ,keywords,editors and …
lishangyu9 May 24, 2022
3e52a56
add the test examples.
lishangyu9 May 24, 2022
c65628f
update CHANGELOG.md
lishangyu9 May 25, 2022
4b5d7c3
update CHANGELOG.md
lishangyu9 May 25, 2022
03a6283
Merge branch 'main' into citavixml
lishangyu9 May 25, 2022
c17a6ad
Remove unused import format preferences
Siedlerchr May 25, 2022
fd8ee90
checkstyle
Siedlerchr May 25, 2022
447e7ad
Store knownPersons in a HashMap, for efficient lookup
Siedlerchr May 27, 2022
a4df2cc
checkstyle
Siedlerchr May 27, 2022
3b1823f
remove blank lines
Siedlerchr May 27, 2022
901555e
update the logic to parse Keywords and Publishers.
lishangyu9 May 28, 2022
8953487
Update src/main/java/org/jabref/logic/importer/fileformat/CitaviXmlIm…
lishangyu9 May 30, 2022
9188f9f
Update src/main/java/org/jabref/logic/importer/fileformat/CitaviXmlIm…
lishangyu9 May 30, 2022
6aad659
update CHANGELOG.md
lishangyu9 May 30, 2022
c13816e
Merge remote-tracking branch 'origin/citavixml' into citavixml
lishangyu9 May 30, 2022
53e6f31
delete the optional warp of getPages()
lishangyu9 May 30, 2022
17a254e
delete the JavaDoc lines
lishangyu9 Jun 1, 2022
41f7bfb
add an empty line between varable declaration and method.
lishangyu9 Jun 1, 2022
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 @@ -14,6 +14,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We added a fetcher for [Biodiversity Heritage Library](https://www.biodiversitylibrary.org/). [8539](https://github.com/JabRef/jabref/issues/8539)
- We added support for multiple messages in the snackbar. [#7340](https://github.com/JabRef/jabref/issues/7340)
- JabRef now writes log files. Linux: `$home/.cache/jabref/logs/version`, Windows: `%APPDATA%\..\Local\harawata\jabref\version\logs`, Mac: `Users/.../Library/Logs/jabref/version`
- We added an importer for Citavi backup files, support ".ctv5bak" and ".ctv6bak" file formats. [#8322](https://github.com/JabRef/jabref/issues/8322)

### Changed

Expand Down
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ task generateSource(dependsOn: ["generateBstGrammarSource",
"generateMedlineSource",
"generateBibtexmlSource",
"generateEndnoteSource",
"generateModsSource"]) {
"generateModsSource",
"generateCitaviSource"]) {
group = 'JabRef'
description 'Generates all necessary (Java) source files.'
}
Expand Down Expand Up @@ -319,6 +320,15 @@ task generateEndnoteSource(type: XjcTask) {
javaPackage = "org.jabref.logic.importer.fileformat.endnote"
}

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

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

task generateModsSource(type: XjcTask) {
group = 'JabRef'
description = "Generates java files for the mods importer."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.jabref.logic.importer.fileformat.BiblioscapeImporter;
import org.jabref.logic.importer.fileformat.BibtexImporter;
import org.jabref.logic.importer.fileformat.CffImporter;
import org.jabref.logic.importer.fileformat.CitaviXmlImporter;
import org.jabref.logic.importer.fileformat.CopacImporter;
import org.jabref.logic.importer.fileformat.EndnoteImporter;
import org.jabref.logic.importer.fileformat.EndnoteXmlImporter;
Expand Down Expand Up @@ -84,6 +85,7 @@ public void resetImportFormats(ImporterPreferences importerPreferences, GeneralP
formats.add(new CffImporter());
formats.add(new BiblioscapeImporter());
formats.add(new BibtexImporter(importFormatPreferences, fileMonitor));
formats.add(new CitaviXmlImporter());

// Get custom import formats
formats.addAll(importFormatPreferences.getCustomImportList());
Expand Down
Loading