Ignore:
Timestamp:
2013-06-18T10:34:55+12:00 (11 years ago)
Author:
jmt12
Message:

Adding an option to allow me to suppress RSS file writing, -no_rss, as it requires file append, which isn't supported in HDFS-based collections

File:
1 edited

Legend:

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

    r27513 r27646  
    9393     'type' => "flag",
    9494     'reqd' => "no",
    95          'deft' => "no",
    96      'hiddengli' => "no"}
     95         'deft' => "false",
     96     'hiddengli' => "no"},
     97       { 'name' => 'no_rss',
     98         'desc' => '{BasPlugout.no_rss}',
     99         'type' => 'flag',
     100         'reqd' => 'no',
     101         'hiddengli' => 'yes'}
    97102];
    98103
     
    868873    ##print STDERR "*** To set in db: \n\t$doc_db\n\t$oid\n\t$doc_db_text\n";
    869874
    870     if (($oid_files->{'index-status'} eq "I") || ($oid_files->{'index-status'} eq "R")) {
     875    if (!$self->{'no_rss'})
     876    {
     877      if (($oid_files->{'index-status'} eq "I") || ($oid_files->{'index-status'} eq "R")) {
    871878    my $top_section = $doc_obj->get_top_section();
    872879
     
    888895    }
    889896    else {
    890         print STDERR "**** Failed to open $rss_filename\n!$\n";
    891     }
    892 
    893 
     897        print STDERR "**** Failed to open $rss_filename\n$!\n";
     898    }
     899      }
    894900    }
    895901
Note: See TracChangeset for help on using the changeset viewer.