annotate popoto_dev/ismi.html @ 20:d8bbf6d5920b

now with arrowheads.
author casties
date Fri, 09 Oct 2015 12:54:39 +0200
parents d67c5ad47709
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
1 <!DOCTYPE html>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
2 <html>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
3
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
4 <head>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
6 <title>Popoto Search</title>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
7 <link rel="stylesheet" href="css/popoto.min.css">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
8 </head>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
9 <body class="ppt-body">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
10
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
11 <header class="ppt-header">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
12 <span class="ppt-header-span">POPOTO JS alpha version</span>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
13 </header>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
14
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
15 <section class="ppt-section-main">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
16 <div class="ppt-section-header" style="height: auto; line-height: 35px;">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
17 <span class="ppt-header-span">Graph</span> search
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
18 <form>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
19 <table width="100%">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
20 <tr>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
21 <th>Person Constraints</th>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
22 <th>Codex Constraints</th>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
23 <th>Witness Constraints</th>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
24 </tr>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
25 <tr>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
26 <td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
27 <label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
28 <input id="person-constraint" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
29 </label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
30 </td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
31 <td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
32 <label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
33 <input id="codex-constraint" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
34 </label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
35 </td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
36 <td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
37 <label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
38 <input id="witness-constraint" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
39 </label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
40 </td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
41 </tr>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
42 <tr>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
43 <td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
44 <label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
45 <input id="person-constraint2" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
46 </label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
47 </td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
48 <td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
49 <label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
50 <input id="codex-constraint2" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
51 </label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
52 </td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
53 <td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
54 <label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
55 <input id="witness-constraint2" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
56 </label>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
57 </td>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
58 </tr>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
59 </table>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
60 <!-- fill labels conditionally and have a single filter button with one id-->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
61 <input id="filter-button" type="button" value="Use these filters">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
62 <input id="clear-button" type="button" value="Reset">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
63 <!--
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
64 use:
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
65 clickedNode.data = popoto.graph.node.parseResultData(data);
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
66 to get data to use in drop down boxes
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
67 where:
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
68 popoto.graph.node.nodeClick = function () {
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
69 has var:
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
70 var clickedNode = d3.select(this).data()[0]; // Clicked node data
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
71
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
72 note: could just do that for all [i] if not null
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
73 should test to see whether the .data returns the attribute type or the actual attribute
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
74 just console.log results array in popoto.graph.node.parseResultData
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
75 -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
76 </form>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
77
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
78 <select id="dropdown" name="select12" style="visibility: hidden; overflow: scroll; position: fixed;">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
79 <option>- Select -</option>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
80 </select>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
81
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
82 </div>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
83
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
84 <div class="ppt-container-graph">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
85 <nav id="popoto-taxonomy" class="ppt-taxo-nav">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
86 <!-- Label/taxonomy filter will be generated here -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
87 </nav>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
88 <div id="popoto-graph" class="ppt-div-graph">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
89 <!-- Graph will be generated here-->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
90 </div>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
91 </div>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
92
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
93 <div id="popoto-query" class="ppt-container-query">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
94 <!-- Query viewer will be generated here -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
95 </div>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
96
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
97 <!-- Cypher query viewer has been partially disabled for this alpha release and only display the query as text if enabled -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
98 <!--<div id="popoto-cypher" class="ppt-container-cypher">-->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
99 <!--</div>-->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
100
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
101 <div class="ppt-section-header">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
102 <!-- The total results count is updated with a listener defined in app-template.js -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
103 RESULTS <span id="result-total-count" class="ppt-count"></span>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
104 </div>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
105
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
106 <div id="popoto-results" class="ppt-container-results">
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
107 <!-- Results will be generated here -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
108 </div>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
109
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
110 </section>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
111
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
112 <!---------------------->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
113 <!-- Required scripts -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
114
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
115 <!-- Jquery is only used in popoto.js to send ajax POST request on Neo4j REST API -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
116 <!-- This dependency will probably be removed in future releases -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
117 <script src="js/jquery-2.1.0.min.js" charset="utf-8"></script>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
118
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
119 <script src="js/d3.v3.min.js" charset="utf-8"></script>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
120 <!-- <script src="js/popoto.min.js" charset="utf-8"></script> -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
121 <script src="src/js/popoto.js" charset="utf-8"></script>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
122
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
123 <!-- You can modify the parameters defined in this script to customize this application template -->
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
124 <script src="js/app-ismi.js" charset="utf-8"></script>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
125 </body>
d67c5ad47709 implementation with dropdown popup, unfinished
alistair
parents:
diff changeset
126 </html>