@@ -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 ) &&
@@ -2280,7 +2280,7 @@ private void createPartyTypeMappings()
22802280 {
22812281 PartyType partyType = partyTypes . FirstOrDefault ( p => p . Title . Equals ( "Organization" ) ) ;
22822282 //FirstName
2283- string complexAttrName = "Metadata/Metadata/MetadataType /Owners/OwnersType /Owner/Contact/Organisation/Organisation/Name/Label/Representation/RepresentationType " ;
2283+ string complexAttrName = "Metadata/Metadata/ContentMetadata /Owners/OwnersXmlSchemaComplexType /Owner/Contact/Organisation/Organisation/Name/Label/Representation/RepresentationXmlSchemaComplexType " ;
22842284
22852285 if ( partyCustomAttrs . Any (
22862286 pAttr => pAttr . Name . Equals ( "Name" ) && pAttr . PartyType . Id . Equals ( partyType . Id ) ) )
@@ -2344,7 +2344,7 @@ private void createPartyTypeMappings()
23442344 PartyType partyType = partyTypes . FirstOrDefault ( p => p . Title . Equals ( "Person" ) ) ;
23452345 //FirstName
23462346
2347- string complexAttrName = "individualNameType " ;
2347+ string complexAttrName = "individualNameXmlSchemaComplexType " ;
23482348
23492349 if ( partyCustomAttrs . Any (
23502350 pAttr => pAttr . Name . Equals ( "FirstName" ) && pAttr . PartyType . Id . Equals ( partyType . Id ) ) )
@@ -2400,15 +2400,15 @@ private void createPartyTypeMappings()
24002400 {
24012401 createToPartyReleationMapping (
24022402 "givenName" , LinkElementType . MetadataNestedAttributeUsage ,
2403- "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage ,
2403+ "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage ,
24042404 partyRelationshipType , rootTo , metadataRef ,
24052405 mappingManager ,
24062406 metadataAttributeManager ,
24072407 new TransformationRule ( ) ) ;
24082408
24092409 createFromPartyReleationMapping (
24102410 "givenName" , LinkElementType . MetadataNestedAttributeUsage ,
2411- "Metadata/creator/creatorType /individualName" , LinkElementType . MetadataAttributeUsage ,
2411+ "Metadata/creator/agentType /individualName" , LinkElementType . MetadataAttributeUsage ,
24122412 partyRelationshipType , rootFrom , metadataRef ,
24132413 mappingManager ,
24142414 metadataAttributeManager ,
@@ -2902,7 +2902,7 @@ private void createBioSchemaOrgMappingMapping()
29022902 createMappingKeyMapping (
29032903 "givenName" ,
29042904 LinkElementType . MetadataNestedAttributeUsage ,
2905- "Metadata/creator/creatorType /individualName" ,
2905+ "Metadata/creator/agentType /individualName" ,
29062906 LinkElementType . MetadataAttributeUsage ,
29072907 givenName ,
29082908 creator ,
@@ -2920,7 +2920,7 @@ private void createBioSchemaOrgMappingMapping()
29202920 createMappingKeyMapping (
29212921 "surName" ,
29222922 LinkElementType . MetadataNestedAttributeUsage ,
2923- "Metadata/creator/creatorType /individualName" ,
2923+ "Metadata/creator/agentType /individualName" ,
29242924 LinkElementType . MetadataAttributeUsage ,
29252925 familyName ,
29262926 creator ,
@@ -3029,7 +3029,7 @@ private void createBioSchemaOrgMappingMapping()
30293029 createMappingKeyMapping (
30303030 "url" ,
30313031 LinkElementType . MetadataNestedAttributeUsage ,
3032- "Metadata/distribution/distributionType /online" ,
3032+ "Metadata/distribution/distributionXmlSchemaComplexType /online/onlineXmlSchemaComplexType " ,
30333033 LinkElementType . MetadataAttributeUsage ,
30343034 url ,
30353035 null ,
0 commit comments