Why do non-formatted apostrophes seem to end an XML element?

5 views
Skip to first unread message

C S

unread,
11:38 AM (7 hours ago) 11:38 AM
to OAI-PMH
Hello folks,

So I'm at a library, and we've set up an OAI-PMH import from DSpace to Primo VE for some of our resources.  Since we use both French and English at my institution, many of the publications we receive from researchers start with L'

When the apostrophe is 'leaning', it renders correctly in oai-pmh, example:
LeaningApostropheDSpace_062526.png
LeanApostropheOAIPMH_062526.png
and it shows up correctly in Primo:
LeaningApostrophePrimo_062526.png

When the apostrophe is straight, it converts to  ' , and the rest of the title line after the apostrophe isn't treated as part of the title element, ie, in DSpace:
StraightApostropheDSpace_062526.png
In OAI-PMH interface:
StraightApostropheOAIPMH_062526.png
In Primo:
StraightApostrophePrimo_062526.png

What I think is happening:
The 'leaning' apostrophe is part of the UTF-8 encoding and renders properly in XML.  The 'straight' apostrophe isn't part of UTF-8 encoding, so it gets converted to  ' , and then the text is somehow getting split into separate chunks so there's two child elements for title.  

Does this make sense? Does anyone have a more precise/indepth explanation for what's happening? Either way, I guess the solution is just to use the leaning apostrophe.

Thanks all,
Carolyn.

Thomas Dowling

unread,
2:24 PM (4 hours ago) 2:24 PM
to oai...@googlegroups.com
That looks like the OAI-PMH part of things is correct, so it may be a bug in how Primo is importing it. 

What stage in the process breaks if you actually send the straight apostrophe character? Rather than trying to double-encode "'", what happens if you send the straight apostrophe as "&x39;"?

--

---
You received this message because you are subscribed to the Google Groups "OAI-PMH" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oai-pmh+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/oai-pmh/e5980b3c-2a26-4f1f-87c0-9458f20c6418n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages