Skip to content

Commit 6633d61

Browse files
committed
Merge remote-tracking branch 'upstream/master' into selectFilesDlg
* upstream/master: (188 commits) Show file description only if not empty Add file description to gui and fix sync bug (#3210) Don't highlight odd rows in file list editor (#3223) Fix assertion by removing typo (#3220) Update assertion to change of online reference (#3221) Put in null return Reformatted code, renamed method, added try/catch Add tests for removal changes Improve telemetry (#3218) Real test linking real other entry (#3214) Check for explicit group at different location Update java-string-similarity from 0.24 -> 1.0.0 Only remove ExplicitGroups from entries, but not keyword-based groups Localization: French: Translation of a new string (#3212) Fix null return Changed from Path to Optional<Path> Fix #2775: Hyphens in last names are properly parsed (#3209) Followup to Issue #3167 (#3202) Remove unused import in GroupTreeNode Move getEntriesInGroup to GroupTreeNode ...
2 parents dfde523 + b0489d5 commit 6633d61

File tree

201 files changed

+5425
-3224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+5425
-3224
lines changed

.gitignore

Lines changed: 198 additions & 120 deletions
Large diffs are not rendered by default.

.mailmap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,8 @@ Anita Armbruster <[email protected]>
121121
Fabian Bauer <[email protected]>
122122
Jong-Ho Shinn <[email protected]>
123123
Nadeem Mahmood <[email protected]>
124+
Foivos Christoulakis <[email protected]>
125+
Predrag Milanovic <[email protected]>
126+
Karsten Hiekmann <[email protected]>
127+
Andrew Levit <[email protected]>
128+

AUTHORS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Alexsandro Lauber
1212
Ali Ayan
1313
Ambrogio Oliva
1414
Andreas Amann
15+
Andreas Buhr
1516
Andreas Rudert
17+
Andrew Levit
1618
Anh Nghia Tran
1719
Anita Armbruster
1820
Antonio Ribeiro
@@ -56,6 +58,7 @@ Felix Langner
5658
Felix Wilke
5759
Fernando Santagata
5860
Florian Straßer
61+
Foivos Christoulakis
5962
Francois Charette
6063
Frank Steimle
6164
Fred
@@ -89,6 +92,7 @@ Jörg Zieren
8992
Jørgen Kvalsvik
9093
Jürgen Lange
9194
Kai Mindermann
95+
Karsten Hiekmann
9296
Koji Yokota
9397
Kolja Brix
9498
Krunoslav Zubrinic
@@ -121,7 +125,6 @@ Michel Baylac
121125
Mike Smoot
122126
Moritz Ringler
123127
Morten Alver
124-
mpele
125128
Mélanie Tremblay
126129
Nadeem Mahmood
127130
Nathan Dunn
@@ -140,6 +143,7 @@ Paul Martin
140143
payload
141144
Peter Ansell
142145
Philip Johnson
146+
Predrag Milanovic
143147
Raik Nagel
144148
Renato Massao
145149
Robert Jäschke

CHANGELOG.md

Lines changed: 61 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,45 @@ Here, the categories "Changed" for added and changed functionality,
88

99
We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#NUM`.
1010

11+
1112
## [Unreleased]
1213

1314
### Changed
1415

15-
- If fetched article is already in database, then the entry merge dialog is shown.
16-
- An error message is now displayed if you try to create a group containing the keyword separator or if there is already a group with the same name. [#3075](https://github.com/JabRef/jabref/issues/3075) and [#1495](https://github.com/JabRef/jabref/issues/1495)
16+
- We add a textArea to see versionInfo in the About JabRef Dialog.[#2942](https://github.com/JabRef/jabref/issues/2942)
17+
- We turned the validation feature in the entry editor off by default, because of a bug in the library we have been using [#3145](https://github.com/JabRef/jabref/issues/3145)
18+
- Added 'Filter All' and 'Filter None' buttons with corresponding functionality to Quality Check tool.
19+
- We increased the size of the keywords and file text areas in the entry editor
20+
- When the entry that is currently shown in the entry editor is deleted externally, the editor is now closed automatically [#2946](https://github.com/JabRef/jabref/issues/2946)
21+
- We added reordering of file and link entries in the `General`-Tab [3165, comment](https://github.com/JabRef/jabref/issues/3165#issuecomment-326269715)
22+
- We added autcompletion for the `crossref` field on basis of the BibTeX-key. To accept such an autcompleted key as new entry-link, you have to press <kbd>Enter</kbd> two times, otherwise the field data is not stored in the library file.[koppor#257](https://github.com/koppor/jabref/issues/257)
23+
- We added drag and drop support for adding files directly in the `General`-Tab. The dragged files are currently only linked from their existing directory. For more advanced features use the `Add files` dialog. [#koppor#244](https://github.com/koppor/jabref/issues/244)
24+
- We added the file description filed back to the list of files in the `General`-Tab [#2930, comment](https://github.com/JabRef/jabref/issues/2930#issuecomment-328328172)
1725

1826
### Fixed
1927

20-
- We fixed an issue where the fetcher for the Astrophysics Data System (ADS) added some non-bibtex data to the entry returned from the search [#3035](https://github.com/JabRef/jabref/issues/3035)
21-
- We fixed an issue where assigning an entry via drag and drop to a group caused JabRef to stop/freeze completely [#3036](https://github.com/JabRef/jabref/issues/3036)
22-
- We fixed the shortcut <kbd>Ctrl</kbd>+<kbd>F</kbd> for the search field.
23-
- We fixed an issue where the preferences could not be imported without a restart of JabRef [#3064](https://github.com/JabRef/jabref/issues/3064)
24-
- We fixed an issue where <kbd>DEL</kbd>, <kbd>Ctrl</kbd>+<kbd>C</kbd>, <kbd>Ctrl</kbd>+<kbd>V</kbd> and <kbd>Ctrl</kbd>+<kbd>A</kbd> in the search field triggered corresponding actions in the main table [#3067](https://github.com/JabRef/jabref/issues/3067)
25-
28+
- We re-added the "Normalize to BibTeX name format" context menu item [#3136](https://github.com/JabRef/jabref/issues/3136)
29+
- We fixed a memory leak in the source tab of the entry editor [#3113](https://github.com/JabRef/jabref/issues/3113)
30+
- We fixed a [java bug](https://bugs.openjdk.java.net/browse/JDK-8185792) where linux users could not enter accented characters in the entry editor and the search bar [#3028](https://github.com/JabRef/jabref/issues/3028)
31+
- We fixed a regression introduced in v4.0-beta2: A file can be dropped to the entry preview to attach it to the entry [koppor#245](https://github.com/koppor/jabref/issues/245)
32+
- We fixed an issue in the "Replace String" dialog (<kbd>Ctrl</kbd>+<kbd>R</kbd> where search and replace did not work for the `bibtexkey` field. [#3132](https://github.com/JabRef/jabref/issues/3132)
33+
- We fixed an issue in the entry editor where adding a term to a new protected terms list freezed JabRef completely. [#3157](https://github.com/JabRef/jabref/issues/3157)
34+
- We fixed an issue in the "Manage protected terms" dialog where an 'Open file' dialog instead of a 'Save file' dialog was shown when creating a new list. [#3157](https://github.com/JabRef/jabref/issues/3157)
35+
- We fixed an issue where unparseable dates of the FileAnnotations caused the FileAnnotationsTab to crash.
36+
- We fixed an issue where a new protected terms list was not available immediately after its addition. [#3161](https://github.com/JabRef/jabref/issues/3161)
37+
- We fixed an issue where an online file link could not be removed from an entry [#3165](https://github.com/JabRef/jabref/issues/3165)
38+
- We fixed an issue where an online file link did not open the browser and created an error [#3165](https://github.com/JabRef/jabref/issues/3165)
39+
- We fixed an issue where the arrow keys in the search bar did not work as expected [#3081](https://github.com/JabRef/jabref/issues/3081)
40+
- We fixed wrong hotkey being displayed at "automatically file links" in the entry editor
41+
- We fixed an issue where metadata syncing with local and shared database were unstable. It will also fix syncing groups and sub-groups in database. [#2284](https://github.com/JabRef/jabref/issues/2284)
42+
- We fixed an issue where renaming a linked file would fail silently if a file with the same name existed. Added support for overriding existing file at user discretion. [#3172] (https://github.com/JabRef/jabref/issues/3172)
43+
- We fixed an issue where the "Remove group and subgroups" operation did not remove group information from entries in the group [#3190](https://github.com/JabRef/jabref/issues/3190)
44+
- We fixed an issue where it was possible to leave the entry editor with an imbalance of braces. [#3167](https://github.com/JabRef/jabref/issues/3167)
45+
- Renaming files now truncates the filename to not exceed the limit of 255 chars [#2622](https://github.com/JabRef/jabref/issues/2622)
46+
- We improved the handling of hyphens in names. [#2775](https://github.com/JabRef/jabref/issues/2775)
47+
- We fixed an issue where an entered file description was not written to the bib-file [#3208](https://github.com/JabRef/jabref/issues/3208)
2648
### Removed
49+
- We removed support for LatexEditor, as it is not under active development. [#3199](https://github.com/JabRef/jabref/issues/3199)
2750

2851

2952

@@ -74,6 +97,34 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
7497

7598

7699

100+
## [4.0-beta3] – 2017-08-16
101+
102+
### Changed
103+
- We made the font size in the entry editor and group panel customizable by "Menu and label font size". [#3034](https://github.com/JabRef/jabref/issues/3034)
104+
- If fetched article is already in database, then the entry merge dialog is shown.
105+
- An error message is now displayed if you try to create a group containing the keyword separator or if there is already a group with the same name. [#3075](https://github.com/JabRef/jabref/issues/3075) and [#1495](https://github.com/JabRef/jabref/issues/1495)
106+
- The FileAnnotationsTab was re-implemented in JavaFx. [#3082](https://github.com/JabRef/jabref/pull/3082)
107+
- Integrity warnings are now directly displayed in the entry editor.
108+
- We added the functionality to have `regex` as modifier. [#457](https://github.com/JabRef/jabref/issues/457)
109+
110+
### Fixed
111+
112+
- We fixed an issue where the fetcher for the Astrophysics Data System (ADS) added some non-bibtex data to the entry returned from the search [#3035](https://github.com/JabRef/jabref/issues/3035)
113+
- We improved the auto completion so that minor changes are not added as suggestions. [#2998](https://github.com/JabRef/jabref/issues/2998)
114+
- We readded the undo mechanism for changes in the entry editor [#2973](https://github.com/JabRef/jabref/issues/2973)
115+
- We fixed an issue where assigning an entry via drag and drop to a group caused JabRef to stop/freeze completely [#3036](https://github.com/JabRef/jabref/issues/3036)
116+
- We fixed the shortcut <kbd>Ctrl</kbd>+<kbd>F</kbd> for the search field.
117+
- We fixed an issue where `title_case` and `capitalize` modifiers did not work with shorttitle.
118+
- We fixed an issue where the preferences could not be imported without a restart of JabRef [#3064](https://github.com/JabRef/jabref/issues/3064)
119+
- We fixed an issue where <kbd>DEL</kbd>, <kbd>Ctrl</kbd>+<kbd>C</kbd>, <kbd>Ctrl</kbd>+<kbd>V</kbd> and <kbd>Ctrl</kbd>+<kbd>A</kbd> in the search field triggered corresponding actions in the main table [#3067](https://github.com/JabRef/jabref/issues/3067)
120+
- We fixed an issue where JabRef freezed when editing an assigned file in the `General`-Tab [#2930, comment](https://github.com/JabRef/jabref/issues/2930#issuecomment-311050976)
121+
- We fixed an issue where a file could not be assigned to an existing entry via the entry context menu action `Attach file` [#3080](https://github.com/JabRef/jabref/issues/3080)
122+
- We fixed an issue where entry editor was not focused after opening up. [#3052](https://github.com/JabRef/jabref/issues/3052)
123+
- We fixed an issue where changes in the source tab were not stored when selecting a new entry. [#3086](https://github.com/JabRef/jabref/issues/3086)
124+
- We fixed an issue where the other tab was not updated when fields where changed in the source tab. [#3063](https://github.com/JabRef/jabref/issues/3063)
125+
- We fixed an issue where the source tab was not updated after fetching data by DOI. [#3103](https://github.com/JabRef/jabref/issues/3103)
126+
- We fixed an issue where the move to group operation did not remove the entry from other groups [#3101](https://github.com/JabRef/jabref/issues/3101)
127+
- We fixed an issue where the main table was not updated when grouping changes [#1903](https://github.com/JabRef/jabref/issues/1903)
77128

78129
## [4.0-beta2] – 2017-07-18
79130

@@ -905,7 +956,8 @@ Since much functionality has changed during development, a release of this versi
905956

906957
The changelog of 2.11 and versions before is maintained as [text file](https://github.com/JabRef/jabref/blob/v2.11.1/CHANGELOG) in the [v2.11.1 tag](https://github.com/JabRef/jabref/tree/v2.11.1).
907958

908-
[unreleased]: https://github.com/JabRef/jabref/compare/v4.0-beta2...HEAD
959+
[unreleased]: https://github.com/JabRef/jabref/compare/v4.0-beta3...HEAD
960+
[4.0-beta3]: https://github.com/JabRef/jabref/compare/v4.0-beta2...v4.0-beta3
909961
[4.0-beta2]: https://github.com/JabRef/jabref/compare/v4.0-beta...v4.0-beta2
910962
[4.0-beta]: https://github.com/JabRef/jabref/compare/v3.8.2...v4.0-beta
911963
[3.8.2]: https://github.com/JabRef/jabref/compare/v3.8.1...v3.8.2

build.gradle

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ apply from: 'xjc.gradle'
3232

3333
group = "org.jabref"
3434
version = "4.0-dev"
35-
project.ext.threeDotVersion = "4.0.1.1"
35+
project.ext.threeDotVersion = "4.0.2.1"
3636
project.ext.install4jDir = hasProperty("install4jDir") ? getProperty("install4jDir") : (OperatingSystem.current().isWindows() ? 'C:/Program Files/install4j6' : 'install4j6')
3737
sourceCompatibility = 1.8
3838
targetCompatibility = 1.8
@@ -72,7 +72,7 @@ dependencies {
7272
compile 'org.apache.pdfbox:jempbox:1.8.13'
7373

7474
// required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635
75-
compile 'org.bouncycastle:bcprov-jdk15on:1.57'
75+
compile 'org.bouncycastle:bcprov-jdk15on:1.58'
7676

7777
compile 'commons-cli:commons-cli:1.4'
7878

@@ -82,6 +82,7 @@ dependencies {
8282
compile 'org.openoffice:unoil:4.1.2'
8383

8484
compile 'com.github.bkromhout:java-diff-utils:2.1.1'
85+
compile 'info.debatty:java-string-similarity:1.0.0'
8586

8687
antlr3 'org.antlr:antlr:3.5.2'
8788
compile 'org.antlr:antlr-runtime:3.5.2'
@@ -90,35 +91,31 @@ dependencies {
9091
compile 'org.antlr:antlr4-runtime:4.7'
9192

9293
// VersionEye states that 6.0.5 is the most recent version, but http://dev.mysql.com/downloads/connector/j/ shows that as "Development Release"
93-
compile 'mysql:mysql-connector-java:5.1.42'
94+
compile 'mysql:mysql-connector-java:5.1.43'
9495

9596
compile 'com.impossibl.pgjdbc-ng:pgjdbc-ng:0.7.1'
9697

9798
compile 'net.java.dev.glazedlists:glazedlists_java15:1.9.1'
9899

99-
compile 'com.google.guava:guava:22.0'
100+
compile 'com.google.guava:guava:23.0'
100101

101102
// JavaFX stuff
102103
compile 'com.airhacks:afterburner.fx:1.7.0'
103104
compile 'de.codecentric.centerdevice:javafxsvg:1.2.1'
105+
compile 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-4'
106+
compile 'de.saxsys:mvvmfx-validation:1.6.0'
104107
compile 'org.controlsfx:controlsfx:8.40.13'
105108
compile 'org.fxmisc.easybind:easybind:1.0.3'
106-
107109
compile 'org.fxmisc.flowless:flowless:0.5.2'
108-
compile 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-4'
109110
compile 'org.fxmisc.richtext:richtextfx:0.7-M5'
110111

111-
compile 'commons-logging:commons-logging:1.2'
112-
113112
compile 'org.jsoup:jsoup:1.10.3'
114113
compile 'com.mashape.unirest:unirest-java:1.4.9'
115-
compile 'info.debatty:java-string-similarity:0.24'
116114

117-
compile 'org.apache.logging.log4j:log4j-jcl:2.8.2'
118-
compile 'org.apache.logging.log4j:log4j-api:2.8.2'
119-
compile 'org.apache.logging.log4j:log4j-core:2.8.2'
120-
compile 'org.xmlunit:xmlunit-core:2.4.0'
121-
compile 'org.xmlunit:xmlunit-matchers:2.4.0'
115+
compile 'commons-logging:commons-logging:1.2'
116+
compile 'org.apache.logging.log4j:log4j-jcl:2.9.0'
117+
compile 'org.apache.logging.log4j:log4j-api:2.9.0'
118+
compile 'org.apache.logging.log4j:log4j-core:2.9.0'
122119

123120
// need to use snapshots as the stable version is from 2013 and doesn't support v1.0.1 CitationStyles
124121
compile 'org.citationstyles:styles:1.0.1-SNAPSHOT'
@@ -131,11 +128,12 @@ dependencies {
131128
compile group: 'com.microsoft.azure', name: 'applicationinsights-logging-log4j2', version: '1.0.+'
132129

133130
testCompile 'junit:junit:4.12'
134-
testCompile 'org.mockito:mockito-core:2.8.47'
135-
testCompile 'com.github.tomakehurst:wiremock:2.7.0'
136-
testCompile 'org.assertj:assertj-swing-junit:3.7.0'
131+
testCompile 'org.mockito:mockito-core:2.10.0'
132+
testCompile 'com.github.tomakehurst:wiremock:2.8.0'
133+
testCompile 'org.assertj:assertj-swing-junit:3.8.0'
137134
testCompile 'org.reflections:reflections:0.9.11'
138-
135+
testCompile 'org.xmlunit:xmlunit-core:2.5.0'
136+
testCompile 'org.xmlunit:xmlunit-matchers:2.5.0'
139137
testCompile 'com.tngtech.archunit:archunit-junit:0.4.0'
140138
testCompile 'org.slf4j:slf4j-jcl:1.7.25' // required by ArchUnit to enable logging over jcl
141139
}
@@ -153,6 +151,8 @@ sourceSets {
153151
}
154152

155153
processResources {
154+
filteringCharset = 'UTF-8'
155+
156156
filesMatching("build.properties") {
157157
expand(version: project.version,
158158
"year": String.valueOf(Calendar.getInstance().get(Calendar.YEAR)),
@@ -161,7 +161,6 @@ processResources {
161161
"azureInstrumentationKey": System.getenv('AzureInstrumentationKey'))
162162
filteringCharset = 'UTF-8'
163163
}
164-
filteringCharset = 'UTF-8'
165164

166165
filesMatching("resource/**/meta.xml") {
167166
expand version: project.version
@@ -368,19 +367,23 @@ task release(dependsOn: ["media", "releaseJar"]) {
368367
task releaseJar(dependsOn: "shadowJar") {
369368
group = 'JabRef - Release'
370369
description "Creates a Jar release."
371-
372370
doLast {
373371
copy {
374372
from("$buildDir/libs/JabRef-${project.version}-fat.jar")
375373
into("$buildDir/releases")
376-
377374
rename { String fileName ->
378375
fileName.replace('-fat', '')
379376
}
380377
}
378+
// set executable with read permissions (first true) and for all (false)
379+
file("$buildDir/releases/JabRef-${project.version}.jar").setExecutable(true, false);
381380
}
382381
}
383382

383+
task snapJar(dependsOn: "releaseJar", type: Delete) {
384+
delete fileTree(dir: "$buildDir/releases/", exclude: "JabRef-${project.version}.jar")
385+
}
386+
384387
jmh {
385388
warmupIterations = 5
386389
iterations = 10
13.8 KB
Loading

buildres/snapcraft/jabref.desktop

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Desktop Entry]
2+
Name=JabRef
3+
GenericName=BibTeX Editor
4+
Comment=JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.
5+
Type=Application
6+
Terminal=false
7+
Icon=${SNAP}/meta/gui/JabRef-icon-256.png
8+
Exec=jabref %U
9+
Keywords=bibtex;biblatex;latex;bibliography
10+
Categories=Office;
11+
StartupWMClass=org-jabref-JabRefMain
12+
MimeType=text/x-bibtex;

config/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
1. Press <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>S</kbd>
44
2. Go to "Editor > Code Style"
5-
3. Click "Manage..." (right of "Scheme:")
6-
4. Click "Import..."
7-
5. Choose `IntelliJ Code Style.xml`
8-
6. Press "OK"
5+
3. Click the gear (right of "Scheme: ...")
6+
4. Click "Import Scheme >"
7+
5. Choose `IntelliJ IDEA code style XML`
8+
6. Select the file `config\IntelliJ Code Style.xml`
99
7. Press "OK"
10-
8. Press "Close"
11-
9. Press "OK"
10+
8. Press "OK"
11+
9. Press "Close"
12+
10. Press "OK"
1213

1314
* Please let `.editorconfig` override the settings of IntelliJ

0 commit comments

Comments
 (0)