Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into GSOC-merge-fields
Browse files Browse the repository at this point in the history
* upstream/main: (21 commits)
  New Crowdin updates (#9016)
  New Crowdin updates (#9013)
  try to gather more output from LO exception (#9002)
  Improve Automatic Field Editor Dialog (#8973)
  Update BST VM to Antlr4 (#8934)
  Support biblatex apa citation for legal entry types (#8966)
  Bump junit-jupiter from 5.8.2 to 5.9.0 (#9012)
  Bump lucene-core from 9.2.0 to 9.3.0 (#9009)
  Bump checkstyle from 10.3.1 to 10.3.2 (#9006)
  Bump appleboy/ssh-action from 0.1.4 to 0.1.5 (#9005)
  New translations JabRef_en.properties (Spanish) (#9003)
  Squashed 'buildres/csl/csl-locales/' changes from 55459cd79f..e637746677
  Squashed 'buildres/csl/csl-styles/' changes from 3d3573c..c750b6e
  Autosave folder and checkbox is remembered (#9000)
  New Crowdin updates (#8999)
  Sync group view mode and main table (#8993)
  Bump unoloader from 7.3.4 to 7.3.5 (#8996)
  Bump libreoffice from 7.3.4 to 7.3.5 (#8997)
  Bump java-diff-utils from 4.11 to 4.12 (#8998)
  Fix external group metadata changes are not merged (#8994)
  ...
  • Loading branch information
Siedlerchr committed Aug 3, 2022
2 parents 5b8e97a + 0f463db commit 681edea
Show file tree
Hide file tree
Showing 125 changed files with 5,276 additions and 3,678 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cleanup_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo "##[set-output name=branch;]$(echo ${{ github.event.pull_request.head.ref }})"
- name: Delete folder on builds.jabref.org
if: ${{ steps.checksecrets.outputs.secretspresent }}
uses: appleboy/ssh-action@v0.1.4
uses: appleboy/ssh-action@v0.1.5
with:
script: rm -rf /var/www/builds.jabref.org/www/${{ steps.extract_branch.outputs.branch }} || true
host: build-upload.jabref.org
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- 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)
- We added a feature to drag selected entries and drop them to other opened inactive library tabs [koppor521](https://github.com/koppor/jabref/issues/521).
- We added support for the [biblatex-apa](https://github.com/plk/biblatex-apa) legal entry types `Legislation`, `Legadminmaterial`, `Jurisdiction`, `Constitution` and `Legal` [#8931](https://github.com/JabRef/jabref/issues/8931)

### Changed

Expand Down Expand Up @@ -59,6 +60,9 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We fixed a bug where switching between themes will cause an error/exception. [#8939](https://github.com/JabRef/jabref/pull/8939)
- We fixed a bug where files that were deleted in the source bibtex file were kept in the index. [#8962](https://github.com/JabRef/jabref/pull/8962)
- We fixed "Error while sending to JabRef" when the browser extension interacts with JabRef. [JabRef-Browser-Extension#479](https://github.com/JabRef/JabRef-Browser-Extension/issues/479)
- We fixed a bug where updating group view mode (intersection or union) requires re-selecting groups to take effect. [#6998](https://github.com/JabRef/jabref/issues/6998)
- We fixed a bug that prevented external group metadata changes from being merged. [#8873](https://github.com/JabRef/jabref/issues/8873)
- We fixed the shared database opening dialog to remember autosave folder and tick. [#7516](https://github.com/JabRef/jabref/issues/7516)

### Removed

Expand Down
36 changes: 16 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ repositories {
}

configurations {
antlr3
antlr4
// TODO: Remove the following workaround for split error messages such as
// error: module java.xml.bind reads package javax.annotation from both jsr305 and java.annotation
Expand Down Expand Up @@ -116,11 +115,11 @@ dependencies {
implementation 'org.apache.pdfbox:fontbox:3.0.0-RC1'
implementation 'org.apache.pdfbox:xmpbox:3.0.0-RC1'

implementation 'org.apache.lucene:lucene-core:9.2.0'
implementation 'org.apache.lucene:lucene-queryparser:9.2.0'
implementation 'org.apache.lucene:lucene-queries:9.2.0'
implementation 'org.apache.lucene:lucene-analysis-common:9.2.0'
implementation 'org.apache.lucene:lucene-highlighter:9.2.0'
implementation 'org.apache.lucene:lucene-core:9.3.0'
implementation 'org.apache.lucene:lucene-queryparser:9.3.0'
implementation 'org.apache.lucene:lucene-queries:9.3.0'
implementation 'org.apache.lucene:lucene-analysis-common:9.3.0'
implementation 'org.apache.lucene:lucene-highlighter:9.3.0'

implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.9.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
Expand All @@ -133,15 +132,12 @@ dependencies {

implementation 'commons-cli:commons-cli:1.5.0'

implementation 'org.libreoffice:libreoffice:7.3.4'
implementation 'org.libreoffice:unoloader:7.3.4'
implementation 'org.libreoffice:libreoffice:7.3.5'
implementation 'org.libreoffice:unoloader:7.3.5'

implementation 'io.github.java-diff-utils:java-diff-utils:4.11'
implementation 'io.github.java-diff-utils:java-diff-utils:4.12'
implementation 'info.debatty:java-string-similarity:2.0.0'

antlr3 'org.antlr:antlr:3.5.3'
implementation 'org.antlr:antlr-runtime:3.5.3'

antlr4 'org.antlr:antlr4:4.9.3'
implementation 'org.antlr:antlr4-runtime:4.9.3'

Expand Down Expand Up @@ -208,8 +204,8 @@ dependencies {
implementation group: 'net.harawata', name: 'appdirs', version: '1.2.1'

testImplementation 'io.github.classgraph:classgraph:4.8.149'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.junit.platform:junit-platform-launcher:1.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.0'

testImplementation 'org.mockito:mockito-core:4.6.1'
testImplementation 'org.xmlunit:xmlunit-core:2.9.0'
Expand All @@ -220,7 +216,7 @@ dependencies {
testImplementation "org.testfx:testfx-junit5:4.0.16-alpha"
testImplementation "org.hamcrest:hamcrest-library:2.2"

checkstyle 'com.puppycrawl.tools:checkstyle:10.3.1'
checkstyle 'com.puppycrawl.tools:checkstyle:10.3.2'
// xjc needs the runtime as well for the ant task, otherwise it fails
xjc group: 'org.glassfish.jaxb', name: 'jaxb-xjc', version: '3.0.2'
xjc group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '3.0.2'
Expand Down Expand Up @@ -273,14 +269,14 @@ task generateSource(dependsOn: ["generateBstGrammarSource",
}

tasks.register("generateBstGrammarSource", JavaExec) {
main = "org.antlr.Tool"
classpath = configurations.antlr3
main = "org.antlr.v4.Tool"
classpath = configurations.antlr4
group = "JabRef"
description = 'Generates BstLexer.java and BstParser.java from the Bst.g grammar file using antlr3.'
description = 'Generates BstLexer.java and BstParser.java from the Bst.g grammar file using antlr4.'

inputs.dir('src/main/antlr3/org/jabref/bst/')
inputs.dir('src/main/antlr4/org/jabref/bst/')
outputs.dir("src-gen/main/java/org/jabref/logic/bst/")
args = ["-o", "src-gen/main/java/org/jabref/logic/bst/" , "$projectDir/src/main/antlr3/org/jabref/bst/Bst.g" ]
args = ["-o", "src-gen/main/java/org/jabref/logic/bst/", "-visitor", "-no-listener", "-package", "org.jabref.logic.bst", "$projectDir/src/main/antlr4/org/jabref/bst/Bst.g4"]
}

tasks.register("generateSearchGrammarSource", JavaExec) {
Expand Down
22 changes: 18 additions & 4 deletions buildres/csl/csl-styles/apa-5th-edition.csl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
</else-if>
<else>
<choose>
<if variable="event" match="none">
<if variable="event event-title" match="none">
<text variable="genre" suffix=", "/>
</if>
</choose>
Expand All @@ -196,23 +196,37 @@
</macro>
<macro name="event">
<choose>
<if variable="event">
<if variable="event event-title" match="any">
<choose>
<if variable="genre" match="none">
<text term="presented at" text-case="capitalize-first" suffix=" "/>
<text variable="event"/>
<text macro="event-title"/>
</if>
<else>
<group delimiter=" ">
<text variable="genre" text-case="capitalize-first"/>
<text term="presented at"/>
<text variable="event"/>
<text macro="event-title"/>
</group>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="event-title">
<choose>
<!-- TODO: We expect "event-title" to be used,
but processors and applications may not be updated yet.
This macro ensures that either "event" or "event-title" can be accpeted.
Remove if procesor logic and application adoption can handle this. -->
<if variable="event-title">
<text variable="event-title"/>
</if>
<else>
<text variable="event"/>
</else>
</choose>
</macro>
<macro name="issued">
<choose>
<if variable="issued">
Expand Down
60 changes: 40 additions & 20 deletions buildres/csl/csl-styles/apa-6th-edition-no-ampersand.csl
Original file line number Diff line number Diff line change
Expand Up @@ -897,32 +897,52 @@
</macro>
<macro name="event">
<choose>
<if variable="event" type="speech paper-conference" match="any">
<if variable="event">
<!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to
both publisher-place and event-place. Remove this 'choose' when that is changed. -->
<choose>
<!-- Don't print event info if published in a proceedings -->
<if variable="collection-editor editor issue page volume" match="none">
<group delimiter=" ">
<text variable="genre" text-case="capitalize-first"/>
<group delimiter=" ">
<choose>
<if variable="genre">
<text term="presented at"/>
</if>
<else>
<text term="presented at" text-case="capitalize-first"/>
</else>
</choose>
<group delimiter=", ">
<text variable="event"/>
<text variable="event-place"/>
<if variable="event" type="speech paper-conference" match="any">
<choose>
<!-- Don't print event info if published in a proceedings -->
<if variable="collection-editor editor issue page volume" match="none">
<group delimiter=" ">
<text variable="genre" text-case="capitalize-first"/>
<group delimiter=" ">
<choose>
<if variable="genre">
<text term="presented at"/>
</if>
<else>
<text term="presented at" text-case="capitalize-first"/>
</else>
</choose>
<group delimiter=", ">
<text macro="event-title"/>
<text variable="event-place"/>
</group>
</group>
</group>
</group>
</group>
</if>
</choose>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="event-title">
<choose>
<!-- TODO: We expect "event-title" to be used,
but processors and applications may not be updated yet.
This macro ensures that either "event" or "event-title" can be accpeted.
Remove if procesor logic and application adoption can handle this. -->
<if variable="event-title">
<text variable="event-title"/>
</if>
<else>
<text variable="event"/>
</else>
</choose>
</macro>
<macro name="issued">
<choose>
<if type="bill legal_case legislation" match="any"/>
Expand Down Expand Up @@ -1401,7 +1421,7 @@
<group prefix="(" suffix=")">
<choose>
<if variable="references">
<!-- This provides the option for more elaborate description
<!-- This provides the option for more elaborate description
of publication history, such as full "reprinted" references
(example 26) or retracted references -->
<text variable="references"/>
Expand Down
60 changes: 40 additions & 20 deletions buildres/csl/csl-styles/apa-6th-edition.csl
Original file line number Diff line number Diff line change
Expand Up @@ -896,32 +896,52 @@
</macro>
<macro name="event">
<choose>
<if variable="event" type="speech paper-conference" match="any">
<if variable="event">
<!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to
both publisher-place and event-place. Remove this 'choose' when that is changed. -->
<choose>
<!-- Don't print event info if published in a proceedings -->
<if variable="collection-editor editor issue page volume" match="none">
<group delimiter=" ">
<text variable="genre" text-case="capitalize-first"/>
<group delimiter=" ">
<choose>
<if variable="genre">
<text term="presented at"/>
</if>
<else>
<text term="presented at" text-case="capitalize-first"/>
</else>
</choose>
<group delimiter=", ">
<text variable="event"/>
<text variable="event-place"/>
<if variable="event" type="speech paper-conference" match="any">
<choose>
<!-- Don't print event info if published in a proceedings -->
<if variable="collection-editor editor issue page volume" match="none">
<group delimiter=" ">
<text variable="genre" text-case="capitalize-first"/>
<group delimiter=" ">
<choose>
<if variable="genre">
<text term="presented at"/>
</if>
<else>
<text term="presented at" text-case="capitalize-first"/>
</else>
</choose>
<group delimiter=", ">
<text macro="event-title"/>
<text variable="event-place"/>
</group>
</group>
</group>
</group>
</group>
</if>
</choose>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="event-title">
<choose>
<!-- TODO: We expect "event-title" to be used,
but processors and applications may not be updated yet.
This macro ensures that either "event" or "event-title" can be accpeted.
Remove if procesor logic and application adoption can handle this. -->
<if variable="event-title">
<text variable="event-title"/>
</if>
<else>
<text variable="event"/>
</else>
</choose>
</macro>
<macro name="issued">
<choose>
<if type="bill legal_case legislation" match="any"/>
Expand Down Expand Up @@ -1400,7 +1420,7 @@
<group prefix="(" suffix=")">
<choose>
<if variable="references">
<!-- This provides the option for more elaborate description
<!-- This provides the option for more elaborate description
of publication history, such as full "reprinted" references
(example 26) or retracted references -->
<text variable="references"/>
Expand Down
Loading

0 comments on commit 681edea

Please sign in to comment.