X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=stemmaweb%2Flib%2Fstemmaweb%2FController%2FStexaminer.pm;h=a0f4fcba5976e7948c606a737df01e3217f7c796;hb=23306161bf2eb441cd5a087d5e630e2b9ece733a;hp=cb9990f8593be13a4aa129b119bb9339301cb670;hpb=4ce27d423744bacb8023cf8891e636c33cfa002d;p=scpubgit%2Fstemmatology.git diff --git a/stemmaweb/lib/stemmaweb/Controller/Stexaminer.pm b/stemmaweb/lib/stemmaweb/Controller/Stexaminer.pm index cb9990f..a0f4fcb 100644 --- a/stemmaweb/lib/stemmaweb/Controller/Stexaminer.pm +++ b/stemmaweb/lib/stemmaweb/Controller/Stexaminer.pm @@ -47,10 +47,13 @@ sub index :Path :Args(1) { $rhash->{'group'} = $gst; } } + # Values for TT rendering $c->stash->{variants} = $t->{'variants'}; $c->stash->{total} = $t->{'variant_count'}; $c->stash->{genealogical} = $t->{'genealogical_count'}; - $c->stash->{conflict} = $t->{'conflict_count'}; + $c->stash->{conflict} = $t->{'conflict_count'}; + # Also make a JSON stash of the data for the statistics tables + $c->stash->{reading_statistics} = to_json( $t->{'variants'} ); } else { $c->stash->{error} = 'Tradition ' . $tradition->name . 'has no stemma for analysis.';