Skip to content

specifing multiple xPath queries for a single field by separating them with a comma breaks xpath expressions that include a comma.  #3

@adamshire123

Description

@adamshire123

local marcSets = Utility.StringSplit(',', target.Value );

Specifing multiple xPath queries for a single field by separating them with a comma makes it so that xpath expressions that include a comma cannot be used.

An expression like this //datafield[@tag='035'][subfield[text()[contains(.,'(OCoLC)')]]][1] won't work because of the comma in the contains function

It is already possible to use xpath syntax to specify multiple xpath queries for a single field, like this
//datafield[@tag='100' or @tag='110' or @tag='111']/subfield[@code='a' or @code='b']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions