Skip to content

Container list block does not consider children of unittitle #80

@ctgraham

Description

@ctgraham

The Container List block draws the text() directly from unittitle:

$title = $this->xpath->evaluate('normalize-space(string(ead:did/ead:unittitle/text()))', $element);
$date = $this->xpath->evaluate('normalize-space(string(ead:did/ead:unitdate/text()))', $element);

but, unittitle may contain all text in its children. E.g.:

<did>
  <unittitle>
    <title render="italic">My Publication Name</title>
  </unittitle>
  <unitid>12.</unitid>
</did>

A quick fix is to pull text nodes from descendant-or-self.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions