greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 16506

Show
Ignore:
Timestamp:
2008-07-22 12:15:18 (6 months ago)
Author:
mdewsnip
Message:

Now adds gs2:docOID attributes into "<Sec>" tags as well, to prevent errors when indexing at section level.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gsdl/trunk/perllib/lucenebuildproc.pm

    r16504 r16506  
    138138 
    139139        if ($sec_tag_name ne "") 
    140           { 
    141             my $secid = "gs2:id=\"".$self->{'num_sections'}."\""; 
    142             $text .= "\n<$sec_tag_name $secid >\n"; 
    143           } 
     140        { 
     141            my $sec_gs2_id = $self->{'num_sections'}; 
     142            my $sec_gs2_docOID = $gs2_docOID . "." . $section; 
     143            $text .= "\n<$sec_tag_name gs2:id=\"$sec_gs2_id\" gs2:docOID=\"$sec_gs2_docOID\">\n"; 
     144        } 
    144145 
    145146        # if we are doing subcollections, then some docs shouldn't be indexed.