Bug #6330

AtoM removes SKOS href tag upon import in scope note

Added by Jessica Bushey almost 8 years ago. Updated almost 8 years ago.

Status:NewStart date:02/18/2014
Priority:LowDue date:
Assignee:Mike Cantelon% Done:


Category:XML import / export
Target version:-
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:


User wanted to include <a href> url </a> nested inside scope note for TERM in AtoM using SKOS.xml for import and export.

Unfortunately, AtoM is dropping the <a href> </a> tag upon import.

Suggested Fix
Support hyperlink tags inside scope note for TERM.

Comments made by Radda:

In the import process, when you get the value from an element, all the tags inside it are stripped from the value. In this case, if we're looking for the value of scopeNote, the <a> for the link is interpreted as a tag and removed from the value.

It's not an easy fix, because we'll need to look for <a> instead of <scopeNote>, or add a workaround to keep the <a> tags when getting the value for every field.

Link to the discussion in the user forum: https://groups.google.com/d/msg/ica-atom-users/uhkajtBnDOo/3e1vMjr06TIJ


#1 Updated by Jessica Bushey almost 8 years ago

That being said, a quick and dirty workaround would be to simply add the URL as text, not a hyperlink, into the scope note tag, that way a user could see it and then copy and past the link into a separate browser tab.

I find it interesting that we can import a hyperlink in the archival description EAD.xml

#2 Updated by Tim Hutchinson almost 8 years ago

Yes, especially since <a href> is not valid EAD markup! The hooks do seem to be there, maybe via the saveXML method? But I'm not sure how the skos import fits in.

Your suggested workaround is better than you've described, since http://xxx already renders as a hyperlink.

Also available in: Atom PDF