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" |
Nils Diewald | 0297ba1 | 2015-01-05 21:56:12 +0000 | [diff] [blame^] | 32 | }, |
| 33 | { |
| 34 | "@type":"korap:docGroup", |
| 35 | "operation":"operation:or", |
| 36 | "operands":[ |
| 37 | { |
| 38 | "@type":"korap:doc", |
| 39 | "key":"Titel", |
| 40 | "value":"Baum", |
| 41 | "match":"match:eq" |
| 42 | }, |
| 43 | { |
| 44 | "@type":"korap:doc", |
| 45 | "key":"Veröffentlichungsort", |
| 46 | "value":"hihi", |
| 47 | "match":"match:eq" |
| 48 | } |
| 49 | ] |
Nils Diewald | d077049 | 2014-12-19 03:55:00 +0000 | [diff] [blame] | 50 | } |
| 51 | ] |
| 52 | }, |
| 53 | { |
| 54 | "@type":"korap:doc", |
| 55 | "key":"Untertitel", |
| 56 | "value":"huhu", |
| 57 | "match":"match:eq" |
| 58 | } |
| 59 | ] |
| 60 | }; |
Nils Diewald | 966abf1 | 2014-12-20 02:27:45 +0000 | [diff] [blame] | 61 | var vc = KorAP.VirtualCollection.render(json); |
| 62 | document.getElementById('vc').appendChild(vc.element()); |
Nils Diewald | d077049 | 2014-12-19 03:55:00 +0000 | [diff] [blame] | 63 | </script> |
| 64 | </body> |
| 65 | </html> |