Ignore:
Timestamp:
2008-02-27T16:36:05+13:00 (15 years ago)
Author:
davidb
Message:

Adjustment to Fedora and METS plugouts so they can handle Fedora v2.x or Fedora v3.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugouts/FedoraMETSPlugout.pm

    r14970 r15013  
    8484    my $collection = $ENV{'GSDLCOLLECTION'};
    8585
    86   # Might need the following in the schemeLocation attribute for Fedora3
    87   #   http://www.fedora.info/definitions/1/0/mets-fedora-ext1-1.xsd
    88 
    89     my $extra_attr = "OBJID=\"$oid_namespace:$collection-$OID\" TYPE=\"FedoraObject\" LABEL=\"$doc_title\" EXT_VERSION=\"1.1\"";
    90 
    91     $self->output_mets_xml_header_extra_attribute($handle,$extra_attr);
     86    # Might need the following in the schemeLocation attribute for Fedora3
     87    #   http://www.fedora.info/definitions/1/0/mets-fedora-ext1-1.xsd
     88
     89    my $extra_attr = "OBJID=\"$oid_namespace:$collection-$OID\" TYPE=\"FedoraObject\" LABEL=\"$doc_title\"";
     90
     91    my $extra_schema = undef;
     92
     93    if ($ENV{'FEDORA2_HOME'}) {
     94    $extra_schema = "http://www.fedora.info/definitions/1/0/mets-fedora-ext.xsd";
     95    }
     96    else {
     97    $extra_attr .= " EXT_VERSION=\"1.1\"";
     98    }
     99   
     100    $self->output_mets_xml_header_extra_attribute($handle,$extra_attr,$extra_schema);
    92101
    93102    print $handle '<mets:metsHdr RECORDSTATUS="A"/>'. "\n"; # A = active
Note: See TracChangeset for help on using the changeset viewer.