Changeset 6505
- Timestamp:
- 2004-01-15T11:32:08+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/indexers/MGIndexer.java
r6376 r6505 98 98 /** 99 99 * The output directory should be (collection)/building/text/ for 100 * normal Greenstone builds.100 * normal Greenstone builds. 101 101 * 102 102 * @param <code>String</code> the label to configure … … 160 160 } 161 161 162 descriptive.addMetadata("gsdl3", "mgseqno", indexName + "." + Integer.toString(this. documentSeqNo));162 descriptive.addMetadata("gsdl3", "mgseqno", indexName + "." + Integer.toString(this.sectionSeqNo)); 163 163 metsDoc.setModified(true); 164 // System.out.println("Assigning " + this. documentSeqNo + " to " + metsDoc.getID() + " " + division.getLabel());164 // System.out.println("Assigning " + this.sectionSeqNo + " to " + metsDoc.getID() + " " + division.getLabel()); 165 165 } 166 166 167 167 // append an 'end of section' marker 168 168 textBuffer.append(END_OF_SECTION); 169 this.sectionSeqNo ++; 169 170 170 171 // for document-level indexes, always append an 'end of document' tag at the … … 174 175 if (this.level == null || 175 176 this.level.equals(IndexerInterface.DOCUMENT_LEVEL)) { 176 //extraBuffer.append(END_OF_DOCUMENT);177 extraBuffer.append(END_OF_DOCUMENT); 177 178 } 178 179 else { … … 180 181 this.documentSeqNo ++; 181 182 } 182 this.sectionSeqNo ++;183 183 184 184 // produce the body here for metadata output of divisions - in the case of … … 231 231 232 232 // recurse to child 233 this.recurseDOM(metsDoc, node, child, textBuffer, extraBuffer, indexName, namespace, field);233 node = this.recurseDOM(metsDoc, node, child, textBuffer, extraBuffer, indexName, namespace, field); 234 234 } 235 235 … … 310 310 if (valueIter.hasNext()) { 311 311 textBuffer.append(END_OF_SECTION); 312 sectionSeqNo ++;312 // sectionSeqNo ++; 313 313 } 314 314 } … … 321 321 sectionSeqNo ++; 322 322 } 323 324 /* if (this.pass == 0) { 325 System.err.println(docText); 326 } 327 */ 323 328 324 329 byte [] bytes = docText.getBytes(); … … 366 371 this.firstDocument = false; 367 372 if (this.pass == 0) { 368 document.addDocumentMetadata("gsdl3", "mgseqno", "dtx."+Integer.toString( this.documentSeqNo));369 // 373 document.addDocumentMetadata("gsdl3", "mgseqno", "dtx."+Integer.toString(startSeqNo)); 374 // System.out.println("Assigning " + startSeqNo + " to " + document.getID()); 370 375 } 371 376 this.documentSeqNo += 1; … … 424 429 else { 425 430 this.field = "text"; 426 this.level = " document";431 this.level = "section"; 427 432 this.indexName = null; 428 433 }
Note:
See TracChangeset
for help on using the changeset viewer.