if( $tradition->can('language') ) {
$textinfo->{'language'} = $tradition->language;
}
- my @stemmasvg = map { $_->as_svg() } $tradition->stemmata;
+ my @stemmasvg = map { { name => $_->identifier, svg => $_->as_svg() } }
+ $tradition->stemmata;
map { $_ =~ s/\n/ /mg } @stemmasvg;
$textinfo->{stemmata} = \@stemmasvg;
$c->stash->{'result'} = $textinfo;
}
#stemma_graph svg {
}
+#stemma_graph_title {
+ bottom: 0px;
+}
+#stemma_identifier {
+ color: #488dd2;
+ font-size: 12px;
+ font-weight: bold;
+}
#textinfo_container_buttons {
z-index: 100;
width: 224px;
font-weight: bold;
color: #ff3333;
}
+.notification {
+ font-weight: bold;
+ color: #33ff33;
+}
#new_file {
position: absolute;
top: -50px;
selectedStemmaID = idx;
show_stemmapager();
if( idx > -1 ) {
- loadSVG( stemmata[idx] );
+ // Load the SVG and identifier of the stemma
+ var stemmadata = stemmata[idx];
+ loadSVG( stemmadata['svg'] );
+ $('#stemma_identifier').empty().text( stemmadata['name'] );
// Stexaminer submit action
var stexpath = _get_url([ "stexaminer", selectedTextID, idx ]);
$('#run_stexaminer').attr( 'action', stexpath );
</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 -->
-digraph Stemma {
+digraph "stemma of Tomas" {
"α" [ class=hypothetical ];
"γ" [ class=hypothetical ];
"δ" [ class=hypothetical ];