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 %]';
13 <a href="help" title="Stexaminer help" class="navlink" id="aboutlink">Help / About</a>
16 <h2>[% text_title %]</h2>
17 <p><span class="navlink" onClick="$('#options').dialog('open')">Analysis options</span></p>
19 <div id="variants_table">
21 [% FOREACH row IN variants -%]
22 [% INCLUDE variantrow %]
27 <div id="stemma_graph">
30 <div id="row_statistics">
31 <h3>Aggregate text statistics</h3>
33 <li>Total number of variant locations analyzed: [% total %]</li>
34 <li>Number of fully genealogical locations: [% genealogical %]</li>
35 <li>Number of readings that conflict with the stemma: [% conflict %]</li>
36 <li>Genealogical reading transitions by relationship type: [% todo %]</li>
38 <p>(Choose a row in the table to display statistics about individual readings.)</p>
42 <div id="stats_template" class="template">
43 <h3>Statistics for readings at <span id="statrank"></span>:</h3>
44 <!-- reading_template will be appended here for each reading -->
45 <span class="solutionstatus"></span>
48 <div id="reading_template" class="template">
49 <div class="reading_statistics">
50 <span class="readinglabel"></span> - copied <span class="reading_copied"></span> time(s), changed <span class="reading_changed"></span> time(s)<br/>
51 Reading root(s) at <span class="readingroots"></span><br/>
52 <span class="readingreversions">Reading reversion(s) at <span class="reversionroots"></span><br/></span>
53 <!-- source_parent_template will be appended here if there are parents -->
54 <!-- reversion_parent_template will be appended here if there are reversions -->
58 <div id="reading_source_template" class="template">
59 <div class="parent_statistics">
61 <ul class="reading_source_list"></ul>
64 <div id="reading_reversion_template" class="template">
65 <div class="parent_statistics">
66 Reverted reading parent(s):
67 <ul class="reading_reversion_list"></ul>
71 <div id="options" title="Analysis options...">
72 <form id="use_variants_form" name="use_variants_form">
74 <input type="radio" name="ignore_variant" value="none" [% 'checked="true"' IF ignore_variant == 'none' %]>Analyze all variation</input><br/>
75 <input type="radio" name="ignore_variant" value="orthographic" [% 'checked="true"' IF ignore_variant == 'orthographic' %]>Ignore orthographic variation</input><br/>
76 <input type="radio" name="ignore_variant" value="spelling" [% 'checked="true"' IF ignore_variant == 'spelling' %]>Ignore orthographic and spelling variation</input>
79 <input type="checkbox" name="show_type1" [% 'checked="true"' IF show_type1 %]>Include type-1 variation</input>
85 [% PROCESS footer.tt %]
88 [% BLOCK variantrow -%]
89 [% SET rowclass = 'coincidental' -%]
90 [% SET rowclass = 'genealogical' IF row.genealogical -%]
91 [% SET rowclass = "$rowclass unsolved" IF row.unsolved -%]
92 <tr class="[% rowclass %]">
93 <th><span class="rowid" onclick="handle_row_click($(this))">[% row.id %]</span></th>
94 [% FOREACH reading IN row.readings -%]
95 [% SET cellclass = 'clickable' -%]
96 [% SET cellclass = 'clickable reversion' IF reading.is_reverted -%]
97 [% SET cellclass = 'clickable conflict' IF reading.is_conflict -%]
98 <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>