Skip to content

Commit 07aed78

Browse files
committed
fix: Updated codemeta handling to include maintainers
1 parent eb4c66f commit 07aed78

File tree

5 files changed

+48
-1
lines changed

5 files changed

+48
-1
lines changed

CITATION.cff

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ authors:
99
given-names: R. S.
1010
orcid: "https://orcid.org/0000-0003-0900-6903"
1111

12+
13+
1214
repository-code: "https://github.com/caltechlibrary/datatools"
1315
version: 1.1.4
1416
license-url: "https://data.caltech.edu/license"

about.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ A set of command line tools for working with CSV, Excel Workbooks, JSON
3030
and structured text documents.
3131

3232

33+
34+
A set of command line tools for working with CSV, Excel Workbooks, JSON
35+
and structured text documents.
36+
37+
A set of command line tools for working with CSV, Excel Workbooks, JSON
38+
and structured text documents.
39+
40+
3341
- License: https://data.caltech.edu/license
3442
- GitHub: https://github.com/caltechlibrary/datatools
3543
- Issues: https://github.com/caltechlibrary/datatools/issues

codemeta-cff.tmpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ ${for(author)}
99
given-names: ${it.givenName}
1010
orcid: "${it.at__id}"
1111
${endfor}${endif}
12+
${if(contributor)}contributors:
13+
${for(contributor)}
14+
- family-names: ${it.familyName}
15+
given-names: ${it.givenName}
16+
orcid: "${it.at__id}"
17+
${endfor}${endif}
18+
${if(maintainer)}maintainers:
19+
${for(maintainer)}
20+
- family-names: ${it.familyName}
21+
given-names: ${it.givenName}
22+
orcid: "${it.at__id}"
23+
${endfor}${endif}
1224
${if(codeRepository)}repository-code: "${codeRepository}"${endif}
1325
${if(version)}version: ${version}${endif}
1426
${if(license)}license-url: "${license}"${endif}

codemeta-md.tmpl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,30 @@ ${if(description)}
3434
${description}
3535
${endif}
3636

37+
${if(contributor)}
38+
### Contributors
39+
40+
${for(contributor)}
41+
- ${it.givenName} ${it.familyName}
42+
${endfor}
43+
${endif}
44+
45+
${if(maintainer)}
46+
### Maintainers
47+
48+
${for(maintainer)}
49+
- ${it.givenName} ${it.familyName}
50+
${endfor}
51+
${endif}
52+
53+
${if(description)}
54+
${description}
55+
${endif}
56+
57+
${if(description)}
58+
${description}
59+
${endif}
60+
3761

3862
${if(license)}- License: ${license}${endif}
3963
${if(codeRepository)}- GitHub: ${codeRepository}${endif}

codemeta/codemeta.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ type Codemeta struct {
3636
Version string `json:"version"`
3737
Author []*PersonOrOrganization `json:"author"`
3838
Contributor []*PersonOrOrganization `json:"contributor,omitempty"`
39+
Maintainer []*PersonOrOrganization `json:"maintainer,omitempty"`
3940
Editor []*PersonOrOrganization `json:"editor,omitempty"`
4041
DevelopmentStatus string `json:"developmentStatus"`
4142
DownloadURL string `json:"downloadUrl"`
4243
Keywords []string `json:"keywords"`
43-
Maintainer string `json:"maintainer,omitempty"`
44+
//Maintainer string `json:"maintainer,omitempty"`
4445
Funder []*PersonOrOrganization `json:"funder,omitempty"`
4546
CopyrightHolder []*PersonOrOrganization `json:"copyrightHolder,omitempty"`
4647
CopyrightYear string `json:"copyrightYear,omitempty"`

0 commit comments

Comments
 (0)