From 7388fce653afc0a2bcc550e23579a43c6cc7fb53 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 11 Jun 2024 21:06:28 +0200 Subject: [PATCH] fix crossrefxml organization contributor --- cmd/version.go | 2 +- crossrefxml/reader.go | 1 - crossrefxml/writer.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/version.go b/cmd/version.go index 787f465..b68b182 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -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") }, } diff --git a/crossrefxml/reader.go b/crossrefxml/reader.go index e8f3378..e1f0290 100644 --- a/crossrefxml/reader.go +++ b/crossrefxml/reader.go @@ -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 { diff --git a/crossrefxml/writer.go b/crossrefxml/writer.go index bf6b6de..4146323 100644 --- a/crossrefxml/writer.go +++ b/crossrefxml/writer.go @@ -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 {