Changeset 16506


Ignore:
Timestamp:
2008-07-22T12:15:18+12:00 (16 years ago)
Author:
mdewsnip
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.
Note: See TracChangeset for help on using the changeset viewer.