don't include 'collated' relationships in viewer
Tara L Andrews [Wed, 7 Mar 2012 15:18:00 +0000 (16:18 +0100)]
stemmaweb/lib/stemmaweb/Controller/Relation.pm

index 4ca7a25..cd67f6a 100644 (file)
@@ -110,6 +110,7 @@ sub relationships :Chained('text') :PathPart :Args(0) {
                my @all_relations;
                foreach my $p ( @pairs ) {
                        my $relobj = $collation->relations->get_relationship( @$p );
+                       next if $relobj->type eq 'collated'; # Don't show these
                        my $relhash = { source => $p->[0], target => $p->[1], 
                                  type => $relobj->type, scope => $relobj->scope };
                        $relhash->{'note'} = $relobj->annotation if $relobj->has_annotation;