-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add an option to add "Cited on pages" in JStyle bibliography #11691
Copy link
Copy link
Closed
JabRef/user-documentation
#516Labels
FirstTimeCodeContributionTriggers GitHub Greeter WorkflowTriggers GitHub Greeter Workflow[outdated] type: enhancementcomponent: libre-officecomponent: preferencescomponent: uigood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.
Metadata
Metadata
Assignees
Labels
FirstTimeCodeContributionTriggers GitHub Greeter WorkflowTriggers GitHub Greeter Workflow[outdated] type: enhancementcomponent: libre-officecomponent: preferencescomponent: uigood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
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:
Hint: Use a listener for style type
Backend:
In the
OOBibBaseclass, we have a booleanalwaysAddCitedOnPages, which is presently always set tofalse:jabref/src/main/java/org/jabref/gui/openoffice/OOBibBase.java
Lines 74 to 75 in 70d7c9c
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.