Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 967620e

Browse files
committed
Fix getChildElementValue calls
1 parent e2631b3 commit 967620e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

themes_config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,13 @@ def getTheme(config, permissions, configItem, result, resultItem, project_settin
442442
}
443443
resultItem["abstract"] = getChildElementValue(root, [np['ns'] + "Service", np['ns'] + "Abstract"], ns)
444444
resultItem["keywords"] = ", ".join(keywords)
445-
resultItem["onlineResource"] = getChildElement(capabilities, "Service/OnlineResource").getAttribute("xlink:href")
445+
resultItem["onlineResource"] = getAttributeNS(getChildElement(root, [np['ns'] + "Service", np['ns'] + "OnlineResource"], ns), 'href', 'xlink', ns)
446446
resultItem["contact"] = {
447-
"person": getChildElementValue(capabilities, "Service/ContactInformation/ContactPersonPrimary/ContactPerson"),
448-
"organization": getChildElementValue(capabilities, "Service/ContactInformation/ContactPersonPrimary/ContactOrganization"),
449-
"position": getChildElementValue(capabilities, "Service/ContactInformation/ContactPosition"),
450-
"phone": getChildElementValue(capabilities, "Service/ContactInformation/ContactVoiceTelephone"),
451-
"email": getChildElementValue(capabilities, "Service/ContactInformation/ContactElectronicMailAddress")
447+
"person": getChildElementValue(root, [np['ns'] + "Service", np['ns'] + "ContactInformation", np['ns'] + "ContactPersonPrimary", np['ns'] + "ContactPerson"], ns),
448+
"organization": getChildElementValue(root, [np['ns'] + "Service", np['ns'] + "ContactInformation", np['ns'] + "ContactPersonPrimary", np['ns'] + "ContactOrganization"], ns),
449+
"position": getChildElementValue(root, [np['ns'] + "Service", np['ns'] + "ContactInformation", np['ns'] + "ContactPosition"], ns),
450+
"phone": getChildElementValue(root, [np['ns'] + "Service", np['ns'] + "ContactInformation", np['ns'] + "ContactVoiceTelephone"], ns),
451+
"email": getChildElementValue(root, [np['ns'] + "Service", np['ns'] + "ContactInformation", np['ns'] + "ContactElectronicMailAddress"], ns)
452452
}
453453

454454
resultItem["wms_name"] = wmsName(configItem["url"])

0 commit comments

Comments
 (0)