comparison popoto/ismi.html @ 5:fa1b4fa5b4f8

ADDED: Table for person/codex/witness constraint boxes, reset button (currently leaves previous constraints in the text box) FIXED: Text constraints are not applied if array left empty
author alistair
date Mon, 21 Sep 2015 15:32:32 -0400
parents 72dc19d750ad
children
comparison
equal deleted inserted replaced
4:72dc19d750ad 5:fa1b4fa5b4f8
11 <header class="ppt-header"> 11 <header class="ppt-header">
12 <span class="ppt-header-span">POPOTO JS alpha version</span> 12 <span class="ppt-header-span">POPOTO JS alpha version</span>
13 </header> 13 </header>
14 14
15 <section class="ppt-section-main"> 15 <section class="ppt-section-main">
16 <div class="ppt-section-header" style="height: 150px; line-height: 45px;"> 16 <div class="ppt-section-header" style="height: auto; line-height: 35px;">
17 <span class="ppt-header-span">Graph</span> search 17 <span class="ppt-header-span">Graph</span> search
18 <form> 18 <form>
19 <label> 19 <table width="100%">
20 <input id="constraint" type="text" style="width: 500px;" value='$identifier.label IN [""]'> 20 <tr>
21 </label> 21 <th>Person Constraints</th>
22 <input id="filter-button" type="button" value="Use this filter"> 22 <th>Codex Constraints</th>
23 <br> 23 <th>Witness Constraints</th>
24 <label> 24 </tr>
25 <input id="constraint2" type="text" style="width: 500px;" value='$identifier.death_date_text IN [""]'> 25 <tr>
26 </label> 26 <td>
27 <input id="filter-button2" type="button" value="Use this filter"> 27 <label>
28 <input id="person-constraint" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
29 </label>
30 </td>
31 <td>
32 <label>
33 <input id="codex-constraint" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
34 </label>
35 </td>
36 <td>
37 <label>
38 <input id="witness-constraint" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
39 </label>
40 </td>
41 </tr>
42 <tr>
43 <td>
44 <label>
45 <input id="person-constraint2" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
46 </label>
47 </td>
48 <td>
49 <label>
50 <input id="codex-constraint2" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
51 </label>
52 </td>
53 <td>
54 <label>
55 <input id="witness-constraint2" type="text" style="width: 90%;" value='$identifier.label IN [""]'>
56 </label>
57 </td>
58 </tr>
59 </table>
60 <!-- fill labels conditionally and have a single filter button with one id-->
61 <input id="filter-button" type="button" value="Use these filters">
62 <input id="clear-button" type="button" value="Reset">
63 <!--
64 use:
65 clickedNode.data = popoto.graph.node.parseResultData(data);
66 to get data to use in drop down boxes
67 where:
68 popoto.graph.node.nodeClick = function () {
69 has var:
70 var clickedNode = d3.select(this).data()[0]; // Clicked node data
71
72 note: could just do that for all [i] if not null
73 should test to see whether the .data returns the attribute type or the actual attribute
74 just console.log results array in popoto.graph.node.parseResultData
75 -->
28 </form> 76 </form>
29 </div> 77 </div>
30 78
31 <div class="ppt-container-graph"> 79 <div class="ppt-container-graph">
32 <nav id="popoto-taxonomy" class="ppt-taxo-nav"> 80 <nav id="popoto-taxonomy" class="ppt-taxo-nav">