-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
IsSortByPosition ignored #10663
Comments
Hi @vigmond, I would like to work on this issue. |
As a general advice for newcomers: check out Contributing for a start. Also, guidelines for setting up a local workspace is worth having a look at. Feel free to ask here at GitHub, if you have any issue related questions. If you have questions about how to setup your workspace use JabRef's Gitter chat. Try to open a (draft) pull-request early on, so that people can see you are working on the issue and so that they can see the direction the pull request is heading towards. This way, you will likely receive valuable feedback. |
@vigmond could you please provide screenshots of prior and expected output? @HarikaB11 this is not marked as "good first issue". If at any point you feel this is too tough an issue, feel free to check out other issues from the projects page. We are looking forward to transition to CSL styles in LibreOffice/OpenOffice eventually, as there is an organisation behind them that actively maintaines their styles. They also do have a lot more styles. |
The problem was reproduced on a MacBook Pro 14" M2 running Sonoma. |
It works correctly if the in-text citation is a number and not AuthorYear (isNumberEntries=true). |
Sorry but nevermind. It makes little sense to use Author date and then not sort the bibliography by author. |
For some info on the parameters see https://docs.jabref.org/cite/openofficeintegration |
Could anybody give a hint as to where the underlying issue could be? I checked CitationGroups.java and a few other probable places, but could find no issue. |
@subhramit Maybe @antalk2 can share some knowledge from 2022. He rewrote much parts of the code in 2021/2022: https://github.com/JabRef/jabref/pulls?q=is%3Apr+author%3Aantalk2+sort%3Aupdated-desc. No one else touched these parts of JabRef then. |
There's also some documentation in our devdocs |
Link to the general devdocs regarding LibreOffice integration: https://devdocs.jabref.org/code-howtos/openoffice/ |
I am not sure what knowledge is needed that I could share. Or, what is the problem we are trying to solve. As vigmond mentioned above: "It makes little sense to use Author date and then not sort the bibliography by author." Nevertheless, I include pointers below to what I found, just in case. DocsAccording to doc: https://devdocs.jabref.org/code-howtos/openoffice/overview.html#citation-styles
four styles are supported:
(It is not spelled out above, but I believe (3) sorts as Author-year, and numbers the citations accordingly.) Maybe the user documentation
Technical backgroundI think (but could not test now), I did not change this aspect.
In particular: jabref/src/main/java/org/jabref/logic/openoffice/style/OOProcessAuthorYearMarkers.java Line 129 in 20e1e6a
calls jabref/src/main/java/org/jabref/logic/openoffice/style/OOProcessAuthorYearMarkers.java Line 138 in 20e1e6a
unconditionally. |
JabRef version
5.11 (latest release)
Operating system
GNU / Linux
Details on version and operating system
OpenSuse 15.4
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
IsSortByPosition="true"
The bibliography will be alphabetical. Everything else is as expected.
Appendix
jstyle file:
NAME
Frontiers Journal Harvard Style
JOURNALS
Frontiers
PROPERTIES
Title="References"
IsSortByPosition="true"
IsNumberEntries="false"
ReferenceParagraphFormat="Text body"
ReferenceHeaderParagraphFormat="Heading 1"
CITATION
BibtexKeyCitations="false"
AuthorField="author/editor"
YearField="year"
MaxAuthors="2"
MaxAuthorsFirst="2"
AuthorSeparator=","
AuthorLastSeparator=""
AuthorLastSeparatorInText=" and "
EtAlString=" et al."
YearSeparator=" "
InTextYearSeparator=" "
BracketBefore="("
BracketAfter=")"
BracketBeforeInList="["
BracketAfterInList="] "
CitationSeparator=", "
UniquefierSeparator=","
GroupedNumbersSeparator="-"
MinimumGroupingCount="3"
FormatCitations="false"
CitationCharacterFormat="Default"
MultiCiteChronological="true"
LAYOUT
article=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author} (\year\uniq). \title, \journal \volume\begin{pages} : \format[FormatPagesForHTML]{\pages}\end{pages}.
book=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author}\begin{editor}\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\editor} (Ed.)\end{editor}, \year\uniq. \title. \publisher, \address.
incollection=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author} (\year\uniq). \title. In: \format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\editor} (Ed.), \booktitle, \publisher.
inbook=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author} (\year\uniq). \chapter. In: \format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\editor} (Ed.), \title, \publisher.
phdthesis=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author} (\year\uniq). \title, \school.
default=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author} (\year\uniq). \title, \journal \volume\begin{pages} : \format[FormatPagesForHTML]{\pages}\end{pages}.
The text was updated successfully, but these errors were encountered: