X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FText%2FTradition%2FParser%2FJSON.pm;h=0734856d361c3e157146532e61083eac6388756d;hb=HEAD;hp=1d7b2869d95c1bb712d014c5d6c2b3d88af9c679;hpb=202ccb1893c888e21883362e19da98b90139efcb;p=scpubgit%2Fstemmatology.git diff --git a/lib/Text/Tradition/Parser/JSON.pm b/lib/Text/Tradition/Parser/JSON.pm index 1d7b286..0734856 100644 --- a/lib/Text/Tradition/Parser/JSON.pm +++ b/lib/Text/Tradition/Parser/JSON.pm @@ -108,7 +108,8 @@ sub parse { my @witnesses; # Keep the ordered list of our witnesses my %ac_wits; # Track these for later removal foreach my $sigil ( map { $_->{'witness'} } @{$table->{'alignment'}} ) { - my $wit = $tradition->add_witness( 'sigil' => $sigil ); + my $wit = $tradition->add_witness( + 'sigil' => $sigil, 'sourcetype' => 'collation' ); $wit->path( [ $c->start ] ); push( @witnesses, $wit ); my $aclabel = $c->ac_label; @@ -206,7 +207,7 @@ sub make_nodes { if( exists( $unique{$word} ) ) { $rdg = $unique{$word}; } else { - my %args = ( 'id' => join( ',', $idx, $j+1 ), + my %args = ( 'id' => 'r' . join( '.', $idx, $j+1 ), 'rank' => $idx, 'text' => $word, 'collation' => $c );