cceh / mea-atom-installation

Atom installation scripts for MEA
0 stars 0 forks source link

Unescaped angle brakets break EAD exports #9

Open pdaengeli opened 10 years ago

pdaengeli commented 10 years ago

When attempting to export Meister Eckhart-Archiv (Fonds) or Lateinische Werke (Subfonds) as EAD 2002 XML, the following error is thrown:

This page contains the following errors:
error on line 493 at column 466: Opening and ending tag mismatch: SK line 0 and p
Below is a rendering of the page up to the first error.

This error is provoked by the entry Item 1943-07-26 - Decker, B. an Koch, J. („Herr Professor“) (Altlandsberg, 26.7.1943) within Briefwechsel, specifically by the expression Bezeichnung des Aegidius Romanus als „Hauptgegner E.s &lt;SK&gt;“ und als „negative Quelle“ (<and > are not being escaped and thus interpreted as XML).

This relatively small and local error causes the failure of all exports that contain this entry (e.g. Lateinische Werke, Sentenzenkommentar).

[All exports that do not contain the troublesome entry work fine. For the tables already present we can take care of the replacement.]

Currently, any error of this kind prevents the generation of encompassing EAD exports, which is not desirable. It would be great if such problems could be captured in a way that allows for successful EAD exports mentioning troublesome areas, ideally at the very beginning of the XML file (e.g. by telling This export omitted the following erroneous entries: MEA/LW/SK/BW/1943-07-26).

[Regarding the actual error itself the MEA-team would best be advised to refrain from using angle brackets altogether. For the tables that we got by now we can (and should) take care of the replacement.]

gioele commented 10 years ago

I think this is connected to the AtoM bug #6787: https://projects.artefactual.com/issues/6787. It should be fixed now, but we will still see this error until we install the new version.

gioele commented 10 years ago

For the records, I filed also a new bug: https://projects.artefactual.com/issues/7026