Changeset 27503

Show
Ignore:
Timestamp:
28.05.2013 14:36:23 (6 years ago)
Author:
kjdon
Message:

modified to handle files with just a single record. So no collection tag, just a record tag

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/MARCXMLPlugin.pm

    r24547 r27503  
    103103    $self->{'indent'} = 0; 
    104104 
     105    # in case we have individual records without a collection tag 
     106    $self->{'xmlcollectiontag'} = "<collection>"; 
    105107    return bless $self, $class; 
    106108} 
     
    116118    my $self = shift(@_); 
    117119     
    118     return "collection"; 
     120    return "(collection|record)"; 
    119121} 
    120122