From 1bb814ab3329aea8c586a576280b50d51971be1c Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 20 Feb 2020 23:16:51 +0100 Subject: [PATCH 01/19] Fix communication with JabFox (#5970) --- buildres/windows/JabRefHost.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/buildres/windows/JabRefHost.ps1 b/buildres/windows/JabRefHost.ps1 index f31df86f74e..9c876805305 100644 --- a/buildres/windows/JabRefHost.ps1 +++ b/buildres/windows/JabRefHost.ps1 @@ -11,7 +11,7 @@ function Respond($response) { } } -$jabRefExe = [System.IO.Path]::Combine($PSScriptRoot, "JabRef.exe") +$jabRefExe = [System.IO.Path]::Combine($PSScriptRoot, "runtime\\bin\\JabRef.bat") try { $reader = New-Object System.IO.BinaryReader([System.Console]::OpenStandardInput()) @@ -37,9 +37,10 @@ try { #$wshell = New-Object -ComObject Wscript.Shell #$wshell.Popup($message.Text,0,"JabRef", 0x0 + 0x30) - $messageText = $message.Text - $output = & $jabRefExe -importBibtex "$messageText" 2>&1 - #$output = & echoargs -importBibtex $messageText 2>&1 + $messageText = $message.Text.replace("`n"," ").replace("`r"," ") + $output = & $jabRefExe -importBibtex "$messageText" *>&1 + #$output = "$messageText" + #$wshell = New-Object -ComObject Wscript.Shell #$wshell.Popup($output,0,"JabRef", 0x0 + 0x30) return Respond @{message="ok";output="$output"} } finally { From c1ab9c5dff796c02248bb46b9bbdf2268da378de Mon Sep 17 00:00:00 2001 From: Stefan Kolb Date: Fri, 21 Feb 2020 00:06:32 +0100 Subject: [PATCH 02/19] Change grobid URL to jabref subdomain (#5972) --- .../jabref/logic/importer/fetcher/GrobidCitationFetcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jabref/logic/importer/fetcher/GrobidCitationFetcher.java b/src/main/java/org/jabref/logic/importer/fetcher/GrobidCitationFetcher.java index 5f1fbe66aab..77021ab765e 100644 --- a/src/main/java/org/jabref/logic/importer/fetcher/GrobidCitationFetcher.java +++ b/src/main/java/org/jabref/logic/importer/fetcher/GrobidCitationFetcher.java @@ -22,7 +22,7 @@ public class GrobidCitationFetcher implements SearchBasedFetcher { private static final Logger LOGGER = LoggerFactory.getLogger(GrobidCitationFetcher.class); - private static final String GROBID_URL = "http://grobid.cm.in.tum.de:8070"; + private static final String GROBID_URL = "http://grobid.jabref.org:8070"; private ImportFormatPreferences importFormatPreferences; private GrobidService grobidService; From 59ac5ddbde23d2ef54f62022849787e6c27af10b Mon Sep 17 00:00:00 2001 From: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com> Date: Fri, 21 Feb 2020 00:43:21 +0100 Subject: [PATCH 03/19] Refactored subtile changes to optics of library properties (#5969) --- CHANGELOG.md | 4 + .../jabref/gui/SaveOrderConfigDisplay.fxml | 39 +++--- .../cleanup/FieldFormatterCleanupsPanel.java | 5 + .../LibraryPropertiesDialog.fxml | 130 ++++++++++-------- .../LibraryPropertiesDialogView.java | 3 - 5 files changed, 101 insertions(+), 80 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88539afa5ac..a07c9c99065 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,10 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# - We fixed several issues concerning managing external file types: Now everything is usable and fully functional. Previously, there were problems with the radio buttons, with saving the settings and with loading an input field value. Furthermore, different behavior for Windows and other operating systems was given, which was unified as well. [#5846](https://github.com/JabRef/jabref/issues/5846) - We fixed an issue where entries containing Unicode charaters were not parsed correctly [#5899](https://github.com/JabRef/jabref/issues/5899) - We fixed an issue where an entry containing an external filename with curly braces could not be saved. Curly braces are now longer allowed in filenames. [#5899](https://github.com/JabRef/jabref/issues/5899) +- We fixed an issue where changing the type of an entry did not update the main table [#5906](https://github.com/JabRef/jabref/issues/5906) +- We fixed an issue where opening a library from the recent libraries menu was not possible [#5939](https://github.com/JabRef/jabref/issues/5939) +- We fixed an issue in the optics of the library properties, that cropped the dialog on scaled displays. [#5969](https://github.com/JabRef/jabref/issues/5969) + - We fixed an issue where changing the type of an entry did not update the main table. [#5906](https://github.com/JabRef/jabref/issues/5906) - We fixed an issue where opening a library from the recent libraries menu was not possible. [#5939](https://github.com/JabRef/jabref/issues/5939) diff --git a/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml b/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml index 64fac7cdc94..17e458f2e81 100644 --- a/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml +++ b/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml @@ -24,37 +24,38 @@ - + - - - + + + + - - - - - - + + + - diff --git a/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java b/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java index 7ef6dfc4d56..f75e08b9761 100644 --- a/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java +++ b/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java @@ -78,6 +78,9 @@ public void setValues(FieldFormatterCleanups formatterCleanups) { } private void buildLayout() { + setHgap(10.0); + setVgap(4.0); + ColumnConstraints first = new ColumnConstraints(); first.setPrefWidth(25); ColumnConstraints second = new ColumnConstraints(); @@ -101,6 +104,7 @@ private void buildLayout() { add(cleanupEnabled, 0, 0, 4, 1); actionsList = new ListView<>(actions); + actionsList.setMinHeight(100.0); actionsList.getSelectionModel().setSelectionMode(SelectionMode.SINGLE); new ViewModelListCellFactory() .withText(action -> action.getField().getDisplayName() + ": " + action.getFormatter().getName()) @@ -161,6 +165,7 @@ private void updateDescription() { */ private GridPane getSelectorPanel() { GridPane builder = new GridPane(); + builder.setHgap(10.0); Set fields = FieldFactory.getCommonFields(); fields.add(InternalField.KEY_FIELD); Set fieldsString = fields.stream().map(Field::getDisplayName).sorted().collect(Collectors.toCollection(TreeSet::new)); diff --git a/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml b/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml index 12f7febeb96..7d43bd84e46 100644 --- a/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml +++ b/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml @@ -1,69 +1,83 @@ - - + - + + + + + + + + + + + + + + + - - - + + + + + + - - - + + + - - - - - - - - + + + + + + + - - - - - - - - -