geonetwork / geonetwork/core-geonetwork
Accessibility issue: PDF List elements are not structured correctly
- Dominant language
- Java
- Stars
- 521
- Forks
- 514
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
Hi,
It appears that the list elements in the PDF view of the record (the one you download from the full or default record view) are not structured correctly. The LI element is not a child of L, and the Lbl and LBody elements are not children of LI. I didn't manage to find where the PDF is being built so I couldn't look to see if I can fix this, would you be able to point me in the right direction?
**To Reproduce**
Steps to reproduce the behaviour:
1. View any metadata record (either in default or full view)
2. Download the record as PDF
3. Open the PDF in Acrobat Reader Pro
4. See the error in the Lists section of the Accessibility Checker (also in the screenshot below)
**Expected behaviour**
It is expected that a list element must contain list item elements and list item elements must only contain label elements and list item body elements.
**Screenshots**

Contributor guide
Research direction
Reproduce the issue by downloading a metadata record in default or full view and checking the PDF with Acrobat Reader Pro’s Accessibility Checker. Locate the PDF-generation entry point, then verify that the list structure uses L, LI, Lbl, and LBody in the expected hierarchy and confirm the checker no longer reports the Lists error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- accessibility
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100