Skip to content

Commit ab48a98

Browse files
committed
Merge remote-tracking branch 'upstream/master' into changemergesdialog
# By Tobias Diez (11) and others # Via GitHub (1) and Tobias Diez (1) * upstream/master: (29 commits) Improve things arround change detection (#5770) Revert "Update to most recent journal abbreviation list" (#5769) Various fixes to the dark theme (#5764) Bump mockito-core from 3.2.0 to 3.2.4 (#5760) Bump classgraph from 4.8.58 to 4.8.59 (#5761) Improve dependency update rules Update jpackage to build 27 (#5758) Persistent column sortorder (#5730) Fix medline fetcher/importer when using installer (#5752) New Crowdin translations (#5751) Bump byte-buddy-parent from 1.10.4 to 1.10.5 (#5750) Fix checkstyle Fix filename Update to most recent journal abbreviation list Remove obsolete string Revert "Switch back to development" Switch back to development Next development cycle Release 5.0-beta (#5684) Fix multiple entries allowed in crossref (issue #5284) (#5724) ... # Conflicts: # src/main/java/org/jabref/gui/collab/ChangeDisplayDialog.java # src/main/java/org/jabref/gui/collab/EntryChangeViewModel.java
2 parents dd3defe + 6431099 commit ab48a98

Some content is hidden

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

50 files changed

+516
-399
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ AUTHORS text eol=lf
1616
*.bib text !eol
1717

1818
# disable after a release
19-
# CHANGELOG.md merge=union
19+
CHANGELOG.md merge=union
File renamed without changes.

.github/workflows/deployment.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Deployment
22

3-
on: [create, push]
3+
on: [push]
44

55
jobs:
66
deploy:
@@ -11,17 +11,17 @@ jobs:
1111
include:
1212
- os: ubuntu-latest
1313
displayName: linux
14-
jpackageDownload: https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-70_linux-x64_bin.tar.gz
14+
jpackageDownload: https://download.java.net/java/early_access/jdk14/27/GPL/openjdk-14-ea+27_linux-x64_bin.tar.gz
1515
jdk14Path: /jdk-14
1616
archivePortable: tar -czf build/distribution/JabRef-portable_linux.tar.gz -C build/distribution JabRef && rm -R build/distribution/JabRef
1717
- os: windows-latest
1818
displayName: windows
19-
jpackageDownload: https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-70_windows-x64_bin.zip
19+
jpackageDownload: https://download.java.net/java/early_access/jdk14/27/GPL/openjdk-14-ea+27_windows-x64_bin.zip
2020
jdk14Path: /jdk-14
2121
archivePortable: 7z a -r build/distribution/JabRef-portable_windows.zip ./build/distribution/JabRef && rm -R build/distribution/JabRef
2222
- os: macOS-latest
2323
displayName: macOS
24-
jpackageDownload: https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-70_osx-x64_bin.tar.gz
24+
jpackageDownload: https://download.java.net/java/early_access/jdk14/27/GPL/openjdk-14-ea+27_osx-x64_bin.tar.gz
2525
jdk14Path: /jdk-14.jdk/Contents/Home
2626
archivePortable: tar -czf build/distribution/JabRef-portable_macos.tar.gz -C build/distribution JabRef.app && rm -R build/distribution/JabRef.app
2727

CHANGELOG.md

+17-48
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,31 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
1313

1414
### Changed
1515

16+
### Fixed
17+
18+
- We fixed an issue where the Medline fetcher was only working when JabRef was running from source [#5645](https://github.com/JabRef/jabref/issues/5645)
19+
- We fixed some visual issues in the dark theme [#5764](https://github.com/JabRef/jabref/pull/5764) [#5753](https://github.com/JabRef/jabref/issues/5753)
20+
21+
### Removed
22+
23+
24+
## [5.0-beta] – 2019-12-15
25+
26+
### Changed
27+
1628
- We added a short DOI field formatter which shortens DOI to more human-readable form. [koppor#343](https://github.com/koppor/jabref/issues/343)
1729
- We improved the display of group memberships by adding multiple colored bars if the entry belongs to more than one group. [#4574](https://github.com/JabRef/jabref/issues/4574)
1830
- We added an option to show the preview as an extra tab in the entry editor (instead of in a split view). [#5244](https://github.com/JabRef/jabref/issues/5244)
1931
- A custom Open/LibreOffice jstyle file now requires a layout line for the entry type `default` [#5452](https://github.com/JabRef/jabref/issues/5452)
2032
- The entry editor is now open by default when JabRef starts up. [#5460](https://github.com/JabRef/jabref/issues/5460)
2133
- Customized entry types are now serialized in alphabetical order in the bib file.
22-
- We added a new ADS fetcher to use the new ADS API [#4949](https://github.com/JabRef/jabref/issues/4949)
34+
- We added a new ADS fetcher to use the new ADS API. [#4949](https://github.com/JabRef/jabref/issues/4949)
2335
- We added support of the [X11 primary selection](https://unix.stackexchange.com/a/139193/18033) [#2389](https://github.com/JabRef/jabref/issues/2389)
2436
- We added support to switch between biblatex and bibtex library types. [#5550](https://github.com/JabRef/jabref/issues/5550)
2537
- We changed the save action buttons to be easier to understand. [#5565](https://github.com/JabRef/jabref/issues/5565)
2638
- We made the columns for groups, files and uri in the main table reorderable and merged the clickable icon columns for uri, url, doi and eprint. [#5544](https://github.com/JabRef/jabref/pull/5544)
2739
- We reduced the number of write actions performed when autosave is enabled [#5679](https://github.com/JabRef/jabref/issues/5679)
40+
- We made the column sort order in the main table persistent [#5730](https://github.com/JabRef/jabref/pull/5730)
2841

2942
### Fixed
3043

@@ -64,6 +77,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
6477
- We fixed an exception which occurred when an invalid jstyle was loaded. [#5452](https://github.com/JabRef/jabref/issues/5452)
6578
- We fixed an issue where the command line arguments `importBibtex` and `importToOpen` did not import into the currently open library, but opened a new one. [#5537](https://github.com/JabRef/jabref/issues/5537)
6679
- We fixed an error where the preview theme did not adapt to the "Dark" mode [#5463](https://github.com/JabRef/jabref/issues/5463)
80+
- We fixed an issue where multiple entries were allowed in the "crossref" field [#5284](https://github.com/JabRef/jabref/issues/5284)
6781
- We fixed an issue where the merge dialog showed the wrong text colour in "Dark" mode [#5516](https://github.com/JabRef/jabref/issues/5516)
6882
- We fixed visibility issues with the scrollbar and group selection highlight in "Dark" mode, and enabled "Dark" mode for the OpenOffice preview in the style selection window. [#5522](https://github.com/JabRef/jabref/issues/5522)
6983
- We fixed an issue where the author field was not correctly parsed during bibtex key-generation. [#5551](https://github.com/JabRef/jabref/issues/5551)
@@ -83,52 +97,6 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
8397
- We removed the option to control the default drag and drop behaviour. You can use the modifier keys (like CtrL or Alt) instead.
8498

8599

86-
87-
88-
89-
90-
91-
92-
93-
94-
95-
96-
97-
98-
99-
100-
101-
102-
103-
104-
105-
106-
107-
108-
109-
110-
111-
112-
113-
114-
115-
116-
117-
118-
119-
120-
121-
122-
123-
124-
125-
126-
127-
128-
129-
130-
131-
132100
## [5.0-alpha] – 2019-08-25
133101

134102
### Changed
@@ -283,5 +251,6 @@ The changelog of JabRef 4.x is available at the [v4.x branch](https://github.com
283251
The changelog of JabRef 3.x is available at the [v3.8.2 tag](https://github.com/JabRef/jabref/blob/v3.8.2/CHANGELOG.md).
284252
The changelog of JabRef 2.11 and all previous versions is available as [text file in the v2.11.1 tag](https://github.com/JabRef/jabref/blob/v2.11.1/CHANGELOG).
285253

286-
[Unreleased]: https://github.com/JabRef/jabref/compare/v5.0-alpha...HEAD
254+
[Unreleased]: https://github.com/JabRef/jabref/compare/v5.0-beta...HEAD
255+
[5.0-beta]: https://github.com/JabRef/jabref/compare/v5.0-alpha...v5.0-beta
287256
[5.0-alpha]: https://github.com/JabRef/jabref/compare/v4.3...v5.0-alpha

GitVersion.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
assembly-versioning-format: '{major}.{minor}.{WeightedPreReleaseNumber}'
22
assembly-informational-format: '{major}.{minor}{PreReleaseTagWithDash}--{CommitDate}--{ShortSha}'
3+
mode: ContinuousDeployment
34

45
branches:
56
master:
67
regex: ^master
7-
mode: ContinuousDelivery
88
tag: beta
9-
increment: Minor
109
pre-release-weight: 30000 # 0 after stable release, 15000 before alpha release, 30000 before beta release, 50000 before stable release

build.gradle

+23-13
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ dependencies {
206206
}
207207

208208

209-
testCompile 'io.github.classgraph:classgraph:4.8.58'
209+
testCompile 'io.github.classgraph:classgraph:4.8.59'
210210
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.2'
211211
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.5.2'
212212
testCompile 'org.junit.platform:junit-platform-launcher:1.5.2'
213213

214-
testCompile 'net.bytebuddy:byte-buddy-parent:1.10.4'
214+
testCompile 'net.bytebuddy:byte-buddy-parent:1.10.5'
215215
testRuntime group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT'
216216
testRuntime group: 'org.apache.logging.log4j', name: 'log4j-jul', version: '3.0.0-SNAPSHOT'
217-
testCompile 'org.mockito:mockito-core:3.2.0'
217+
testCompile 'org.mockito:mockito-core:3.2.4'
218218
//testCompile 'com.github.tomakehurst:wiremock:2.24.1'
219219
testCompile 'org.xmlunit:xmlunit-core:2.6.3'
220220
testCompile 'org.xmlunit:xmlunit-matchers:2.6.3'
@@ -249,20 +249,29 @@ dependencyUpdates.resolutionStrategy = {
249249
selection.reject('Release candidate')
250250
}
251251
}
252-
rules.withModule("com.github.tomtung:latex2unicode_2.12") { ComponentSelection selection ->
253-
if (selection.candidate.version ==~ /0.2.*/) {
254-
// Reject version higher than 2.0.2. see https://github.com/JabRef/jabref/pull/3781
255-
selection.reject("Cannot be updated to 0.2.4 until JabRef is prepared for it")
252+
rules.withModule("org.python:jython-standalone") { ComponentSelection selection ->
253+
if (selection.candidate.version ==~ /2.7.2b2/) {
254+
selection.reject('Release candidate')
255+
}
256+
}
257+
rules.withModule("de.jensd:fontawesomefx-materialdesignfont") { ComponentSelection selection ->
258+
if (selection.candidate.version ==~ /2.0.26-9.1.2/) {
259+
selection.reject('1.7.22-11 is actually newer (strange version system)')
260+
}
261+
}
262+
rules.withModule("org.javamodularity.moduleplugin:org.javamodularity.moduleplugin.gradle.plugin") { ComponentSelection selection ->
263+
if (selection.candidate.version ==~ /1.6.0/) {
264+
selection.reject("Does not work due to bug, see https://github.com/JabRef/jabref/pull/5270")
256265
}
257266
}
258-
rules.withModule("com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin") { ComponentSelection selection ->
259-
if (selection.candidate.version ==~ /4.*/) {
260-
selection.reject("Version 4.X breaks the release process.")
267+
rules.withModule("com.microsoft.azure:applicationinsights-core") { ComponentSelection selection ->
268+
if (selection.candidate.version ==~ /2.5.1/) {
269+
selection.reject("Does not work due to bug, see https://github.com/JabRef/jabref/pull/5596")
261270
}
262271
}
263-
rules.withModule("com.google.errorprone:error_prone_core") { ComponentSelection selection ->
264-
if (selection.candidate.version ==~ /2.3.3/) {
265-
selection.reject("Does not work due to bug https://github.com/google/error-prone/issues/1240")
272+
rules.withModule("com.microsoft.azure:applicationinsights-logging-log4j2") { ComponentSelection selection ->
273+
if (selection.candidate.version ==~ /2.5.1/) {
274+
selection.reject("Does not work due to bug, see https://github.com/JabRef/jabref/pull/5596")
266275
}
267276
}
268277
}
@@ -597,6 +606,7 @@ jlink {
597606
uses 'com.airhacks.afterburner.injection.PresenterFactory'
598607
uses 'org.controlsfx.glyphfont.GlyphFont'
599608
uses 'com.airhacks.afterburner.views.ResourceLocator'
609+
uses 'javax.xml.bind.JAXBContextFactory'
600610
provides 'java.sql.Driver' with 'org.postgresql.Driver'
601611
provides 'org.controlsfx.glyphfont.GlyphFont' with 'org.controlsfx.glyphfont.FontAwesome'
602612
provides 'org.apache.commons.logging.LogFactory' with 'org.apache.logging.log4j.jcl.LogFactoryImpl'

src/main/java/org/jabref/gui/Base.css

+52-2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211

212212
/* The small thin light "shadow" for mark-like objects. Typically used in
213213
* conjunction with -fx-mark-color with an insets of 1 0 -1 0. */
214+
-fx-mark-color: -fx-text-base-color;
214215
-fx-mark-highlight-color: transparent;
215216
/*-fx-mark-highlight-color: derive(-fx-color,80%);*/
216217

@@ -235,12 +236,16 @@
235236
/** Focus line for keyboard focus traversal on cell based controls */
236237
-fx-cell-focus-inner-border: derive(-fx-selection-bar,30%);
237238

238-
-fx-focused-mark-color : -fx-focused-text-base-color;
239+
-fx-focused-mark-color: -fx-focused-text-base-color;
239240

240241
/* Consistent size for headers of tab-pane and side-panels*/
241242
-jr-header-height: 3em;
242243
}
243244

245+
#frame {
246+
-fx-background-color: -jr-background-alt;
247+
}
248+
244249
/*
245250
* The base css file defining the style that is valid for every pane and dialog.
246251
*/
@@ -262,6 +267,9 @@
262267
the text is always vertically centered within the bounds. Based on
263268
the cap height of the text. */
264269
-fx-bounds-type: logical_vertical_center;
270+
271+
/* The base color of icons should always be the same as the text. */
272+
-fx-fill: -fx-text-base-color;
265273
}
266274

267275
.tooltip {
@@ -385,7 +393,7 @@
385393
}
386394

387395
.check-box > .box {
388-
-fx-border-color: rgba(0, 0, 0, 0.54);
396+
-fx-border-color: -fx-outer-border; /* rgba(0, 0, 0, 0.54); */
389397
-fx-border-width: 2px;
390398
-fx-border-radius: 1px;
391399
-fx-padding: 0.1em 0.1em 0.2em 0.2em;
@@ -564,6 +572,10 @@
564572
-fx-background-insets: 0;
565573
}
566574

575+
.table-view .groupColumnBackground {
576+
-fx-stroke: -jr-gray-2;
577+
}
578+
567579
.scroll-pane:focused,
568580
.split-pane:focused,
569581
.list-view:focused,
@@ -1071,3 +1083,41 @@ We want to have a look that matches our icons in the tool-bar */
10711083
.dialog-pane {
10721084
-fx-background-color: -fx-control-inner-background;
10731085
}
1086+
1087+
.code-area .text {
1088+
-fx-fill: -fx-text-background-color;
1089+
}
1090+
1091+
.code-area .selection {
1092+
-fx-fill: -jr-accent;
1093+
}
1094+
1095+
.code-area .caret {
1096+
-fx-stroke: -fx-text-background-color;
1097+
}
1098+
1099+
.code-area .context-menu {
1100+
-fx-font-family: sans-serif;
1101+
}
1102+
1103+
.citationsList {
1104+
-fx-text-fill: -fx-text-base-color;
1105+
}
1106+
1107+
.citationsList .contextBox {
1108+
-fx-border-color: -fx-outer-border;
1109+
-fx-border-insets: 5;
1110+
-fx-border-style: dashed;
1111+
-fx-border-width: 2;
1112+
-fx-padding: 12;
1113+
}
1114+
1115+
.citationsList .contextBox * {
1116+
-fx-fill: -fx-text-base-color;
1117+
}
1118+
1119+
.citationsList .label {
1120+
-fx-font-family: monospace;
1121+
-fx-font-weight: bold;
1122+
-fx-label-padding: 5 0 10 10;
1123+
}

src/main/java/org/jabref/gui/BasePanel.java

-8
Original file line numberDiff line numberDiff line change
@@ -991,10 +991,6 @@ public BibDatabaseContext getBibDatabaseContext() {
991991
return this.bibDatabaseContext;
992992
}
993993

994-
public void markExternalChangesAsResolved() {
995-
changeMonitor.ifPresent(DatabaseChangeMonitor::markExternalChangesAsResolved);
996-
}
997-
998994
public SidePaneManager getSidePaneManager() {
999995
return sidePaneManager;
1000996
}
@@ -1059,10 +1055,6 @@ public void resetChangeMonitorAndChangePane() {
10591055
this.getChildren().setAll(changePane);
10601056
}
10611057

1062-
public void updateTimeStamp() {
1063-
changeMonitor.ifPresent(DatabaseChangeMonitor::markAsSaved);
1064-
}
1065-
10661058
public void copy() {
10671059
mainTable.copy();
10681060
}

src/main/java/org/jabref/gui/Dark.css

+15-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
-jr-menu-forground-active: derive(-fx-light-text-color, 50%);
4848

4949
-jr-scrollbar-thumb: derive(-fx-outer-border, -30%);
50-
-jr-scrollbar-track: derive(-fx-control-inner-background, -90%);
50+
-jr-scrollbar-track: derive(-fx-control-inner-background, -90%);
5151

5252
-fx-focused-text-base-color: -fx-dark-text-color;
5353

@@ -59,6 +59,15 @@
5959
color : #7d8591; /* -fx-mid-text-color*/
6060
}
6161

62+
.table-view .groupColumnBackground {
63+
-fx-stroke: -jr-gray-4;
64+
}
65+
66+
.code-area .lineno {
67+
-fx-background-color: -jr-background-alt;
68+
-fx-text-fill: -fx-mid-text-color;
69+
}
70+
6271
.text-unchanged {
6372
-fx-fill: -fx-light-text-color;
6473
}
@@ -73,4 +82,8 @@
7382

7483
.numberColumn > .hits:all-selected {
7584
-fx-background-color: -jr-gray-3;
76-
}
85+
}
86+
87+
#preferencesContainer .tab-pane > .tab-header-area > .tab-header-background {
88+
-fx-background-color: -jr-background;
89+
}

src/main/java/org/jabref/gui/JabRefFrame.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import javafx.scene.layout.HBox;
4141
import javafx.scene.layout.Pane;
4242
import javafx.scene.layout.Priority;
43+
import javafx.scene.layout.VBox;
4344
import javafx.stage.Stage;
4445

4546
import org.jabref.Globals;
@@ -405,9 +406,10 @@ public boolean quit() {
405406
private void initLayout() {
406407
setProgressBarVisible(false);
407408

408-
BorderPane head = new BorderPane();
409-
head.setTop(createMenu());
410-
head.setCenter(createToolbar());
409+
setId("frame");
410+
411+
VBox head = new VBox(createMenu(),createToolbar());
412+
head.setSpacing(0d);
411413
setTop(head);
412414

413415
splitPane.getItems().addAll(sidePane, tabbedPane);

0 commit comments

Comments
 (0)