Support protected institutional authors in PersonNamesChecker#15175
Support protected institutional authors in PersonNamesChecker#15175Siedlerchr merged 4 commits intoJabRef:mainfrom
Conversation
Review Summary by QodoSupport protected institutional authors in PersonNamesChecker
WalkthroughsDescription• Check name format with braces before stripping them • Prevents false warnings for protected institutional authors • Maintains backward compatibility with existing bracket handling • Extracts format validation logic into reusable method Diagramflowchart LR
A["Author name input"] --> B{"Check format<br/>with braces?"}
B -->|Valid| C["Return empty<br/>no warning"]
B -->|Invalid| D["Strip braces"]
D --> E{"Check format<br/>without braces?"}
E -->|Valid| C
E -->|Invalid| F["Return format<br/>warning"]
File Changes1. jablib/src/main/java/org/jabref/logic/integrity/PersonNamesChecker.java
|
Code Review by Qodo
1. Redundant standard check
|
|
Your pull request conflicts with the target branch. Please merge with your code. For a step-by-step guide to resolve merge conflicts, see https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-using-the-command-line. |
calixtus
left a comment
There was a problem hiding this comment.
Looks good to me. Awaiting second review.
…nstitutional-author-warning
✅ All tests passed ✅🏷️ Commit: 5cc61a7 Learn more about TestLens at testlens.app. |
…les-wizard-12709 * upstream/main: (106 commits) Merge common gating parts into composite action (JabRef#15197) Support protected institutional authors in PersonNamesChecker (JabRef#15175) adapt wix (JabRef#14969) Improve CI (JabRef#15189) Revert "Reduce complexity in dependencies setup (JabRef#15169)" (JabRef#15191) Fix compilation Fix heylogs test Fix icon on Linux (JabRef#15188) chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.5 (JabRef#15178) New Crowdin updates (JabRef#15173) Reduce complexity in dependencies setup (JabRef#15169) Start new development cycle snapcraft snapcraft use snapctl update metadata fiels try with mesa candidate fix snapcraft and skmanrc to use correct version Release v6.0-alpha.5 chore(sbom): update CycloneDX SBOM files (JabRef#15172) ...
…#15175) * Fix JabRef#15157: Support protected institutional authors in PersonNamesChecker * Fix CHANGELOG.md --------- Co-authored-by: Carl Christian Snethlage <calixtus@users.noreply.github.com> Co-authored-by: Christoph <siedlerkiller@gmail.com>
Fixes #15157
Description
The PersonNamesChecker was stripping braces before validating the name format. This broke protected terms like {Institutional Author} because the parser would see them as "First Last" instead of a single unit, triggering a "not standard format" warning.
I've updated the logic to check the format with brackets first. If that's valid, we're good. If not, it falls back to the old behavior (stripping brackets) to make sure we don't break existing stuff like {JabRef}.
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)