Changeset 10165
- Timestamp:
- 2005-06-23T11:37:04+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/lucene_passes.pl
r10163 r10165 79 79 my @secs = ($doc_xml =~ m/<Sec\s+gs2:id="\d+"\s*>.*?<\/Sec>/sg); 80 80 81 foreach my $sec (@secs) { 82 my ($docnum,$sec_text) = ($sec =~ m/<Sec\s+gs2:id="(\d+)"\s*>(.*?)<\/Sec>/s); 83 my $docnum_filename 84 = &util::filename_cat($full_textdir,"$docnum.xml"); 85 86 open(SECOUT,">$docnum_filename") 87 || die "Unable to open $docnum_filename"; 88 89 print SECOUT &ghtml::unescape_html($sec_text); 90 close(SECOUT); 91 } 81 82 # Currently not used, but consult with DB before removing 83 # foreach my $sec (@secs) { 84 # my ($docnum,$sec_text) = ($sec =~ m/<Sec\s+gs2:id="(\d+)"\s*>(.*?)<\/Sec>/s); 85 # my $docnum_filename 86 # = &util::filename_cat($full_textdir,"$docnum.xml"); 87 88 # 89 # open(SECOUT,">$docnum_filename") 90 # || die "Unable to open $docnum_filename"; 91 92 # print SECOUT &ghtml::unescape_html($sec_text); 93 # close(SECOUT); 94 # } 92 95 93 96 }
Note:
See TracChangeset
for help on using the changeset viewer.