Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Sep 16, 2023
1 parent 2e4f328 commit aee700a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pycsw/plugins/profiles/apiso/apiso.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,11 @@ def write_record(self, result, esn, outputschema, queryables, caps=None):
protocol = etree.SubElement(online2, util.nspath_eval('gmd:protocol', self.namespaces))
etree.SubElement(protocol, util.nspath_eval('gco:CharacterString', self.namespaces)).text = link.get('protocol', 'WWW:LINK')

if 'name' in link:
name = etree.SubElement(online2, util.nspath_eval('gmd:name', self.namespaces))
etree.SubElement(name, util.nspath_eval('gco:CharacterString', self.namespaces)).text = link['name']
name = etree.SubElement(online2, util.nspath_eval('gmd:name', self.namespaces))
etree.SubElement(name, util.nspath_eval('gco:CharacterString', self.namespaces)).text = link.get('name')

if 'description' in link:
desc = etree.SubElement(online2, util.nspath_eval('gmd:description', self.namespaces))
etree.SubElement(desc, util.nspath_eval('gco:CharacterString', self.namespaces)).text = link['description']
desc = etree.SubElement(online2, util.nspath_eval('gmd:description', self.namespaces))
etree.SubElement(desc, util.nspath_eval('gco:CharacterString', self.namespaces)).text = link.get('description')

if 'function' in link:
desc = etree.SubElement(online2, util.nspath_eval('gmd:function', self.namespaces))
Expand Down

0 comments on commit aee700a

Please sign in to comment.