Ignore:
Timestamp:
2008-08-28T10:05:36+12:00 (16 years ago)
Author:
kjdon
Message:

fixed up some bugs in add_OID

File:
1 edited

Legend:

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

    r17026 r17033  
    411411    my $identifier = $doc_obj->get_metadata_element ($doc_obj->get_top_section(), $self->{'OIDmetadata'});
    412412    if (defined $identifier && $identifier ne "") {
    413         $OID = $identifier;
    414         $OID =~ s/\.//; #remove any periods
    415         if ($OID =~ /^[\d]*$/) {
    416         $OID = "D" . $OID;
     413        $full_id = $identifier;
     414        $full_id =~ s/\.//g; #remove any periods
     415        if ($full_id =~ /^[\d]*$/) {
     416        $full_id = "D" . $full_id;
    417417        print STDERR "OID only contains numbers, adding a D\n";
    418418        }
    419         $full_id = $identifier;
    420419    }
    421420    }
Note: See TracChangeset for help on using the changeset viewer.