Skip to content
Permalink
Browse files

fix ISO metadata link validity (#5668)

  • Loading branch information...
tomkralidis committed Oct 20, 2018
1 parent 8267fa6 commit db9dc5a77b46d8eb8be58053d20dc0e96bffafcc
Showing with 2 additions and 3 deletions.
  1. +2 −3 mapmetadata.c
@@ -450,11 +450,10 @@ xmlNodePtr _msMetadataGetContact(xmlNsPtr namespace, char *contact_element, mapO
if (value)
xmlAddChild(psCIAddressNode, _msMetadataGetCharacterString(namespace, "electronicMailAddress", value));

psORNode = xmlNewChild(psCINode2, namespace, BAD_CAST "onlineResource", NULL);
psORNode2 = xmlNewChild(psORNode, namespace, BAD_CAST "CI_OnlineResource", NULL);

value = (char *)msOWSLookupMetadata(&(map->web.metadata), "MCFO", "onlineresource");
if (value)
psORNode = xmlNewChild(psCINode2, namespace, BAD_CAST "onlineResource", NULL);
psORNode2 = xmlNewChild(psORNode, namespace, BAD_CAST "CI_OnlineResource", NULL);
xmlAddChild(psORNode2, _msMetadataGetURL(namespace, "linkage", value));

xmlAddChild(psCNode, _msMetadataGetCodeList(namespace, "role", "CI_RoleCode", "pointOfContact"));

0 comments on commit db9dc5a

Please sign in to comment.
You can’t perform that action at this time.