Skip to content

Commit

Permalink
fix crossrefxml organization contributor
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Jun 11, 2024
1 parent 09f3ea7 commit 7388fce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var versionCmd = &cobra.Command{
Short: "Print the version number of commonmeta",
Long: `All software has versions. This is commonmeta's`,
Run: func(cmd *cobra.Command, args []string) {
cmd.Println("Commonmeta v0.3.20 -- HEAD")
cmd.Println("Commonmeta v0.3.21 -- HEAD")
},
}

Expand Down
1 change: 0 additions & 1 deletion crossrefxml/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ type Organization struct {
ContributorRole string `xml:"contributor_role,attr"`
Sequence string `xml:"sequence,attr"`
Text string `xml:",chardata"`
Name string `xml:"name"`
}

type OriginalLanguageTitle struct {
Expand Down
2 changes: 1 addition & 1 deletion crossrefxml/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func Convert(data commonmeta.Data) (Body, error) {
organization = append(organization, Organization{
ContributorRole: contributorRole,
Sequence: sequence,
Name: contributor.Name,
Text: contributor.Name,
})
} else {
if len(contributor.Affiliations) > 0 {
Expand Down

0 comments on commit 7388fce

Please sign in to comment.