2 pagetitle = "Stexaminer - $text_title"
3 applicationjs = c.uri_for('/js/stexaminer.js')
4 applicationstyle = c.uri_for('/css/stexaminer.css')
6 <script type="text/javascript">
7 var readingstats = [% reading_statistics %];
8 var graphdot = '[% graphdot %]';
12 <h2>[% text_title %]</h2>
14 <h3>Analysis options:</h3>
15 <form id="use_variants_form" name="use_variants_form" class="clearfix" method="POST">
16 <div class="optionformelement">
17 <input type="radio" name="ignore_variant" value="none" [% 'checked="true"' IF ignore_variant == 'none' %]>Analyze all variation</input><br/>
18 <input type="radio" name="ignore_variant" value="orthographic" [% 'checked="true"' IF ignore_variant == 'orthographic' %]>Ignore orthographic variation</input><br/>
19 <input type="radio" name="ignore_variant" value="spelling" [% 'checked="true"' IF ignore_variant == 'spelling' %]>Ignore orthographic and spelling variation</input>
21 <div class="optionformelement">
22 <input type="checkbox" name="show_type1" [% 'checked="true"' IF show_type1 %]>Include type-1 variation</input>
24 <div id="options_button" class="button optionformelement" onclick="$('#use_variants_form').submit()">
25 <span>Re-analyze</span>
29 <div id="variants_table">
31 [% FOREACH row IN variants -%]
32 [% INCLUDE variantrow %]
37 <div id="stemma_graph">
40 <div id="row_statistics">
41 <h3>Aggregate text statistics</h3>
43 <li>Total number of variant locations analyzed: [% total %]</li>
44 <li>Number of fully genealogical locations: [% genealogical %]</li>
45 <li>Number of readings that conflict with the stemma: [% conflict %]</li>
46 <li>Genealogical reading transitions by relationship type: [% todo %]</li>
48 <p>(Choose a row in the table to display statistics about individual readings.)</p>
52 <div id="stats_template" class="template">
53 <h3>Statistics for readings at <span id="statrank"></span>:</h3>
54 <!-- reading_template will be appended here for each reading -->
57 <div id="reading_template" class="template">
58 <div class="reading_statistics">
59 <span class="readinglabel"></span> - copied <span class="reading_copied"></span> time(s), changed <span class="reading_changed"></span> time(s)<br/>
60 Reading root(s) at <span class="readingroots"></span><br/>
61 <!-- reading_parent_template will be appended here if there are parents -->
65 <div id="reading_parent_template" class="template">
66 <div class="parent_statistics">
68 <ul class="reading_parent_list"></ul>
72 [% PROCESS footer.tt %]
75 [% BLOCK variantrow -%]
76 [% SET rowclass = 'class="genealogical"' IF row.genealogical -%]
77 [% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%]
79 <th><span class="rowid" onclick="handle_row_click($(this))">[% row.id %]</span></th>
80 [% FOREACH reading IN row.readings -%]
81 [% SET cellclass = 'clickable conflict' IF reading.conflict -%]
82 [% SET cellclass = 'clickable' IF !reading.conflict -%]
83 <td class="[% cellclass %]"><span onclick="color_nodes($(this).parent().index(), [% reading.group %], [% row.missing %]);$(this).parents('tr').addClass('active_variant_row');$(this).parent().addClass('active_variant_cell cellb'+($(this).parent().index()-1))">[% reading.text %]</span></td>
85 [% FILTER repeat( row.empty ) -%]