@@ -1706,15 +1706,15 @@ private void createSystemKeyMappings()
17061706 if ( Exist ( "givenName" , LinkElementType . MetadataNestedAttributeUsage , uow ) &&
17071707 Exist ( "individualName" , LinkElementType . MetadataAttributeUsage , uow ) )
17081708 {
1709- createToKeyMapping ( "givenName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootTo , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( "" , "givenName[0] surName[0]" ) ) ;
1710- createToKeyMapping ( "givenName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootFrom , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( @"\w+" , "Author[0]" ) ) ;
1709+ createToKeyMapping ( "givenName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootTo , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( "" , "givenName[0] surName[0]" ) ) ;
1710+ createToKeyMapping ( "givenName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootFrom , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( @"\w+" , "Author[0]" ) ) ;
17111711 }
17121712
17131713 if ( Exist ( "surName" , LinkElementType . MetadataNestedAttributeUsage , uow ) &&
17141714 Exist ( "individualName" , LinkElementType . MetadataAttributeUsage , uow ) )
17151715 {
1716- createToKeyMapping ( "surName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootTo , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( "" , "givenName[0] surName[0]" ) ) ;
1717- createToKeyMapping ( "surName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootFrom , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( @"\w+" , "Author[1]" ) ) ;
1716+ createToKeyMapping ( "surName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootTo , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( "" , "givenName[0] surName[0]" ) ) ;
1717+ createToKeyMapping ( "surName" , LinkElementType . MetadataNestedAttributeUsage , "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage , Key . Author , rootFrom , metadataRef , mappingManager , metadataAttributeManager , mappingManager . CreateTransformationRule ( @"\w+" , "Author[1]" ) ) ;
17181718 }
17191719
17201720 if ( Exist ( "title" , LinkElementType . MetadataAttributeUsage , uow ) &&
@@ -2242,7 +2242,7 @@ private void createPartyTypeMappings()
22422242 {
22432243 PartyType partyType = partyTypes . FirstOrDefault ( p => p . Title . Equals ( "Organization" ) ) ;
22442244 //FirstName
2245- string complexAttrName = "Metadata/Metadata/MetadataType /Owners/OwnersType /Owner/Contact/Organisation/Organisation/Name/Label/Representation/RepresentationType " ;
2245+ string complexAttrName = "Metadata/Metadata/ContentMetadata /Owners/OwnersXmlSchemaComplexType /Owner/Contact/Organisation/Organisation/Name/Label/Representation/RepresentationXmlSchemaComplexType " ;
22462246
22472247 if ( partyCustomAttrs . Any (
22482248 pAttr => pAttr . Name . Equals ( "Name" ) && pAttr . PartyType . Id . Equals ( partyType . Id ) ) )
@@ -2306,7 +2306,7 @@ private void createPartyTypeMappings()
23062306 PartyType partyType = partyTypes . FirstOrDefault ( p => p . Title . Equals ( "Person" ) ) ;
23072307 //FirstName
23082308
2309- string complexAttrName = "individualNameType " ;
2309+ string complexAttrName = "individualNameXmlSchemaComplexType " ;
23102310
23112311 if ( partyCustomAttrs . Any (
23122312 pAttr => pAttr . Name . Equals ( "FirstName" ) && pAttr . PartyType . Id . Equals ( partyType . Id ) ) )
@@ -2362,15 +2362,15 @@ private void createPartyTypeMappings()
23622362 {
23632363 createToPartyReleationMapping (
23642364 "givenName" , LinkElementType . MetadataNestedAttributeUsage ,
2365- "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage ,
2365+ "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage ,
23662366 partyRelationshipType , rootTo , metadataRef ,
23672367 mappingManager ,
23682368 metadataAttributeManager ,
23692369 new TransformationRule ( ) ) ;
23702370
23712371 createFromPartyReleationMapping (
23722372 "givenName" , LinkElementType . MetadataNestedAttributeUsage ,
2373- "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage ,
2373+ "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage ,
23742374 partyRelationshipType , rootFrom , metadataRef ,
23752375 mappingManager ,
23762376 metadataAttributeManager ,
@@ -2864,7 +2864,7 @@ private void createBioSchemaOrgMappingMapping()
28642864 createMappingKeyMapping (
28652865 "givenName" ,
28662866 LinkElementType . MetadataNestedAttributeUsage ,
2867- "Metadata/creator/creatorType /individualName" ,
2867+ "Metadata/creator/agentType /individualName" ,
28682868 LinkElementType . MetadataAttributeUsage ,
28692869 givenName ,
28702870 creator ,
@@ -2882,7 +2882,7 @@ private void createBioSchemaOrgMappingMapping()
28822882 createMappingKeyMapping (
28832883 "surName" ,
28842884 LinkElementType . MetadataNestedAttributeUsage ,
2885- "Metadata/creator/creatorType /individualName" ,
2885+ "Metadata/creator/agentType /individualName" ,
28862886 LinkElementType . MetadataAttributeUsage ,
28872887 familyName ,
28882888 creator ,
@@ -2991,7 +2991,7 @@ private void createBioSchemaOrgMappingMapping()
29912991 createMappingKeyMapping (
29922992 "url" ,
29932993 LinkElementType . MetadataNestedAttributeUsage ,
2994- "Metadata/distribution/distributionType /online" ,
2994+ "Metadata/distribution/distributionXmlSchemaComplexType /online/onlineXmlSchemaComplexType " ,
29952995 LinkElementType . MetadataAttributeUsage ,
29962996 url ,
29972997 null ,
0 commit comments