Changeset 16462


Ignore:
Timestamp:
2008-07-18T15:26:04+12:00 (16 years ago)
Author:
ak19
Message:
  1. FEDORA_VERSION has become the secondary environment variable when running FLI. It has replaced FEDORA2_HOME/FEDORA3_HOME.
Location:
gsdl/trunk/perllib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/g2futil.pm

    r16407 r16462  
    183183    my $type = undef;
    184184   
    185     if ($ENV{'FEDORA2_HOME'}) {
    186     $type = "metslikefedora1";
     185    if ($ENV{'FEDORA_VERSION'} =~ m/^2/) { # checking if major version is 2
     186        $type = "metslikefedora1";
    187187    }
    188188    else {
  • gsdl/trunk/perllib/plugouts/FedoraMETSPlugout.pm

    r16426 r16462  
    9090    my $extra_schema = undef;
    9191
    92     if ($ENV{'FEDORA2_HOME'}) {
    93     $extra_schema = "http://www.fedora.info/definitions/1/0/mets-fedora-ext.xsd";
     92    if ($ENV{'FEDORA_VERSION'} =~ m/^2/) { # checking if major version is 2
     93        $extra_schema = "http://www.fedora.info/definitions/1/0/mets-fedora-ext.xsd";
    9494    }
    9595    else {
  • gsdl/trunk/perllib/plugouts/METSPlugout.pm

    r15013 r16462  
    198198    print $handle '           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' . "\n";
    199199    print $handle '           xmlns:gsdl3="http://www.greenstone.org/namespace/gsdlmetadata/1.0/"' . "\n";
    200     if ($ENV{'FEDORA2_HOME'}) {
    201     print $handle '           xmlns:xlink="http://www.w3.org/TR/xlink"' ."\n";
     200    if ($ENV{'FEDORA_VERSION'} =~ m/^2/) { # checking if major version is 2
     201        print $handle '           xmlns:xlink="http://www.w3.org/TR/xlink"' ."\n";
    202202    }
    203203    else {
Note: See TracChangeset for help on using the changeset viewer.