Nils Diewald | d077049 | 2014-12-19 03:55:00 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Virtual Collection demo</title> |
Nils Diewald | 966abf1 | 2014-12-20 02:27:45 +0000 | [diff] [blame] | 5 | <meta charset="utf-8" /> |
Nils Diewald | d077049 | 2014-12-19 03:55:00 +0000 | [diff] [blame] | 6 | <script src="../src/vc.js"></script> |
Nils Diewald | 966abf1 | 2014-12-20 02:27:45 +0000 | [diff] [blame] | 7 | <link href="../../css/vc.css" rel="stylesheet" type="text/css"></link> |
Nils Diewald | d077049 | 2014-12-19 03:55:00 +0000 | [diff] [blame] | 8 | </head> |
| 9 | <body> |
| 10 | <div id="vc"></div> |
Nils Diewald | 966abf1 | 2014-12-20 02:27:45 +0000 | [diff] [blame] | 11 | |
Nils Diewald | d077049 | 2014-12-19 03:55:00 +0000 | [diff] [blame] | 12 | <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 Diewald | 966abf1 | 2014-12-20 02:27:45 +0000 | [diff] [blame] | 43 | var vc = KorAP.VirtualCollection.render(json); |
| 44 | document.getElementById('vc').appendChild(vc.element()); |
Nils Diewald | d077049 | 2014-12-19 03:55:00 +0000 | [diff] [blame] | 45 | </script> |
| 46 | </body> |
| 47 | </html> |