Changeset 7346


Ignore:
Timestamp:
2004-05-19T13:12:25+12:00 (20 years ago)
Author:
davidb
Message:

Collage specific code made more general.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify.pm

    r6967 r7346  
    3939
    4040$next_classify_num = 1;
    41 $collage = 0;
    4241sub load_classifier_for_info {
    4342    my ($classifier) = shift @_;
     
    204203       
    205204        if (defined ($tempinfo->{'classifyOID'})) {
    206         # the third one is where we want to cut if it's a collage
    207         if (defined ($tempinfo->{'Title'}) && $tempinfo->{'Title'} eq "Collage") {
    208             $collage = 1;
    209         }
    210205        $contains_text .= $tempinfo->{'classifyOID'};
    211206        &print_classify_info ($handle, $tempinfo, $tempinfo->{'classifyOID'},
    212207                      $allclassifications);
    213         $collage = 0;
    214208        } elsif (defined ($tempinfo->{'OID'})) {
    215209        $contains_text .= $tempinfo->{'OID'};
     
    218212        # note: we don't want to print the contents of the books
    219213        } else {
    220         if (! $collage) { $contains_text .= "\".$next_subOID"; }
    221         else { push (@{$tempinfo->{'childtype'}}, ""); $containstext = "";}
     214       
     215        # Supress having top-level node in Collage classifier
     216        # so no bookshelf icon appears, top-level, along with the
     217        # applet
     218
     219        if (!defined ($tempinfo->{'Title'}) || $tempinfo->{'Title'} ne "Collage") {
     220            $contains_text .= "\".$next_subOID";
     221        }
     222
    222223        &print_classify_info ($handle, $tempinfo, "$OID.$next_subOID",
    223224                      $allclassifications);
Note: See TracChangeset for help on using the changeset viewer.