Skip to content

Commit 6c30a5d

Browse files
committed
suggestion for allowing multiple contacts having the same role
1 parent 725cc85 commit 6c30a5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/reference/mcf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ keywords_codelist|Optional|specific code list URL (for advanced use cases, else
173173

174174
### `contact`
175175

176-
MCFs can have 1..n `contact` sections as required using nesting. Example:
176+
MCFs can have 1..n `contact` sections as required using nesting. Role is used as key for any contact, if multiple contacts have the same role, you can add each of them by postfixing the role with an underscore and a unique string, e.g. `author_1`, `author_2`. Example:
177177

178178
```yaml
179179
contact:

pygeometa/schemas/iso19139/contact.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@
5252
</gmd:CI_Contact>
5353
</gmd:contactInfo>
5454
<gmd:role>
55-
<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeSpace="ISOTC211/19115" codeListValue="{{ role }}">{{ role }}</gmd:CI_RoleCode>
55+
<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeSpace="ISOTC211/19115" codeListValue="{{ role.split('_') | first }}">{{ role }}</gmd:CI_RoleCode>
5656
</gmd:role>
5757
</gmd:CI_ResponsibleParty>

0 commit comments

Comments
 (0)