Changeset 7346
- Timestamp:
- 2004-05-19T13:12:25+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify.pm
r6967 r7346 39 39 40 40 $next_classify_num = 1; 41 $collage = 0;42 41 sub load_classifier_for_info { 43 42 my ($classifier) = shift @_; … … 204 203 205 204 if (defined ($tempinfo->{'classifyOID'})) { 206 # the third one is where we want to cut if it's a collage207 if (defined ($tempinfo->{'Title'}) && $tempinfo->{'Title'} eq "Collage") {208 $collage = 1;209 }210 205 $contains_text .= $tempinfo->{'classifyOID'}; 211 206 &print_classify_info ($handle, $tempinfo, $tempinfo->{'classifyOID'}, 212 207 $allclassifications); 213 $collage = 0;214 208 } elsif (defined ($tempinfo->{'OID'})) { 215 209 $contains_text .= $tempinfo->{'OID'}; … … 218 212 # note: we don't want to print the contents of the books 219 213 } 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 222 223 &print_classify_info ($handle, $tempinfo, "$OID.$next_subOID", 223 224 $allclassifications);
Note:
See TracChangeset
for help on using the changeset viewer.