Changeset 6809


Ignore:
Timestamp:
2004-02-17T09:36:51+13:00 (20 years ago)
Author:
mdewsnip
Message:

Additions for the GsdlCollageApplet: a classifier that displays a collage of the images in a collection. By Katrina Edgar (kde2).

File:
1 edited

Legend:

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

    r6332 r6809  
    3939
    4040$next_classify_num = 1;
     41$collage = 0;
    4142
    4243sub load_classifiers {
     
    176177       
    177178        if (defined ($tempinfo->{'classifyOID'})) {
     179        # the third one is where we want to cut if it's a collage
     180        if (defined ($tempinfo->{'Title'}) && $tempinfo->{'Title'} eq "Collage") {
     181            $collage = 1;
     182        }
    178183        $contains_text .= $tempinfo->{'classifyOID'};
    179184        &print_classify_info ($handle, $tempinfo, $tempinfo->{'classifyOID'},
    180185                      $allclassifications);
     186        $collage = 0;
    181187        } elsif (defined ($tempinfo->{'OID'})) {
    182188        $contains_text .= $tempinfo->{'OID'};
     
    185191        # note: we don't want to print the contents of the books
    186192        } else {
    187         $contains_text .= "\".$next_subOID";
     193        if (! $collage) { $contains_text .= "\".$next_subOID"; }
     194        else { push (@{$tempinfo->{'childtype'}}, ""); $containstext = "";}
    188195        &print_classify_info ($handle, $tempinfo, "$OID.$next_subOID",
    189196                      $allclassifications);
Note: See TracChangeset for help on using the changeset viewer.