Changeset 27646

Show
Ignore:
Timestamp:
18.06.2013 10:34:55 (6 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

Location:
main/trunk/greenstone2/perllib
Files:
2 modified

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 
  • main/trunk/greenstone2/perllib/strings.properties

    r27563 r27646  
    13421342BasPlugout.verbosity:Controls the quantity of output. 0=none, 3=lots. 
    13431343BasPlugout.xslt_file:Transform a document with the XSLT in the named file. 
    1344 BasPlugout.subdir_hash_prefix:Set to 'true' to not count the word HASH in the split length calculation. 
     1344BasPlugout.subdir_hash_prefix:Specify flag to not count the word HASH in the split length calculation. 
    13451345BasPlugout.subdir_split_length:The maximum number of characters before spliting an archives subdirectory. 
     1346BasPlugout.no_rss:Suppress the automatic generation of RSS feed file. 
    13461347 
    13471348DSpacePlugout.desc:DSpace Archive format.