Changeset 16504 for gsdl/trunk/perllib/lucenebuildproc.pm
- Timestamp:
- 2008-07-22T12:08:59+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/lucenebuildproc.pm
r16431 r16504 81 81 my ($fields) = split (/:/, $self->{'index'}); 82 82 83 my $doc_ level= $mgppbuildproc::level_map{'document'};83 my $doc_tag_name = $mgppbuildproc::level_map{'document'}; 84 84 85 85 my $levels = $self->{'levels'}; … … 102 102 } 103 103 my $gs2_docOID = $doc_obj->get_OID(); 104 my $documenttag = "<$doc_ levelxmlns:gs2=\"http://www.greenstone.org/gs2\" file=\"$file\" gs2:id=\"$gs2_id\" gs2:docOID=\"$gs2_docOID\">\n";105 my $documentendtag = "\n</$doc_ level>\n";106 107 my ($sectiontag)= "";104 my $documenttag = "<$doc_tag_name xmlns:gs2=\"http://www.greenstone.org/gs2\" file=\"$file\" gs2:id=\"$gs2_id\" gs2:docOID=\"$gs2_docOID\">\n"; 105 my $documentendtag = "\n</$doc_tag_name>\n"; 106 107 my $sec_tag_name = ""; 108 108 if ($lsec_level) 109 109 { 110 $sec tiontag= $mgppbuildproc::level_map{'section'};110 $sec_tag_name = $mgppbuildproc::level_map{'section'}; 111 111 } 112 112 my ($parastarttag) = ""; … … 137 137 $self->{'num_sections'}++; 138 138 139 if ($sec tiontagne "")139 if ($sec_tag_name ne "") 140 140 { 141 141 my $secid = "gs2:id=\"".$self->{'num_sections'}."\""; 142 $text .= "\n<$sec tiontag$secid >\n";142 $text .= "\n<$sec_tag_name $secid >\n"; 143 143 } 144 144 … … 148 148 my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section"; 149 149 if (($indexed_doc == 0) || ($indexed_section ne "indexed_section" && $indexed_section ne "indexed_doc")) { 150 $text .= "\n</$sec tiontag>\n" if ($sectiontagne "");150 $text .= "\n</$sec_tag_name>\n" if ($sec_tag_name ne ""); 151 151 $section = $doc_obj->get_next_section($section); 152 152 next; … … 275 275 } # foreach field 276 276 277 $text .= "\n</$sec tiontag>\n" if ($sectiontagne "");277 $text .= "\n</$sec_tag_name>\n" if ($sec_tag_name ne ""); 278 278 279 279 $section = $doc_obj->get_next_section($section);
Note:
See TracChangeset
for help on using the changeset viewer.