Skip to content

Commit

Permalink
suggestion for allowing multiple contacts having the same role
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten committed Dec 1, 2022
1 parent 725cc85 commit 75ef8f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/reference/mcf.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ keywords_codelist|Optional|specific code list URL (for advanced use cases, else

### `contact`

MCFs can have 1..n `contact` sections as required using nesting. Example:
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 (e.g. `author`), you can add each of them by postfixing the role with an underscore and a unique string e.g. (`author_1`, `author_2`). Example:

```yaml
contact:
Expand Down
2 changes: 1 addition & 1 deletion pygeometa/schemas/iso19139/contact.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
</gmd:CI_Contact>
</gmd:contactInfo>
<gmd:role>
<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeSpace="ISOTC211/19115" codeListValue="{{ role }}">{{ role }}</gmd:CI_RoleCode>
<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>
</gmd:role>
</gmd:CI_ResponsibleParty>

0 comments on commit 75ef8f1

Please sign in to comment.