Ignore:
Timestamp:
2011-01-14T09:53:23+13:00 (13 years ago)
Author:
sjm84
Message:

Merging the latest trunk changes into this branch

Location:
main/branches/64_bit_Greenstone/greenstone2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/branches/64_bit_Greenstone/greenstone2

  • main/branches/64_bit_Greenstone/greenstone2/perllib/plugins/BasePlugin.pm

    r23484 r23580  
    382382}
    383383
    384 sub block_filename
    385 {
    386     my $self = shift(@_);
    387     my ($block_hash,$filename) = @_;
    388    
    389     if ($ENV{'GSDLOS'} =~ m/^windows$/) {
    390    
    391     my $lower_drive = $filename;
    392     $lower_drive =~ s/^([A-Z]):/\l$1:/i;
    393    
    394     my $upper_drive = $filename;
    395     $upper_drive =~ s/^([A-Z]):/\u$1:/i;
    396    
    397     $block_hash->{'file_blocks'}->{$lower_drive} = 1;
    398     $block_hash->{'file_blocks'}->{$upper_drive} = 1;       
    399     }
    400     else {
    401     $block_hash->{'file_blocks'}->{$filename} = 1;
    402     }
    403 }
    404384
    405385# rename imported files and assoc files using URL encoding by default
     
    438418
    439419    if ($self->{'block_exp'} ne "" && $filename_full_path =~ /$self->{'block_exp'}/) {
    440     $self->block_filename($block_hash,$filename_full_path);
     420    &util::block_filename($block_hash,$filename_full_path);
    441421    }
    442422
     
    458438    }   
    459439    if (&util::fd_exists($coverfile)) {
    460         $self->block_filename($block_hash,$coverfile);
     440        &util::block_filename($block_hash,$coverfile);
    461441    }
    462442    }
Note: See TracChangeset for help on using the changeset viewer.