-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix author formatter for unchanged names #6552
Fix author formatter for unchanged names #6552
Conversation
The original condition is evaluated to false. The substring is shorter than "uni".
Perhaps the assumption should be that the letters are ASCII. If all letters are ASCII checking 'A' <= k.charAt(0) <= 'Z' might make more sense. I am not convinced about doing this with a regex.
Both test cases involves an author name containing department or school without university or institute of technology.
Corporate authors without university/institute of technology
# Conflicts: # src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java
If the name of an institution can't be split, assume that "School"/"Department" is part of the name.
Minor typos and the "rest" part is now created differently.
Move the fields loop from BibEntryTableViewModel to MainTableFieldValueFormatter.
Store a reference to the used BibDatabase in MainTableFieldValueFormatter with the constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. Looks already pretty good to me, and I've only few more minor comments.
src/main/java/org/jabref/gui/maintable/MainTableFieldValueFormatter.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jabref/gui/maintable/MainTableFieldValueFormatter.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Tobias Diez <[email protected]>
…dSMPHz27/jabref into fix-for-issue-6459
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the hard work. I have some code nitpicks.
And a hint to get checkstyle running again:
Please add MainTableFieldValueFormatter.java
to
jabref/config/checkstyle/checkstyle.xml
Line 15 in ca06b71
<property name="fileNamePattern" value="AuthorAndsReplacer.java|Ordinal.java|EntryTypeView.java" /> |
This reverts commit 6155e14
…dSMPHz27/jabref into fix-for-issue-6459
Co-authored-by: Oliver Kopp <[email protected]>
…dSMPHz27/jabref into fix-for-issue-6459
* upstream/master: Validates the file path of a TexGroup and fixes Texgroup's "Library has been modified by another program" (#6586) Bump postgresql from 42.2.12 to 42.2.14 (#6610) Add markdown-link-check (#6542) Catch InaccessibleObjectException (#6519) Fix author formatter for unchanged names (#6552) Bump com.simonharrer.modernizer from 1.8.0-1 to 2.1.0-1 Bump org.beryx.jlink from 2.19.0 to 2.20.0 Bump classgraph from 4.8.83 to 4.8.86 Update FileUtilTest.java Update FileUtilTest.java Squashed 'src/main/resources/csl-styles/' changes from c5f14e2..716f635 Update FileUtilTest.java Update MoveFilesCleanupTest.java checkstyle Fix dowmloaded files moved to citaiton key dir
6b7fdff8cb Create journal-of-the-american-philosophical-association.csl (#6542) 9bae9efc55 Update german-council-of-economic-experts.csl (#6562) 256250be9c Update springer-vancouver-brackets.csl (#6546) f422ca9c9a Update turabian-fullnote-bibliography.csl (#6540) 2833b5d5d5 Update mots.csl (#6556) 44758704b0 Update and rename harvard-the-university-of-melbourne.csl to dependen… (#6547) 08e65fc8e1 Update ieee-with-url.csl (#6514) 06e98f4387 Fix erroneous comma in ACL in-text citation (#6553) 72e16a19cd Update bibliothek-forschung-und-praxis.csl (#6527) 50bae82394 Create Food and Agriculture Organization of the United Nations (numeric) (#6544) 234a3c35d8 Update bern-university-of-applied-sciences-school-of-agricultural-for… (#6552) 3e9e2d6e93 Fix et al and name settings in universitat bern institut fur sozialanthropologie (#6554) e8e06888fe Update harvard-university-of-the-west-of-england.csl (#6520) dbbe5c1a95 Update united-states-international-trade-commission.csl (#6535) b985431f03 Update american-society-for-horticultural-science.csl (#6543) e1ff9f5546 Sort APA and derivatives on displayed date, not full date (#6545) 7302832d6d Localize original-work-published in APA (#6388) 77a61c0d82 Update united-states-international-trade-commission.csl (#6526) 541807a057 Update the-accounting-review.csl (#6521) 708626357a Update united-states-international-trade-commission git-subtree-dir: buildres/csl/csl-styles git-subtree-split: 6b7fdff8cb0fb45b342e8ac319634bf18168c73d
Fixes an issue created in #6479 where the "Format of author and editor names",
Show names unchanged
option does not resolve umlauts/latex.