@@ -442,13 +442,13 @@ def getTheme(config, permissions, configItem, result, resultItem, project_settin
442
442
}
443
443
resultItem ["abstract" ] = getChildElementValue (root , [np ['ns' ] + "Service" , np ['ns' ] + "Abstract" ], ns )
444
444
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 )
446
446
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 )
452
452
}
453
453
454
454
resultItem ["wms_name" ] = wmsName (configItem ["url" ])
0 commit comments