[Archivesspace_Users_Group] malformed EAD export
Chris Fitzpatrick
Chris.Fitzpatrick at lyrasis.org
Fri Feb 27 08:47:00 EST 2015
Also, fyi, the immediate fix would be to remove the double line break preceding </blockquote> ( line 6 in your example ).
b,chris.
Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat | Phone: 918.236.6048
http://archivesspace.org/
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Chris Fitzpatrick <Chris.Fitzpatrick at lyrasis.org>
Sent: Friday, February 27, 2015 10:58 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] malformed EAD export
Hi Steven,
Ah, ok...so this is an unintented consequence of the decesion to convert all note <p>s to double line breaks on import and then wrap all double line breaks in <p> on export.
Hm. I think the problem is just with the export...if we try and catch all text that might start with < and end with > we should know not to wrap xml tags.
Will try and put a fix in.
Thanks!
b,chris.
Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat | Phone: 918.236.6048
http://archivesspace.org/
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Steven Majewski <sdm7g at virginia.edu>
Sent: Friday, February 27, 2015 12:09 AM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] malformed EAD export
I imported a valid EAD file into ArchivesSpace.
Exporting to EAD again produced malformed xml.
The problem was with this fragment in the bioghist :
<p>
<blockquote>
<p>"As a child, before I could read, I determined as I
looked at my father's great books and saw how they
interested him, to become an author and by the time I
could spell words of one syllable I began to write, but
in prose. One night when I was still a boy I went into
my own room, and for the five-hundreth time, began to
read out of Routledge's little volume of
Edgar Poe's poems. Suddenly,
something stirred me till I shuddered with intense
excitement. "I felt as if a star had burst within my
brain." I fell on my knees and prayed as I only could
pray then, and thanked my Creator for having made me a
poet!"</p>
</blockquote>
</p>
The result looks fine in the admin display in both the Raw and Formatted views.
But if I click on EDIT and look at the text, the implicit paragraph breaks are more visible.
[ Text below with line numbers added to the front because I expect it’ll get wrapped by email. ]
(1)II
(2)
(3) John Henry Ingram was born on November 16, 1842, at 29 City Road, Finnsbury, Middlesex, and spent his childhood in Stoke Newington, the London suburb where young Poe had himself lived. The Stoke Newington Manor House School, which Poe describes in "William Wilson," was standing in Ingram's youth, and he was quite conscious of it as a tangible link between his own life and Poe's. On March 6, l874, Ingram wrote an autobiographical account to Sarah Helen Whitman, clearly acknowledging Poe's influence on his early life:
(4)
(5) <blockquote> "As a child, before I could read, I determined as I looked at my father's great books and saw how they interested him, to become an author and by the time I could spell words of one syllable I began to write, but in prose. One night when I was still a boy I went into my own room, and for the five-hundreth time, began to read out of Routledge's little volume of Edgar Poe's poems. Suddenly, something stirred me till I shuddered with intense excitement. "I felt as if a star had burst within my brain." I fell on my knees and prayed as I only could pray then, and thanked my Creator for having made me a poet!"
(6)
(7)</blockquote>
(8)
Those implicit paragraphs get inserted into the exported EAD.xml without regard of the existing <blockquote> element,
serializing it as malformed : <p><blockqoute></p><p></blockquote></p>
<p> II</p><p> John Henry Ingram was born on November 16, 1842, at 29 City Road, Finnsbury, Middlesex, and spent his childhood in Stoke Newington, the London suburb where young Poe had himself lived. The Stoke Newington Manor House School, which Poe describes in "William Wilson," was standing in Ingram's youth, and he was quite conscious of it as a tangible link between his own life and Poe's. On March 6, l874, Ingram wrote an autobiographical account to Sarah Helen Whitman, clearly acknowledging Poe's influence on his early life:</p><p> <blockquote> "As a child, before I could read, I determined as I looked at my father's great books and saw how they interested him, to become an author and by the time I could spell words of one syllable I began to write, but in prose. One night when I was still a boy I went into my own room, and for the five-hundreth time, began to read out of Routledge's little volume of Edgar Poe's poems. Suddenly, something stirred me till I shuddered with intense excitement. "I felt as if a star had burst within my brain." I fell on my knees and prayed as I only could pray then, and thanked my Creator for having made me a poet!"</p><p> </blockquote> </p><p>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150227/50653993/attachment.html>
More information about the Archivesspace_Users_Group
mailing list