Changeset 8170


Ignore:
Timestamp:
2004-09-28T16:40:19+12:00 (20 years ago)
Author:
mdewsnip
Message:

Fixed some of the new FileFormat metadata so you only get one value (and not two or three) for those that go through ConvertToPlug.

Location:
trunk/gsdl/perllib/plugins
Files:
2 edited

Legend:

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

    r8166 r8170  
    380380
    381381    my $file_format = $file_type || "unknown";
    382    
    383     $doc_obj->add_metadata($cursection, "FileFormat", $file_format);
     382
     383    # We use set instead of add here because we only want one value
     384    $doc_obj->set_utf8_metadata_element($cursection, "FileFormat", $file_format);
    384385
    385386    my $doclink = "<a href=\"_httpcollection_/index/assoc/[archivedir]/doc.$doc_ext\">";
  • trunk/gsdl/perllib/plugins/PDFPlug.pm

    r8139 r8170  
    213213    $doc_obj->add_utf8_metadata($cursection, "Date", "$1$2$3");
    214214    }
    215    
    216     # Add FileFormat metadata
    217     $doc_obj->add_metadata($cursection, "FileFormat", "PDF");
    218215
    219216    # Add NumPages metadata (we have "<a name=1>" etc for each page)
Note: See TracChangeset for help on using the changeset viewer.