Skip to content

Commit

Permalink
fix writelist
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed May 13, 2024
1 parent 1adfebe commit eda0d94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
},
}

Expand Down
10 changes: 4 additions & 6 deletions crossrefxml/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "", " ")
Expand Down

0 comments on commit eda0d94

Please sign in to comment.