From 03ad0098b374ed11d8d5e2cc65b097578cdc253d Mon Sep 17 00:00:00 2001 From: goose-life <32566441+goose-life@users.noreply.github.com> Date: Mon, 13 Jan 2025 09:17:05 +0200 Subject: [PATCH] add portionBody to CitationMatcher's xml_ancestor_xpath --- docpipe/matchers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docpipe/matchers.py b/docpipe/matchers.py index a5b1d40..7363c93 100644 --- a/docpipe/matchers.py +++ b/docpipe/matchers.py @@ -242,7 +242,7 @@ class CitationMatcher(TextPatternMatcher): html_marker_tag = "a" xml_marker_tag = "ref" xml_ancestor_xpath = '|'.join(f'//ns:{x}' - for x in ['coverpage', 'preface', 'preamble', 'body', 'mainBody', 'judgmentBody', 'conclusions']) + for x in ['coverpage', 'preface', 'preamble', 'body', 'mainBody', 'portionBody', 'judgmentBody', 'conclusions']) href_pattern = "/akn/" """ Subclasses must provide additional details for this based on their particular pattern_re."""