blob: 6c306b026f66813459d7f1ebd121834ceeffda75 [file] [log] [blame]
Nils Diewaldd0770492014-12-19 03:55:00 +00001<!DOCTYPE html>
2<html>
3 <head>
4 <title>Virtual Collection demo</title>
Nils Diewald966abf12014-12-20 02:27:45 +00005 <meta charset="utf-8" />
Nils Diewaldd0770492014-12-19 03:55:00 +00006 <script src="../src/vc.js"></script>
Nils Diewald966abf12014-12-20 02:27:45 +00007 <link href="../../css/vc.css" rel="stylesheet" type="text/css"></link>
Nils Diewaldd0770492014-12-19 03:55:00 +00008 </head>
9 <body>
10 <div id="vc"></div>
Nils Diewald966abf12014-12-20 02:27:45 +000011
Nils Diewaldd0770492014-12-19 03:55:00 +000012 <script>
13 var json = {
14 "@type":"korap:docGroup",
15 "operation":"operation:or",
16 "operands":[
17 {
18 "@type":"korap:docGroup",
19 "operation":"operation:and",
20 "operands":[
21 {
22 "@type":"korap:doc",
23 "key":"Titel",
24 "value":"Baum",
25 "match":"match:eq"
26 },
27 {
28 "@type":"korap:doc",
29 "key":"Veröffentlichungsort",
30 "value":"hihi",
31 "match":"match:eq"
32 }
33 ]
34 },
35 {
36 "@type":"korap:doc",
37 "key":"Untertitel",
38 "value":"huhu",
39 "match":"match:eq"
40 }
41 ]
42 };
Nils Diewald966abf12014-12-20 02:27:45 +000043 var vc = KorAP.VirtualCollection.render(json);
44 document.getElementById('vc').appendChild(vc.element());
Nils Diewaldd0770492014-12-19 03:55:00 +000045 </script>
46 </body>
47</html>