/
FieldMapping.xml
60 lines (57 loc) · 3.33 KB
/
FieldMapping.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="utf-8" ?>
<ImportMapping xmlns="http://schemas.stefanolsen.com/inRiver/ImportMapping">
<XmlNamespaces>
<Namespace Prefix="" Uri="http://schemas.stefanolsen.com/inRiver/TestCatalog"/>
<Namespace Prefix="ns" Uri="http://schemas.stefanolsen.com/inRiver/TestCatalog"/>
</XmlNamespaces>
<Languages>
<Language Original="da" InRiver="da"/>
<Language Original="en" InRiver="en"/>
</Languages>
<Entity EntityType="Product" Root="/ns:catalog-export/ns:product" UniqueFieldType="ProductNumber">
<!-- Product fields -->
<Fields>
<StringField FieldType="ProductNumber" ElementPath="./@id"/>
<LocaleStringField FieldType="ProductName" ElementPath="ns:product-name"/>
<CvlField FieldType="ProductBrand" Cvl="Brand" AddValues="true" ElementPath="ns:brand"/>
<CvlField FieldType="ProductMainCategory" Cvl="MainCategory" AddValues="true" ElementPath="ns:main-category"/>
<CvlField FieldType="ProductSubCategory" Cvl="SubCategory" AddValues="true" ElementPath="ns:sub-category"/>
<CvlField FieldType="ProductMarket" Cvl="Market" AddValues="true" Multivalue="true" ElementPath="ns:markets/market"/>
<CvlField FieldType="ProductFashionGender" Cvl="Gender" AddValues="true" Multivalue="true" ElementPath="ns:genders/gender"/>
<CvlField FieldType="ProductIndustry" Cvl="Industry" ElementPath="ns:industry"/>
</Fields>
<FieldSets XPath="ns:industry">
<FieldSet FieldSetName="DIYProduct" Value="diy"/>
<FieldSet FieldSetName="FashionProduct" Value="fashionretail"/>
<FieldSet FieldSetName="FashionRetailComposition" Value="fashionretail"/>
<FieldSet FieldSetName="Food" Value="food"/>
<FieldSet FieldSetName="FurnitureProduct" Value="furniture"/>
<FieldSet FieldSetName="ManufacturingProduct" Value="manufacturing"/>
<FieldSet FieldSetName="RetailElectronicsProduct" Value="fashionretail"/>
</FieldSets>
<!-- Sub-entities -->
<Entity EntityType="Item" Root="descendant::ns:variant" UniqueFieldType="ItemNumber">
<Fields>
<StringField FieldType="ItemNumber" ElementPath="./@id"/>
<StringField FieldType="ItemUPCcode" ElementPath="ns:upc"/>
<CvlField FieldType="ItemIndustry" Cvl="Industry" ElementPath="ns:industry"/>
<CvlField FieldType="ItemFashionSeason" Cvl="ItemSeason" AddValues="true" Multivalue="true" ElementPath="ns:seasons/season"/>
</Fields>
<FieldSets XPath="ns:industry">
<FieldSet FieldSetName="DIYItem" Value="diy"/>
<FieldSet FieldSetName="DIYItem2" Value="diy"/>
<FieldSet FieldSetName="FashionItem" Value="fashionretail"/>
<FieldSet FieldSetName="FashionRetailComposition" Value="fashionretail"/>
<FieldSet FieldSetName="ItemFood" Value="food"/>
<FieldSet FieldSetName="ItemDIYLawnMower" Value="diy"/>
<FieldSet FieldSetName="ItemManufacturingSolarConnections" Value="manufacturing"/>
<FieldSet FieldSetName="ManufacturingWaterHeater" Value="manufacturing"/>
<FieldSet FieldSetName="RetailElectronicsItem" Value="fashionretail"/>
<FieldSet FieldSetName="WirelessHeadset" Value="fashionretail"/>
</FieldSets>
<ParentLinks>
<Link LinkType="ProductItem" SourcePath="string(../@id)" TargetUniqueFieldType="ProductNumber"/>
</ParentLinks>
</Entity>
</Entity>
</ImportMapping>