Skip to content

Commit

Permalink
Auto-update CSL Bibliography feature (JabRef#11683)
Browse files Browse the repository at this point in the history
* add auto-update bibliography feature

* Extend to all three types of CSL citations
  • Loading branch information
subhramit authored Aug 29, 2024
1 parent cdfd7bc commit 70d7c9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/jabref/gui/openoffice/OOBibBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ public void guiActionInsertEntry(List<BibEntry> entries,
// "Insert empty citation"
this.cslCitationOOAdapter.insertEmpty(cursor.get(), entries);
}

// If "Automatically sync bibliography when inserting citations" is enabled
syncOptions.ifPresent(options -> guiActionUpdateDocument(options.databases, citationStyle));
} else if (style instanceof JStyle jStyle) {
// Handle insertion of JStyle citations

Expand Down Expand Up @@ -939,7 +942,7 @@ public void guiActionUpdateDocument(List<BibDatabase> databases, OOStyle style)
return;
}

// A separate database and database
// A separate database and database context
BibDatabase bibDatabase = new BibDatabase(citedEntries);
BibDatabaseContext bibDatabaseContext = new BibDatabaseContext(bibDatabase);

Expand Down

0 comments on commit 70d7c9c

Please sign in to comment.