Changeset 6137


Ignore:
Timestamp:
2003-12-08T12:07:32+13:00 (20 years ago)
Author:
kjdon
Message:

added new metadata field - SourceSegment, set when the source doc has been split into parts, to indicate which part of the original Source this doc is

File:
1 edited

Legend:

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

    r5924 r6137  
    6767
    6868    $self->{'plugin_type'} = "SplitPlug";
     69   
    6970    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    7071    my $option_list = $self->{'option_list'};
     
    176177    my ($filemeta) = $file =~ /([^\\\/]+)$/;
    177178    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "Source", &ghtml::dmsafe($filemeta));
     179    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "SourceSegment", "$segment");
    178180    if ($self->{'cover_image'}) {
    179181      $self->associate_cover_image($doc_obj, $filename);
Note: See TracChangeset for help on using the changeset viewer.