Skip to content

Commit

Permalink
add layername/desc to dct:references
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten committed Nov 20, 2024
1 parent 4a27826 commit 1161bf0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pycsw/core/schemas/ogc/csw/2.0.2/rec-dcmes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>
</xs:sequence>
<xs:attribute name="scheme" type="xs:anyURI" use="optional"/>
<xs:attribute name="name" use="optional"/>
<xs:attribute name="description" use="optional"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
Expand Down
5 changes: 4 additions & 1 deletion pycsw/ogc/csw/csw2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,10 @@ def _write_record(self, recobj, queryables):
self.parent.context.namespaces))
if link.get('protocol'):
ref.attrib['scheme'] = link['protocol']

if link.get('name'):
ref.attrib['name'] = link['name']
if link.get('description'):
ref.attrib['description'] = link['description']
ref.text = link['url']

for i in ['dc:relation', 'dct:modified', 'dct:abstract']:
Expand Down
4 changes: 4 additions & 0 deletions pycsw/ogc/csw/csw3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,10 @@ def _write_record(self, recobj, queryables):
self.parent.context.namespaces))
if link.get('protocol'):
ref.attrib['scheme'] = link['protocol']
if link.get('name'):
ref.attrib['name'] = link['name']
if link.get('description'):
ref.attrib['description'] = link['description']
ref.text = link['url']

for i in ['dc:relation', 'dct:modified', 'dct:abstract']:
Expand Down

0 comments on commit 1161bf0

Please sign in to comment.