Ignore:
Timestamp:
1999-10-15T12:36:14+13:00 (25 years ago)
Author:
sjboddie
Message:

changes for new browsing support

File:
1 edited

Legend:

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

    r537 r677  
    7979sub get_entry {
    8080    my $self = shift (@_);
    81     my ($title, $classifytype) = @_;
     81    my ($title, $childtype, $thistype) = @_;
    8282   
    8383    # organise into classification structure
    84     my %classifyinfo = ('classifytype'=>$classifytype,
     84    my %classifyinfo = ('childtype'=>$childtype,
    8585            'Title'=>$title,
    8686            'contains'=>[]);
     87    $classifyinfo{'thistype'} = $thistype
     88    if defined $thistype && $thistype =~ /\w/;
    8789
    8890    return \%classifyinfo;
     
    9799
    98100    # top level
    99     my $classifyinfo = $self->get_entry ("Date", "DateList");
     101    my $childtype = "HList";
     102    if (scalar (@$classlistref) <= 20) {$childtype = "DateList";}
     103    my $classifyinfo = $self->get_entry ("Date", $childtype, "Invisible");
    100104
    101105    # don't need to do any splitting if there are less than 20 classifications
     
    164168        @currentOIDs = ();
    165169        $currentfirstletter = "";
     170        $lastkey = $subsection;
    166171        } else {
    167172        @currentOIDs = @{$classhashref->{$subsection}};
     
    175180    # add final sub-classification
    176181    if (scalar (@currentOIDs) < $min) {
    177     my ($newkey) = $lastkey =~ /^(.)/;
     182    my ($newkey) = $lastkey =~ /^(\d\d\d\d)/;
    178183    @currentOIDs = (@{$compactedhash->{$lastkey}}, @currentOIDs);
    179184    delete $compactedhash->{$lastkey};
Note: See TracChangeset for help on using the changeset viewer.