@eventconnectors/ndtrc_model 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/util/CategoryMap.js +138 -0
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
const CategoryMap = {
|
|
2
|
+
categoryMap: {
|
|
3
|
+
'hedendaags|klassiek': { catId: '2.6.3', tags: 'music;classicalmusic;musicevent' },
|
|
4
|
+
'oud': { catId: '2.6.3', tags: 'music;classicalmusic;musicevent' },
|
|
5
|
+
'hedendaags': { catId: '2.6.3', tags: 'music;classicalmusic;musicevent' },
|
|
6
|
+
'concert': { catId: '2.6.5', tags: 'music;poprock;musicevent' },
|
|
7
|
+
'wereldmuziek': { catId: '2.6.2', tags: 'music;jazz;worldmusic;musicevent' },
|
|
8
|
+
'ballet': { catId: '2.9.2', tags: 'theatreproduction;dance' },
|
|
9
|
+
'clubnacht': { catId: '2.6.1', tags: 'music;clubbing;dancemusic;musicevent' },
|
|
10
|
+
'film': { catId: '2.5.2', tags: 'filmevent;documentaryfilm' },
|
|
11
|
+
'expositie': { catId: '2.3.14', tags: 'exhibition' },
|
|
12
|
+
'festival': { catId: '2.4.1', tags: 'festivals' },
|
|
13
|
+
'dance / elektronisch': { catId: '2.6.1', tags: 'music;clubbing;dancemusic;musicevent' },
|
|
14
|
+
'heavy': { catId: '2.6.5', tags: 'music;poprock;musicevent' },
|
|
15
|
+
'hiphop / reggae / soul': { catId: '2.6.6', tags: 'music;rbsoul;clubbing;hiphop;musicevent' },
|
|
16
|
+
'indie / alternative': { catId: '2.6.5', tags: 'music;poprock;musicevent' },
|
|
17
|
+
'pop': { catId: '2.6.5', tags: 'music;poprock;musicevent' },
|
|
18
|
+
'elektronisch|pop': { catId: '2.6.5', tags: 'music;poprock;musicevent' },
|
|
19
|
+
'world / roots / jazz': { catId: '2.6.2', tags: 'music;jazz;worldmusic;musicevent' },
|
|
20
|
+
'world / roots': { catId: '2.6.2', tags: 'music;jazz;worldmusic;musicevent' },
|
|
21
|
+
'jazz': { catId: '2.6.2', tags: 'music;jazz;worldmusic;musicevent' },
|
|
22
|
+
'bimhuis tipt': { catId: '2.6.2', tags: 'music;jazz;worldmusic;musicevent' },
|
|
23
|
+
'muziek': { catId: '2.6.5', tags: 'music;poprock;musicevent' },
|
|
24
|
+
'cabaret': { catId: '2.9.1', tags: 'performingarts;comedy;comedyevents;' },
|
|
25
|
+
'danstheater': { catId: '2.9.2', tags: 'dance;performingarts' },
|
|
26
|
+
'jeugd': { catId: '2.9.3', tags: 'performingarts;kids' },
|
|
27
|
+
'jeugdvoorstelling': { catId: '2.9.3', tags: 'performingarts;kids' },
|
|
28
|
+
'musical': { catId: '2.9.4', tags: 'musical;performingarts' },
|
|
29
|
+
'theater': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
30
|
+
'jeugdtheater': { catId: '2.9.6', tags: 'theatreproduction;performingarts;kids' },
|
|
31
|
+
'expanding theatre': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
32
|
+
'poppen- objecttheater': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
33
|
+
'muziektheater': { catId: '2.9.4', tags: 'theatreproduction;performingarts' },
|
|
34
|
+
'specials': { catId: '2.9.8', tags: 'theatreproduction;performingarts' },
|
|
35
|
+
'toneelmuziektheater': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
36
|
+
'internationaalmuziektheater': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
37
|
+
'muziektheaterinternationaal': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
38
|
+
'opera': { catId: '2.9.5', tags: 'opera;performingarts' },
|
|
39
|
+
'show': { catId: '2.9.4', tags: 'musical;performingarts' },
|
|
40
|
+
'educatie': { catId: '2.3.9', tags: 'performingarts;spokenword' },
|
|
41
|
+
'dans': { catId: '2.9.2', tags: 'dance;performingarts' },
|
|
42
|
+
'jeugddans': { catId: '2.9.2', tags: 'dance;performingarts;kids' },
|
|
43
|
+
'dansjeugd': { catId: '2.9.2', tags: 'dance;performingarts;kids' },
|
|
44
|
+
'dansjongeren': { catId: '2.9.2', tags: 'dance;performingarts' },
|
|
45
|
+
'dansinternationaal': { catId: '2.9.2', tags: 'dance;performingarts' },
|
|
46
|
+
'dans (lnp)': { catId: '2.9.2', tags: 'dance;performingarts' },
|
|
47
|
+
'performance': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
48
|
+
'toneel': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
49
|
+
'toneelinternationaal': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
50
|
+
'internationaaltoneel': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
51
|
+
'jeugdtoneel': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
52
|
+
'toneeldiversen': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
53
|
+
'kleinkunst': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
54
|
+
'diversentoneel': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
55
|
+
'poppen- en objecttheater': { catId: '2.9.6', tags: 'theatreproduction;performingarts' },
|
|
56
|
+
'2.6.3': { catId: '2.6.3', tags: 'music;classicalmusic;musicevent' },
|
|
57
|
+
'familie': { catId: '2.9.3', tags: 'performingarts;kids' },
|
|
58
|
+
'special': { catId: '2.6.8', tags: 'music' },
|
|
59
|
+
'vocal': { catId: '2.6.3', tags: 'music;classicalmusic;musicevent' },
|
|
60
|
+
'zwaargewicht': { catId: '2.9.8', tags: 'performingarts' },
|
|
61
|
+
'impro': { catId: '2.9.1', tags: 'performingarts;comedy;comedyevents' },
|
|
62
|
+
'regulars': { catId: '2.9.8', tags: 'performingarts' },
|
|
63
|
+
'laboratorium': { catId: '2.9.8', tags: 'performingarts' },
|
|
64
|
+
'theatrale lezing': { catId: '2.3.9', tags: 'performingarts;spokenword' },
|
|
65
|
+
'nieuw talent': { catId: '2.9.8', tags: 'performingarts' },
|
|
66
|
+
'van eigen bodem': { catId: '2.6.5', tags: 'music;poprock' },
|
|
67
|
+
'net bevestigd': { catId: '2.6.5', tags: 'music;poprock' },
|
|
68
|
+
'kindervoorstelling': { catId: '2.9.3', tags: 'performingarts;kids' },
|
|
69
|
+
'comedy': { catId: '2.9.1', tags: 'performingarts;comedy;comedyevents;' },
|
|
70
|
+
'storytelling': { catId: '2.3.9', tags: 'performingarts;spokenword' },
|
|
71
|
+
'nieuwe makers': { catId: '2.9.6', tags: 'theatreproduction;performingarts' }
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
categoryType: {
|
|
75
|
+
'Beurs': '2.3.1',
|
|
76
|
+
'Braderie': '2.3.2',
|
|
77
|
+
'Ceremonie': '2.3.24',
|
|
78
|
+
'Circus': '2.3.3',
|
|
79
|
+
'Congres': '2.3.4',
|
|
80
|
+
'Corso of Optocht': '2.3.5',
|
|
81
|
+
'Culinair': '2.3.6',
|
|
82
|
+
'Cultureel festival': '2.4.1',
|
|
83
|
+
'Excursie': '2.7.2',
|
|
84
|
+
'Fietstocht': '2.3.16',
|
|
85
|
+
'Filmfestival': '2.4.2',
|
|
86
|
+
'Folklore': '2.3.7',
|
|
87
|
+
'Grootstedelijk evenement': '2.3.23',
|
|
88
|
+
'Huifkartocht': '2.3.19',
|
|
89
|
+
'Jeugdfestival': '2.4.5',
|
|
90
|
+
'Kermis': '2.3.8',
|
|
91
|
+
'Koopavond': '2.3.22',
|
|
92
|
+
'Koopzondag': '2.3.21',
|
|
93
|
+
'Lezing/Debat': '2.3.9',
|
|
94
|
+
'Markt': '2.3.10',
|
|
95
|
+
'Muziekfestival': '2.4.3',
|
|
96
|
+
'Open Dag': '2.3.11',
|
|
97
|
+
'Rommelmarkt': '2.4.6',
|
|
98
|
+
'Rondleiding': '2.3.12',
|
|
99
|
+
'Sportevenement': '2.3.13',
|
|
100
|
+
'Theaterfestival': '2.4.4',
|
|
101
|
+
'Varia': '2.3.18',
|
|
102
|
+
'Wandeltocht': '2.3.17',
|
|
103
|
+
'Winkelen': '2.3.20',
|
|
104
|
+
'Workshop': '2.3.15',
|
|
105
|
+
'Film': '2.5.2',
|
|
106
|
+
'Dance': '2.6.1',
|
|
107
|
+
'Gezelschap/orkest': '2.6.9',
|
|
108
|
+
'Jazz': '2.6.10',
|
|
109
|
+
'Jazz of Wereldmuziek': '2.6.2',
|
|
110
|
+
'Klassieke muziek': '2.6.3',
|
|
111
|
+
'Lichte muziek': '2.6.4',
|
|
112
|
+
'Muziek overig': '2.6.8',
|
|
113
|
+
'Pop en Rock': '2.6.5',
|
|
114
|
+
'R&B en Soul': '2.6.6',
|
|
115
|
+
'Cabaret': '2.9.1',
|
|
116
|
+
'Dans en Ballet': '2.9.2',
|
|
117
|
+
'Jeugdtheater': '2.9.3',
|
|
118
|
+
'Musical of Show': '2.9.4',
|
|
119
|
+
'Opera': '2.9.5',
|
|
120
|
+
'Straattheater': '2.9.10',
|
|
121
|
+
'Theater en Toneel': '2.9.6',
|
|
122
|
+
'Theater overig': '2.9.8',
|
|
123
|
+
'Tentoonstelling': '2.3.14'
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
transformCategoryType() {
|
|
127
|
+
const transformedCategoryType = {};
|
|
128
|
+
for (const [key, value] of Object.entries(this.categoryType)) {
|
|
129
|
+
const matchingEntry = Object.entries(this.categoryMap).find(([_, entry]) => entry.catId === value);
|
|
130
|
+
transformedCategoryType[key] = matchingEntry
|
|
131
|
+
? matchingEntry[1]
|
|
132
|
+
: { catId: value, tags: '' };
|
|
133
|
+
}
|
|
134
|
+
return transformedCategoryType;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
module.exports = { CategoryMap };
|