Skip to content

MarcXmlEncoder ouputs "leader" wrongly #336

@dr0i

Description

@dr0i

Reported by @hagbeck, this ouput is wrong:

<marc:controlfield tag="type"></marc:controlfield>
<marc:controlfield tag="leader">00424nam a2200024 c 4500</marc:controlfield>

It's produced opening a MarcXml file, using the following flux:

sourceFile|
open-file|
decode-xml|
handle-marcxml|
morph(morphFile, *)|
encode-marcxml|
write(targetFile);

with this simple '_elseNested' morph:

<?xml version="1.0" encoding="UTF-8"?>
<metamorph xmlns="http://www.culturegraph.org/metamorph"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1" entityMarker=".">
    <rules>
        <data source="_elseNested" />
    </rules>
</metamorph>

@hagbeck : do you know how exactly: the output should look like?

Results from #107.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions