Ignore:
Timestamp:
2018-10-10T21:25:13+13:00 (6 years ago)
Author:
ak19
Message:

Running plugoutinfo.pl with describeall or listall flag would break on FedoraMETSPlugout when either FEDORA_HOME or FEDORA_VERSION aren't set (as is often the case), as there's a die statement in the BEGIN of FedoraMETSPlugout. Needed to run die if either FEDORA env var is not set only if the plugout is NOT in info_only mode in plugout constructor. However, info_only mode was never set in any of the plugouts, so had to add set up the infrastructure for it in plugoutinfo.pl and plugout.pm. Then added the info_only test to all teh plugouts, even though it's redundant in most of them for making sure future changes to any plugout's constructors does not break plugoutinfo.pl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugouts/METSPlugout.pm

    r28708 r32511  
    7171
    7272    my $self = new BasePlugout($plugoutlist,$inputargs,$hashArgOptLists);
    73 
     73   
     74    if ($self->{'info_only'}) {
     75        # don't worry about any options etc
     76        return bless $self, $class;
     77    }
     78   
    7479    if(defined $self->{'xslt_txt'} &&  $self->{'xslt_txt'} ne "")
    7580    {
Note: See TracChangeset for help on using the changeset viewer.