Skip to content

Add support for LibreOffice's default bibliography styles #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DTT12912
Copy link
Owner

@DTT12912 DTT12912 commented May 2, 2025

Closes JabRef#13049

This PR adds support for LibreOffice's default bibliography styles in JabRef's LibreOffice integration. The changes include:

  1. Added new bibliography styles:

    • "Bibliography Heading" for the bibliography section heading
    • "Bibliography 1" for bibliography entries (default)
    • "Text body" as an additional style option
  2. Updated the UI:

    • Renamed "Modify bibliography title" dialog to "Modify bibliography properties"
    • Added a new dropdown to select bibliography body text format
    • Maintained backward compatibility with existing styles
  3. Backend changes:

    • Added new styles to CSLFormatUtils.Format enum
    • Updated OpenOfficePreferences to store bibliography body format
    • Modified CSLCitationOOAdapter to use the selected body format

These changes ensure that JabRef uses LibreOffice's default bibliography styles by default while still allowing users to choose alternative styles if desired.

Mandatory checks

  • [] I own the copyright of the code submitted and I license it under the MIT license
  • [] Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • [] Tests created for changes (if applicable)
  • [] Manually tested changed features in running JabRef (always required)
  • [] Screenshots added in PR description (if change is visible to the user)
  • [] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • [] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Bibliography Heading and Bibliography 1 styles for OO integration
1 participant