• v1.0.2 4eccf18734

    ric_harvey released this 2026-03-26 18:45:48 +00:00 | 0 commits to main since this release

    Fixed

    • leg_get_section now correctly extracts titles from API responses — Dublin Core dc:title uses lowercase after namespace prefix removal, parser now checks both cases
    • leg_get_section now unwraps Pblock and P1group/P2group/P3group container elements that the real API uses to wrap section content inside <Body>
    • DocumentMainType lookup now navigates into DocumentClassification element where the real API nests it, and extracts the short type code (e.g. ukpga) from the URI instead of relying on the long form value (e.g. UnitedKingdomPublicGeneralAct)
    • extractStructuredText() now handles UnorderedList, OrderedList, ListItem, and Para elements for legislation containing bullet-point lists (e.g. Equality Act 2010 s.4)
    • parseContents() now handles ContentsPblock elements used in table of contents responses
    • Added SecondaryMetadata fallback for parsing statutory instruments

    Tests

    • 176 tests passing (up from 162), 86.43% branch coverage
    Downloads