correspSearch / CMIF-Creator

Browser-based editor to create CMIF-XML file.
https://correspsearch.net/en/cmif-creator.html
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Import adds all attributes to title #26

Open rettinghaus opened 1 year ago

rettinghaus commented 1 year ago

When a file is imported where the title carries multiple attributes, these will appear in the title field as JSON. Only the text() should be considered.

Example input:

<titleStmt>
    <title xml:id="titleID" type="main">Test</title>
    <editor xml:id="editorID">Erika Mustermann</editor>
</titleStmt>

leads to:

{  "xml:id": "titleID",  "type": "main",  "#text": "Test"}