Fix Hayagriva export to nest identifiers under serial-number#15750
Conversation
Review Summary by QodoFix Hayagriva export to nest identifiers under serial-number
WalkthroughsDescription• Fixed Hayagriva YAML exporter to nest identifiers under serial-number • DOI, ISBN, and ISSN now correctly nested per Hayagriva spec • Added three unit tests for each identifier type • Updated layout template with conditional serial-number block Diagramflowchart LR
A["Hayagriva Layout Template"] -->|"Conditional serial-number block"| B["DOI/ISBN/ISSN Nesting"]
C["Unit Tests"] -->|"Validates export format"| B
B -->|"Correct YAML structure"| D["Hayagriva Compliance"]
File Changes1. jablib/src/main/resources/resource/layout/hayagrivayaml.layout
|
Code Review by Qodo
1.
|
|
Note that your PR will not be reviewed/accepted until you have gone through the mandatory checks in the description and marked each of them them exactly in the format of |
|
Next time do not modify the PR template! Ensure that you go through the checklist or we will close it without review |
* upstream/main: Update PULL_REQUEST_TEMPLATE.md (#15788) New Crowdin updates (#15787) Update heylogs to 0.18.0 and use github-actions format (#15786) Grand refactoring of the AI features (#15688) Chore(deps): Bump com.fasterxml:aalto-xml in /versions (#15782) Chore(deps): Bump org.junit:junit-bom from 6.0.3 to 6.1.0 in /versions (#15783) Fix default value for unwanted characters (#15743) Fix runner tag Fix runner for JBang (PR) Fix duplicate finder progress counter incrementing on empty queue polls (#15781) Refine JabKit CLI: positional input argument and check command group (#15759) Ignore exception in unregisterListener to prevent exception (#15761) Fix wrong usage of "key" (#15779) Fix Hayagriva export to nest identifiers under serial-number (#15750)
…15750) * Fix Hayagriva export to nest DOI, ISBN, ISSN under serial- number * Removed typo from hayagrivayaml.layout * Add tests for Hayagriva serial-number export (issue JabRef#15713) * Described change in CHANGELOG.md * Add missing assertion in ISSN test --------- Co-authored-by: mollyytran <mtrann91@gmail.com>
Related issues and pull requests
Closes #15713
PR Description
Fixes #15713
The Hayagriva YAML exporter was writing DOI, ISBN, and ISSN as top-level entry fields. Per the Hayagriva file format spec, these
identifiers should be nested under
serial-number. Updated the Hayagriva layout template to conditionally emit aserial-numberblock and nest identifiers beneath it. Added unit tests for each identifier type.Steps to test
Author: John Smith
Title: Sample Title
DOI: 10.1109/EDOC.2018.00030
serial-number. Note: ISBN only exists for 'book' entry type.AI usage
Claude Code (model claude-opus-4.6)
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)