Changeset 20758


Ignore:
Timestamp:
2009-09-30T10:54:55+13:00 (13 years ago)
Author:
kjdon
Message:

moved the reversesort option from import.pl to ArchivesInfPLugin - this is where the list of docs to be processed is generated, and therefore where we need to set reversesort. Better here than storing in the database, as then we can change the order without having to reimport.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ArchivesInfPlugin.pm

    r20577 r20758  
    4747
    4848my $arguments = [
     49      { 'name' => "reversesort",
     50    'desc' => "{ArchivesInfPlugin.reversesort}",
     51    'type' => "flag",
     52    'reqd' => "no",
     53    'modegli' => "2" },
     54
    4955         ];
    5056
     
    213219    $self->{'archive_info'} = $archive_info;
    214220    $self->{'archive_info_filename'} = $archive_info_filename;
    215 
     221    if ($self->{'reversesort'}) {
     222        $archive_info->reverse_sort();
     223    }
     224   
    216225    $archive_info->load_info ($archive_info_filename);
    217226   
Note: See TracChangeset for help on using the changeset viewer.