Skip to content

Commit

Permalink
fix ror id in crossrefxml
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed May 13, 2024
1 parent 42db45d commit bd47ea5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.6 -- HEAD")
fmt.Println("Commonmeta v0.3.7 -- HEAD")
},
}

Expand Down
2 changes: 1 addition & 1 deletion crossrefxml/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ type Institution struct {

type InstitutionID struct {
XMLName xml.Name `xml:"institution_id"`
IDType string `xml:"id_type,attr,omitempty"`
Type string `xml:"type,attr,omitempty"`
Text string `xml:",chardata"`
}

Expand Down
4 changes: 2 additions & 2 deletions crossrefxml/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func Convert(data commonmeta.Data) (Crossref, error) {
if a.Name != "" {
if a.ID != "" {
institutionID := &InstitutionID{
IDType: "ror",
Text: a.ID,
Type: "ror",
Text: a.ID,
}
institution = append(institution, Institution{
InstitutionID: institutionID,
Expand Down

0 comments on commit bd47ea5

Please sign in to comment.