Skip to content

Commit

Permalink
Fixed an error where an unused variable 'linkset' was being used for …
Browse files Browse the repository at this point in the history
…FGDC metadata (error originating from 27ec1be).
  • Loading branch information
ahmdthr authored and tomkralidis committed Dec 8, 2023
1 parent f8ff0b4 commit e15e078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycsw/plugins/outputschemas/fgdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def write_record(recobj, esn, context, url=None):
rlinks = util.getqattr(recobj, context.md_core_model['mappings']['pycsw:Links'])
if rlinks:
for link in util.jsonify_links(rlinks):
etree.SubElement(citeinfo, 'onlink', type=linkset[2]).text = link['url']
etree.SubElement(citeinfo, 'onlink', type=link['protocol']).text = link['url']

# metd
metainfo = etree.SubElement(node, 'metainfo')
Expand Down

0 comments on commit e15e078

Please sign in to comment.