Skip to content

Doesn't work on all valid MARCspec #13

@coandco

Description

@coandco

Hi!
I'm trying to use php-marc-spec to parse the MARCspec 5..$a{^1=3} ("give me the 'a' subfield of all 5xx fields whose first indicator is equal to 3"), but php-marc-spec improperly parses it to lump the subspec in with the subfield:

Array
(
    [0] => 5..$a{^1=3}
    [field] => 5..
    [1] => 5..
    [tag] => 5..
    [2] => 5..
    [subfields] => $a{^1=3}
    [4] => $a{^1=3}
)

Am I missing something? It seems like it should be valid MARCspec.

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