Skip to content

Add an option to add "Cited on pages" in JStyle bibliography #11691

@subhramit

Description

@subhramit

There exists a mechanism in JabRef to add "Cited on pages: ..." to bibliography entries when using JStyle citations.
However, this is presently not accessible to the user to be triggered, thus rendering the feature useless.

Suggestion would be to provide an option to the user to use this feature.

Solution

The solution is simple, albeit will have multiple parts - will require work both on the UI and the backend.

Frontend:

Add an option to use this feature ONLY when a JStyle is selected, maybe somewhere in the OpenOffice Panel Settings:

image

Hint: Use a listener for style type

Backend:

In the OOBibBase class, we have a boolean alwaysAddCitedOnPages, which is presently always set to false:

// Shall we add "Cited on pages: ..." to resolved bibliography entries?
private final boolean alwaysAddCitedOnPages;

Use this to convey the selected option through syncOptions.
Refs. TODO comments added in #11690

Additional:

It would be even better if this can be added as a user preference.
Hint: As an example, see how getOpenOfficePreferences().getSyncWhenCiting() is used to store a similar preference selected from the OO Panel settings.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions