Ignore:
Timestamp:
2004-04-01T14:01:06+12:00 (20 years ago)
Author:
kjdon
Message:

fixed the bug where AZCompactList wasn't sorting Creators properly (by surname)

File:
1 edited

Legend:

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

    r7042 r7175  
    301301            $formatted_metavalue="";
    302302        }
    303 
    304303        push(@{$self->{'list'}->{$full_doc_OID}},$formatted_metavalue);
    305304        push(@{$self->{'listmetavalue'}->{$full_doc_OID}} ,$metavalue);
     
    439438        }
    440439       
    441         #$formatted_node = $self->format_metadata_for_sorting($self->{'metaname'}, $formatted_node, $doc_obj);
    442         # should be using the above, but we have no doc obj any more
    443         if ($self->{'metaname'} =~ m/^Creator(:.*)?$/)
    444         {
    445             &sorttools::format_string_name_english(\$formatted_node);
    446         }
    447         else
    448         {
    449             &sorttools::format_string_english(\$formatted_node);
    450         }
     440        $formatted_node = $self->format_metadata_for_sorting($self->{'metaname'}, $formatted_node);
    451441
    452442        # In case our formatted string is empty...
     
    544534    my $title_a = $self->{'reclassifylist'}->{$a};
    545535    my $title_b = $self->{'reclassifylist'}->{$b};
    546 
     536   
    547537    if ($title_a =~ m/^(\d+(\.\d+)?)/)
    548538    {
Note: See TracChangeset for help on using the changeset viewer.