File: amazonde.sql

package info (click to toggle)
opendb 0.81p18-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,716 kB
  • ctags: 6,787
  • sloc: php: 50,213; sql: 3,098; sh: 272; makefile: 54; xml: 48
file content (474 lines) | stat: -rw-r--r-- 30,235 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
#
# amazonde.sql site plugin definition
#

#
# Cleanup
#
DELETE FROM s_site_plugin WHERE site_type = 'amazonde';
DELETE FROM s_site_plugin_conf WHERE site_type = 'amazonde';
DELETE FROM s_site_plugin_input_field WHERE site_type = 'amazonde';
DELETE FROM s_site_plugin_link WHERE site_type = 'amazonde';
DELETE FROM s_site_plugin_s_attribute_type_map WHERE site_type = 'amazonde';
DELETE FROM s_site_plugin_s_attribute_type_lookup_map WHERE site_type = 'amazonde';

INSERT INTO s_site_plugin (site_type, classname, order_no, title, image, description, external_url, items_per_page, more_info_url)
VALUES('amazonde', 'amazonde', 1, 'Amazon.de', 'amazonde.gif', 'A good source of CD, DVD (Region 2), VHS, Books, Games, etc.', 'http://www.amazon.de', 25, 'http://www.amazon.de/exec/obidos/ASIN/{amazdeasin}');

#
# Input Fields
#	
INSERT INTO s_site_plugin_input_field (site_type, field, order_no, description, prompt, field_type, default_value, refresh_mask)
VALUES('amazonde', 'title', 1, '', 'Title Search', 'text', '', '{title}');

INSERT INTO s_site_plugin_input_field (site_type, field, order_no, description, prompt, field_type, default_value, refresh_mask)
VALUES('amazonde', 'amazdeasin', 2, '', 'ASIN/ISBN Number', 'text', '', '{ifdef(amazdeasin,{amazdeasin},{if(s_item_type==BOOK,{isbn},\'\')})}');

#
# Links
#
INSERT INTO s_site_plugin_link(site_type, s_item_type_group, s_item_type, order_no, description, url, title_url)
VALUES('amazonde', '*', '*', 1, 'More Info', 'http://www.amazon.de/exec/obidos/ASIN/{amazdeasin}', '');

INSERT INTO s_site_plugin_link(site_type, s_item_type_group, s_item_type, order_no, description, url, title_url)
VALUES('amazonde', '*', 'GAME', 2, 'Screenshots', 'http://www.amazon.de/exec/obidos/tg/stores/detail/-/videogames/{amazdeasin}/pictures#more-pictures', NULL);

#
# Configuration
#
INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'CD', 'music-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'MP3', 'music-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'BOOK', 'books-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'GAME', 'video-games-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'VHS', 'vhs-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'DVD', 'dvd-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'VCD', 'dvd-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'DIVX', 'dvd-de');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_type_to_index_map', '', 'LD', 'dvd-de');

#
# title articles - overrides $CONFIG_VARS['item_input.title_articles']
# 
INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_input.title_articles', '', '0', 'Ein');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_input.title_articles', '', '1', 'Eine');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_input.title_articles', '', '2', 'Der');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_input.title_articles', '', '3', 'Die');

INSERT INTO s_site_plugin_conf (site_type, name, description, keyid, value)
VALUES('amazonde', 'item_input.title_articles', '', '4', 'Das');

#
# site variable to s_attribute_type mapping
#
INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'title', '*', '*', 'ALT_TITLE');

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'title', '*', '*', 'S_TITLE');

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'genre', 'VIDEO', '*', 'MOVIEGENRE');

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'genre', 'AUDIO', '*', 'MUSICGENRE');
	
INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'genre', '*', 'BOOK', 'BOOKGENRE');

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'genre', '*', 'GAME', 'GAMEGENRE');
	
INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'blurb', 'VIDEO', '*', 'MOVIE_PLOT');

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'blurb', 'AUDIO', '*', 'COMMENTS');

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'blurb', '*', 'BOOK', 'COMMENTS');	

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'blurb', '*', 'GAME', 'GAME_PLOT');	

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'listprice', 'VIDEO', '*', 'RET_PRICE');

INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
VALUES ('amazonde', 'listprice', '*', '*', 'COVERPRICE');

# Not sure about this one!
#INSERT INTO s_site_plugin_s_attribute_type_map(site_type, variable, s_item_type_group, s_item_type, s_attribute_type)
#VALUES ('amazonde', 'listprice', '*', '*', 'PREIS');

#
# site variable to s_attribute_type_lookup mapping
#
INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Antiquarische Bcher', 'ANTIQ' );

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Belletristik', 'BELL');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Brse & Geld', 'GELD');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Business & Karriere', 'BUS');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Computer & Internet', 'COMP');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Computers & Internet', 'COMP');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Erotik', 'EROS');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Fachbcher', 'FACH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Film, Kultur & Comics', 'FILM');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Gebrauchte Bcher', 'USED');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Hrbcher', 'HRCD');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Kinder- & Jugendbcher', 'KIND');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Kochen & Lifestyle', 'KOCH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Krimis & Thriller', 'KRIMI');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Lernen & Nachschlagen', 'LERNEN');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Musiknoten', 'MUSIK');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Naturwissenschaften & Technik', 'NATUR');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Politik, Biografien & Geschichte', 'POLITIK');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Preis-Hits', 'PREIS');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Ratgeber', 'RATGEBER');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Reise & Sport', 'REISE');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Religion & Esoterik', 'RELIGION');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Science Fiction, Fantasy & Horror', 'SCIFI');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'English Books', 'INTERNAT');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'E-Books', 'EBOOK');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Bestseller aller Ressorts', 'BESTSELL');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Bcher in den Medien', 'BIDM');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Zeitschriften', 'SCHRIFT');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Amazon.de-Sonderausgaben', 'SONDER');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map ( site_type, s_attribute_type, value, lookup_attribute_val ) 
VALUES ( 'amazonde', 'BOOKGENRE', 'Kinderwelt', 'KINDER');
			
INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'PlayStation', 'PS1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'PlayStation2', 'PS2');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Sega Dreamcast', 'DREAMCAST');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Nintendo 64', 'N64');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'GameCube', 'GAMECUBE');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Xbox', 'XBOX');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Game Boy Color', 'GAMEBOY');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Game Boy', 'GAMEBOY');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Game Boy Advance', 'GAMEBOYADVANCE');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Mac OS', 'MACCDROM');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMESYSTEM', 'Windows', 'PCCDROM');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMERATING', 'Freigegeben ohne Altersbeschrnkung gem  14 JuSchG', 'USK0');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMERATING', 'Freigegeben ab 6 Jahren gem  14 JuSchG', 'USK6');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMERATING', 'Freigegeben ab 12 Jahren gem  14 JuSchG', 'USK12');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMERATING', 'Freigegeben ab 16 Jahren gem  14 JuSchG', 'USK16');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'GAMERATING', 'Keine Jugendfreigabe gem  14 JuSchG', 'USK18');


INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AGE_RATING', 'Ohne Altersbeschrnkung', 'USK0');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AGE_RATING', 'Freigegeben ab 6 Jahren', 'USK6');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AGE_RATING', 'Freigegeben ab 12 Jahren', 'USK12');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AGE_RATING', 'Freigegeben ab 16 Jahren', 'USK16');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AGE_RATING', 'Freigegeben ab 18 Jahren', 'USK18');

# See http:# www.beepworld.de/members42/afg_007/love_u.htm for more
INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Deutsch', 'GERMAN');

#INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
#VALUES( 'amazonde', 'SUBTITLES', 'Deutsch fr Hrgeschdigte', 'GERMAN_FOR_HEARING-IMPAURED');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Englisch', 'ENGLISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Franzsisch', 'FRENCH'); #TODO find a movie with french sub and test spelling

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Spanisch', 'SPANISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Portugiesisch', 'PORTUGUESE');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Italienisch', 'ITALIAN');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Trkisch', 'TURKISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Arabisch', 'ARABIC');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Polnisch', 'POLISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Chechisch', 'CZECH');  # TODO spelling???

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Ungarisch', 'HUNGARIAN');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Bulgarisch', 'BULGARIAN');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Griechisch', 'GREEK');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Dnisch', 'DANISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Hollndisch', 'DUTCH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Finnisch', 'FINNISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Hebrisch', 'HEBREW');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Norwegisch', 'NORWEGIAN');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Schwedisch', 'SWEDISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Chinesisch', 'CHINESE');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Hinduisch', 'HINDOE');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Islndisch', 'ISLANDIC');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Japanisch', 'JAPANESE');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'SUBTITLES', 'Slowenisch', 'SLOVAKIAN');

#
# Audio Language mappings
# 
INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Mono)', 'ENGLISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Dolby Digital 2.0)', 'ENGLISH_2.0');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Dolby Surround)', 'ENGLISH_SR');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Dolby Digital 5.1)', 'ENGLISH_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Dolby Digital 5.1 EX)', 'ENGLISH_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Dolby Digital 5.1 EX, Dolby Digital 5.1)', 'ENGLISH_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Dolby Digital 5.1, THX Surround EX)', 'ENGLISH_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Englisch (Dolby Digital 5.1, THX Surround EX)', 'ENGLISH_THX');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Mono)', 'GERMAN');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Dolby Digital 2.0)', 'GERMAN_2.0');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Dolby Surround)', 'GERMAN_SR');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Dolby Digital 5.1 EX)', 'GERMAN_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Dolby Digital 5.1 EX, Dolby Digital 5.1)', 'GERMAN_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Dolby Digital 5.1, THX Surround EX)', 'GERMAN_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Dolby Digital 5.1, THX Surround EX)', 'GERMAN_THX');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch THX', 'GERMAN_THX');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Deutsch (Dolby Digital 5.1)', 'GERMAN_5.1');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Spanisch (Dolby Surround)', 'SPANISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Spanisch (Dolby Digital 5.1)', 'SPANISH');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Italienisch (Dolby Surround)', 'ITALIAN');

INSERT INTO s_site_plugin_s_attribute_type_lookup_map(site_type, s_attribute_type, value, lookup_attribute_val)
VALUES( 'amazonde', 'AUDIO_LANG', 'Italienisch (Dolby Digital 5.1)', 'ITALIAN');

####################################################################################################
# Item Type / Attribute Type relationships
####################################################################################################

INSERT INTO s_attribute_type (s_attribute_type, description, prompt, input_type, display_type, s_field_type, site_type) VALUES ( 'AMAZDEASIN', 'Amazon Germany Standard Item Number', 'German Amazon ASIN', 'hidden', 'hidden', NULL, 'amazonde');

INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'DVD', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'VHS', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'VCD', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'DIVX', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'LD', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'GAME', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'BOOK', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'CD', 'AMAZDEASIN', '0', NULL, NULL);
INSERT INTO s_item_attribute_type (s_item_type, s_attribute_type, order_no, prompt, compulsory_ind) VALUES ( 'MP3', 'AMAZDEASIN', '0',NULL, NULL);

#
# Amazon Book Categorys
#
# http:# www.amazon.de/exec/obidos/tg/stores/static/-/books/browse/
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 0,  'ANTIQ',   'Antiquarische Bcher');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 1,  'BELL',    'Belletristik');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 2,  'GELD',    'Brse & Geld');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 3,  'BUS',     'Business & Karriere');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 4,  'COMP',    'Computer & Internet');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 5,  'EROS',    'Erotik');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 6,  'FACH',    'Fachbcher');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 7,  'FILM',    'Film, Kultur & Comics');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 8,  'USED',    'Gebrauchte Bcher');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 9,  'HRCD',   'Hrbcher');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 10, 'KIND',    'Kinder & Jugendbcher');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 11, 'KOCH',    'Kochen & Lifestyle');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 12, 'KRIMI',   'Krimis & Thriller');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 13, 'LERNEN',  'Lernen & Nachschlagen');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 14, 'MUSIK',   'Musiknoten');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 15, 'NATUR',   'Naturwissenschaften & Technik');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 16, 'POLITIK', 'Politik, Biografien & Geschichte');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 17, 'PREIS',   'Preis-Hits');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 18, 'RATGEBER','Ratgeber');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 19, 'REISE',   'Reise & Sport');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 20, 'RELIGION','Religion & Esoterik');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 21, 'SCIFI',   'Science Fiction, Fantasy & Horror');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 22, 'INTERNAT','English Books');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 23, 'EBOOK',   'E-Books');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 24, 'BESTSELL','Bestseller aller Ressorts');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 25, 'BIDM',    'Bcher in den Medien');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 26, 'SCHRIFT', 'Zeitschriften');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 27, 'SONDER', 'Amazon.de-Sonderausgaben');
INSERT INTO s_attribute_type_lookup (s_attribute_type, order_no, value, display) VALUES ( 'BOOKGENRE', 29, 'KINDER', 'Kinderwelt');