--- loncom/interface/lonnavmaps.pm 2004/05/27 22:25:14 1.260 +++ loncom/interface/lonnavmaps.pm 2004/06/15 14:12:56 1.261 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.260 2004/05/27 22:25:14 albertel Exp $ +# $Id: lonnavmaps.pm,v 1.261 2004/06/15 14:12:56 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3241,6 +3241,17 @@ sub is_sequence { return $self->navHash("is_map_", 1) && $self->navHash("map_type_" . $self->map_pc()) eq 'sequence'; } +sub is_survey { + my $self = shift(); + my $part = shift(); + if ($self->src() =~ /\.(survey)$/) { + return 1; + } + if ($self->parmval('type',$part) eq 'survey') { + return 1; + } + return 0; +} # Private method: Shells out to the parmval in the nav map, handler parts. sub parmval {