diff --git a/src/caselawclient/responses/search_result.py b/src/caselawclient/responses/search_result.py index 8858db59..c4ab7fa4 100644 --- a/src/caselawclient/responses/search_result.py +++ b/src/caselawclient/responses/search_result.py @@ -172,15 +172,17 @@ def uri(self) -> DocumentURIString: @property def neutral_citation(self) -> str: """ - :return: The neutral citation of the search result + :return: The neutral citation of the search result, or the judgment it is a press summary of. """ - return self._get_xpath_match_string("search:extracted/uk:cite/text()") + return self._get_xpath_match_string( + "search:extracted/uk:cite/text()" + ) or self._get_xpath_match_string("search:extracted/akn:neutralCitation/text()") @property def name(self) -> str: """ - :return: The neutral citation of the search result + :return: The title of the search result's document """ return self._get_xpath_match_string("search:extracted/akn:FRBRname/@value")