Changeset 17480

Show
Ignore:
Timestamp:
06.10.2008 08:43:04 (11 years ago)
Author:
kjdon
Message:

removed the pc namespace. the metadata is now extracted metadata, and if you explode, it will get the namespace you give to the exploding script

Files:
1 modified

Legend:

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

    r17463 r17480  
    150150        push(@workform_values, $workform_field); 
    151151    } 
    152  
     152     
    153153    # Remember this workform definition for when we're reading the records 
    154154    $workform_definitions{$workform_name} = \@workform_values; 
     
    197197 
    198198    # Store workform and record number as metadata 
    199     $doc_obj->add_utf8_metadata($cursection, "pc.Workform", $workform_indicator); 
    200     $doc_obj->add_utf8_metadata($cursection, "pc.RecordNumber", $recordnum); 
     199    $doc_obj->add_utf8_metadata($cursection, "Workform", $workform_indicator); 
     200    $doc_obj->add_utf8_metadata($cursection, "RecordNumber", $recordnum); 
    201201     
    202202    # Store FileFormat metadata 
     
    218218        my $field_name = $workform_values[$fieldnum]; 
    219219        #unless ($field_name eq "---") { 
    220     #   my $meta_name = "pc.Field" . ($fieldnum + 1) . "Name"; 
     220    #   my $meta_name = "Field" . ($fieldnum + 1) . "Name"; 
    221221    #   $doc_obj->add_utf8_metadata($cursection, $meta_name, $field_name); 
    222222     #   } 
    223223        if ($field_name eq "---") { 
    224         $field_name = "pc.Field" . ($fieldnum + 1); 
     224        $field_name = "Field" . ($fieldnum + 1); 
    225225        } 
    226226        $html_record .= "<tr><td valign=top><b>$field_name: </b></td><td valign=top>"; 
     
    229229        #foreach my $field_value (split(/\/\//, $field_value_raw)) { 
    230230        foreach my $field_value (split($self->{'entry_separator'}, $field_value_raw)) { 
    231         #my $meta_name = "pc.Field" . ($fieldnum + 1) . "Value"; 
     231        #my $meta_name = "Field" . ($fieldnum + 1) . "Value"; 
    232232        #$doc_obj->add_utf8_metadata($cursection, $meta_name, $field_value); 
    233233        $doc_obj->add_utf8_metadata($cursection, $field_name, $field_value);