Changeset 8275


Ignore:
Timestamp:
2004-10-12T04:13:27+13:00 (20 years ago)
Author:
cs025
Message:

Avoids problems with 'oai' being visible better than the previous version.

File:
1 edited

Legend:

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

    r8220 r8275  
    163163
    164164    # get each of the classifications
    165     CLASSIFIER: foreach $classobj (@$classifiers) {
     165    foreach $classobj (@$classifiers) {
    166166    my $tempinfo = $classobj->get_classify_info($gli);
    167167    my $classID = $tempinfo->{'classifyOID'};
    168168
    169     if ((defined $classID) && ($classID eq "oai")) {
    170         next CLASSIFIER;
    171     }
    172169    $tempinfo->{'classifyOID'} = "CL$next_classify_num" unless defined($tempinfo->{'classifyOID'});
    173170    $next_classify_num++;
     
    216213        next unless defined $tempinfo;
    217214       
    218         $contains_text .= ";" unless $first;
     215        if (!defined ($tempinfo->{'classifyOID'}) ||
     216        $tempinfo->{'classifyOID'} ne "oai") {
     217        $contains_text .= ";" unless $first;
     218        }
    219219        $mdoffset_text .= ";" unless $first;
    220220        $first = 0;
    221221       
    222222        if (defined ($tempinfo->{'classifyOID'})) {
    223         $contains_text .= $tempinfo->{'classifyOID'};
     223        if ($tempinfo->{'classifyOID'} ne "oai") {
     224            $contains_text .= $tempinfo->{'classifyOID'};
     225        }
    224226        &print_classify_info ($handle, $tempinfo, $tempinfo->{'classifyOID'},
    225227                      $allclassifications);
Note: See TracChangeset for help on using the changeset viewer.