diff --git a/pkg/mappingRDV/mapping.go b/pkg/mappingRDV/mapping.go index acd43f3412e8fadc70db783ea567cfd79d4ef640..e653529d64f53cafbf014b6dcc86058ce5d8cd4d 100644 --- a/pkg/mappingRDV/mapping.go +++ b/pkg/mappingRDV/mapping.go @@ -907,8 +907,8 @@ func (m *MappingRDV) GetFacetGeneralAuthor() (key string, result []Element, ok b e := Element{ Text: a.Label, } - if len(a.Identifer) > 0 { - e.Link = fmt.Sprintf("facet:author:%s", a.Identifer[0]) + if len(a.Identifier) > 0 { + e.Link = fmt.Sprintf("facet:author:%s", a.Identifier[0]) } if len(a.Role) > 0 { e.Extended = map[string]json.RawMessage{} @@ -942,8 +942,8 @@ func (m *MappingRDV) GetFacetAutographScribe() (key string, result []Element, ok e := Element{ Text: a.Label, } - if len(a.Identifer) > 0 { - e.Link = fmt.Sprintf("facet:scribe:%s", a.Identifer[0]) + if len(a.Identifier) > 0 { + e.Link = fmt.Sprintf("facet:scribe:%s", a.Identifier[0]) } result = append(result, e) } @@ -972,8 +972,8 @@ func (m *MappingRDV) GetFacetPortraetsPictured() (key string, result []Element, e := Element{ Text: a.Label, } - if len(a.Identifer) > 0 { - e.Link = fmt.Sprintf("facet:scribe:%s", a.Identifer[0]) + if len(a.Identifier) > 0 { + e.Link = fmt.Sprintf("facet:scribe:%s", a.Identifier[0]) } result = append(result, e) } diff --git a/pkg/mappingRDV/mapping_test.go b/pkg/mappingRDV/mapping_test.go index 6c4a40d8dcf3e7ae1e243b3be5cd0b07f5857112..3f9723159e1600ce29e04992b4d03cc57eb83fa2 100644 --- a/pkg/mappingRDV/mapping_test.go +++ b/pkg/mappingRDV/mapping_test.go @@ -170,19 +170,19 @@ func TestMappingRDV(t *testing.T) { Name: "scribe", Agent: []*schema.Agent{ { - Identifer: []string{"(DE-588)118560093"}, - Label: "Karl V., Heiliges Römisches Reich, Kaiser (1500-1558)", - Role: []string{"scr"}, + Identifier: []string{"(DE-588)118560093"}, + Label: "Karl V., Heiliges Römisches Reich, Kaiser (1500-1558)", + Role: []string{"scr"}, }, { - Identifer: []string{"(DE-588)118718444"}, - Label: "Granvelle, Antoine Perrenot de (1517-1586)", - Role: []string{"scr", "aut"}, + Identifier: []string{"(DE-588)118718444"}, + Label: "Granvelle, Antoine Perrenot de (1517-1586)", + Role: []string{"scr", "aut"}, }, { - Identifer: []string{"(noid)Seld, V."}, - Label: "Seld, V.", - Role: []string{"scr", "aut"}, + Identifier: []string{"(noid)Seld, V."}, + Label: "Seld, V.", + Role: []string{"scr", "aut"}, }, }, }, @@ -190,14 +190,14 @@ func TestMappingRDV(t *testing.T) { Name: "author", Agent: []*schema.Agent{ { - Identifer: []string{"(DE-588)118718444"}, - Label: "Granvelle, Antoine Perrenot de (1517-1586)", - Role: []string{"scr", "aut"}, + Identifier: []string{"(DE-588)118718444"}, + Label: "Granvelle, Antoine Perrenot de (1517-1586)", + Role: []string{"scr", "aut"}, }, { - Identifer: []string{"(noid)Seld, V."}, - Label: "Seld, V.", - Role: []string{"scr", "aut"}, + Identifier: []string{"(noid)Seld, V."}, + Label: "Seld, V.", + Role: []string{"scr", "aut"}, }, }, }, diff --git a/pkg/schema/ubschema001.go b/pkg/schema/ubschema001.go index 8bcce3d38487583725934defb879d5197793d7d3..b73ac1882be7fb00f668ee9054bad81862d909f7 100644 --- a/pkg/schema/ubschema001.go +++ b/pkg/schema/ubschema001.go @@ -382,7 +382,7 @@ type Host struct { Part string `json:"part,omitempty"` PartSort string `json:"partSort,omitempty"` Identifier []string `json:"identifier,omitempty"` - InternalIdentifier string `json:"internalIdentifer,omitempty"` + InternalIdentifier string `json:"internalIdentifier,omitempty"` } type Url struct { @@ -475,9 +475,9 @@ type AgentFacets struct { } type Agent struct { - Identifer []string `json:"identifer,omitempty"` - Label string `json:"label"` - Role []string `json:"role,omitempty"` + Identifier []string `json:"identifier,omitempty"` + Label string `json:"label"` + Role []string `json:"role,omitempty"` } type ConceptFacets struct { @@ -486,8 +486,8 @@ type ConceptFacets struct { } type Concept struct { - Identifer []string `json:"identifer,omitempty"` - Label string `json:"label"` + Identifier []string `json:"identifier,omitempty"` + Label string `json:"label"` } type DateRangeFacets struct {