Changeset 26973

Show
Ignore:
Timestamp:
28.02.2013 15:30:44 (7 years ago)
Author:
kjdon
Message:

don't lowercase the suffix in rename_file - if the original was uppercase, eg .JPG then it won't match .jpg when GLI reads through archive files to find metadata. David can't remember why he did it in the first place. I think there must have been a reason, so maybe it will show up again one day...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/util.pm

    r26206 r26973  
    16011601    $suffix = ""; 
    16021602    } 
    1603     else { 
    1604     $suffix = lc($suffix); 
    1605     } 
     1603    # This breaks GLI matching extracted metadata to files in Enrich panel, as 
     1604    # original is eg .JPG while gsdlsourcefilename ends up .jpg 
     1605    # Not sure why it was done in first place... 
     1606    #else { 
     1607    #$suffix = lc($suffix); 
     1608    #} 
    16061609 
    16071610    if ($rename_method eq "url") {