From eda0d94de41166ad2c0e7b1d0206b61453aee5ca Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 13 May 2024 11:49:38 +0200 Subject: [PATCH] fix writelist --- cmd/version.go | 2 +- crossrefxml/writer.go | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cmd/version.go b/cmd/version.go index 9664693..d91fce2 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -15,7 +15,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) { - fmt.Println("Commonmeta v0.3.1 -- HEAD") + fmt.Println("Commonmeta v0.3.2 -- HEAD") }, } diff --git a/crossrefxml/writer.go b/crossrefxml/writer.go index 8c98a35..a2d7208 100644 --- a/crossrefxml/writer.go +++ b/crossrefxml/writer.go @@ -407,12 +407,10 @@ func WriteAll(list []commonmeta.Data, account Account) ([]byte, []gojsonschema.R Registrant: account.Registrant, } doiBatch := DOIBatch{ - Xmlns: "http://www.crossref.org/schema/5.3.1", - Version: "5.3.1", - Xsi: "http://www.w3.org/2001/XMLSchema-instance", - SchemaLocation: "http://www.crossref.org/schema/5.3.1 ", - Head: head, - Body: body, + Xmlns: "http://www.crossref.org/schema/5.3.1", + Version: "5.3.1", + Head: head, + Body: body, } output, _ := xml.MarshalIndent(doiBatch, "", " ")