// Set global variables that must be passed by the server
var basepath = "[% c.uri_for( '/' ) %]";
var textOnLoad = "[% withtradition %]";
+var stemwebAlgorithms = [% stemweb_algorithms %];
</script>
[% END %]
<div id="topbanner">
<h1>Stemmaweb - a collection of tools for analysis of collated texts</h1>
<span class="mainnav">[% IF c.user_exists %]Hello! [% c.user.get_object.email %] <a class="navlink" href="[% c.uri_for( '/logout' ) %]">Sign out</a> | [% ELSE %]<a class="navlink" onclick="window.open('[% c.uri_for( '/login' ) %]', 'loginwindow', 'height=385,width=445')">Login</a> | [% END %]<a class="navlink" href="[% c.uri_for( '/about' ) %]">About</a> </span>
+ <p id="compatibility_check"><span class="error">This browser does not support
+ the functions necessary for Stemmaweb to work properly. We recommend use of
+ <a href="http://mozilla.org/firefox">Mozilla Firefox</a> or
+ <a href="http://www.google.com/chrome">Google Chrome</a>.</span></p>
</div>
<div id="directory_container">
<h2>Text directory</h2>
<span>Edit this stemma</span>
</div>
</form>
+ <form id="open_stemweb_ui" action="" method="GET" name="run_stemweb">
+ <div class="button" id="run_stemweb_button"
+ onClick="$('#stemweb-ui-dialog').dialog('open');">
+ <span>Run a Stemweb algorithm</span>
+ </div>
+ </form>
+ <form id="query_stemweb_ui" action="" method="GET" name="query_stemweb">
+ <div class="button" id="query_stemweb_button"
+ onClick="query_stemweb_progress();">
+ <span>Check progress of Stemweb algorithm</span>
+ </div>
+ </form>
<form id="run_stexaminer" action="" method="GET" name="run_stexaminer">
<div class="button" id="stexaminer_button" onClick="$('#run_stexaminer').submit()">
<span>Examine variants against this stemma</span>
</form>
<form id="run_relater" action="" method="GET" name="run_relater">
<div class="button" id="relater_button" onClick="$('#run_relater').submit()">
- <span>Run relationship mapper</span>
+ <span id='relatebutton_label'>View collation and relationships</span>
</div>
</form>
+ <a id="dl_tradition" href="" download="file.xml">
+ <div class="button" id="download_button">
+ <span id='dlbutton_label'>Download tradition as XML</span>
+ </div>
+ </a>
</div>
<div id="stemma_graph"></div>
+ <div id="stemma_graph_title"><span id="stemma_identifier"></span></div>
</div>
<!-- Interim 'loading' message for directory box -->
<input id="stemmaseq" type="hidden" name="stemmaseq" val="n"/>
<div id="edit_instructions">
<p>All definitions begin with the line
- <pre>digraph stemma {</pre>
+ <pre>digraph "Stemma Name" {</pre>
and end with the line
- <pre>}</pre>Please do not change these lines.</p>
+ <pre>}</pre>
+ Please do not change these lines except to edit the stemma name.</p>
<p>First list each witness in your stemma, whether extant or lost /
reconstructed / hypothetical, and assign them a class of either "extant"
or "hypothetical". For example:</p><pre>
</div>
</div>
+ <!-- Stemweb UI dialog box -->
+ <div id="stemweb-ui-dialog" title="Generate a Stemweb tree">
+ <div id="stemweb_ui_container">
+ <form id="call_stemweb">
+ <input id="stemweb_tradition" type="hidden" name="tradition"/>
+ <label for="algorithm">Run algorithm: </label>
+ <select id="stemweb_algorithm" name="algorithm"></select><br/>
+ <!-- Algorithm-specific options, if any, will be added within this div -->
+ <div id="stemweb_runtime_options"></div>
+ </form>
+ <div id="stemweb_run_status"></div>
+ </div>
+ </div>
+
<!-- File upload dialog box -->
<div id="upload-collation-dialog" title="Upload a collation">
<div id="upload_container">
- <label for="new_file">Collation file: </label>
- <input id="new_file" name="file" type="file" onchange="file_selected(this)"><br/>
+ <input id="new_file" name="file" type="file" onchange="file_selected(this)">
+ <label for="new_file" id="new_file_label">Collation file: </label>
+ <div id="new_file_name_container" onclick="$('#new_file').click();"> (Use 'pick file' to select a tradition file to upload.)</div>
<form id="new_tradition">
<label for="new_name">Name of this text / tradition: </label>
<input id="new_name" type="text" name="name" size="40"/><br/>
<input id="new_lang" type="text" name="language" size="20"/><br/>
<label for="new_public">Allow public display: </label>
<input id="new_public" name="public" type="checkbox"/><br/>
- <form>
+ </form>
<div id="upload_status"></div>
<div>
<h4>Supported file types / extensions:</h4>
<p>All spreadsheet collations should be arranged with the witness sigla in the first row, and the words aligned by row each in its correct witness column.</p>
</div>
</div>
- </div>
+ </div>
+
+ <div id="root_tree_dialog">
+ Use this node to root the stemma? <img id="root_tree_dialog_button_ok" src="/images/tick_circle_frame_24.png"/>
+ </div>
+
[% PROCESS footer.tt %]
\ No newline at end of file