ioos / ckanext-ioos-theme

IOOS Catalog as a CKAN extension
GNU Affero General Public License v3.0
7 stars 14 forks source link

Fix escaped XML character issue #131

Closed mwengren closed 7 years ago

mwengren commented 7 years ago

Some escaped characters in XML source aren't replaced in the rendering templates. This example dataset from PacIOOS shows the problem for GCMD Location Keywords: https://data.ioos.us/dataset/pacioos-ocean-gliders-seaglider-114-mission-3.

lukecampbell commented 7 years ago
          <gco:CharacterString>Continent &amp;gt; North America &amp;gt; United States Of America &amp;gt; Hawaii</gco:CharacterString>
        </gmd:keyword>
        <gmd:keyword>
          <gco:CharacterString>Ocean &amp;gt; Pacific Ocean &amp;gt; Central Pacific Ocean &amp;gt; Hawaiian Islands &amp;gt; Oahu</gco:CharacterString>

The contents are double-escaped.

Here's a link to the original: http://www.pacioos.hawaii.edu/metadata/iso/sg114_3_agg.xml

lukecampbell commented 7 years ago

Do we want to close this issue or re-purpose it to work with PacIOOS to correct the double-escaped values?

mwengren commented 7 years ago

I sent them an email today, forgot to send a link to the issue though. If I get a followup email I'll include a link to the issue. Let's leave it open for the moment and I'll close when I hear back from them.