Ignore:
Timestamp:
2013-06-06T11:29:54+12:00 (11 years ago)
Author:
kjdon
Message:

implementing the new build option sections_sort_on_document_metadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/buildcolutils.pm

    r27482 r27563  
    404404  if ($self->{'sections_index_document_metadata'} !~ /^(never|always|unless_section_metadata_exists)$/) {
    405405    $self->{'sections_index_document_metadata'} = 'never';
     406  }
     407
     408  if ($self->{'sections_sort_on_document_metadata'} !~ /\S/ && defined $collectcfg->{'sections_sort_on_document_metadata'})
     409  {
     410    $self->{'sections_sort_on_document_metadata'} = $collectcfg->{'sections_sort_on_document_metadata'};
     411  }
     412
     413  if ($self->{'sections_sort_on_document_metadata'} !~ /^(never|always|unless_section_metadata_exists)$/) {
     414    $self->{'sections_sort_on_document_metadata'} = 'never';
    406415  }
    407416
     
    463472  my $remove_empty_classifications = $self->{'remove_empty_classifications'};
    464473  my $sections_index_document_metadata = $self->{'sections_index_document_metadata'};
     474  my $sections_sort_on_document_metadata = $self->{'sections_sort_on_document_metadata'};
    465475  my $site        = $self->{'site'};
    466476  my $store_metadata_coverage = $self->{'store_metadata_coverage'};
     
    602612    {
    603613      $this_builder->set_sections_index_document_metadata($sections_index_document_metadata);
     614    }
     615    if ($this_buildertype eq "lucenebuilder" && $sections_sort_on_document_metadata ne "never")
     616    {
     617      $this_builder->set_sections_sort_on_document_metadata($sections_sort_on_document_metadata);
    604618    }
    605619
Note: See TracChangeset for help on using the changeset viewer.