Changeset 8457
- Timestamp:
- 2004-11-05T10:02:48+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/indexers/MGIndexer.java
r8440 r8457 19 19 import org.greenstone.gsdl3.gs3build.doctypes.DocumentInterface; 20 20 import org.greenstone.gsdl3.gs3build.doctypes.HTMLDocument; 21 import org.greenstone.gsdl3.gs3build.doctypes.METSDocument; 21 22 import org.greenstone.gsdl3.gs3build.metadata.*; 22 23 import org.greenstone.gsdl3.gs3build.xpointer.XPointer; … … 230 231 231 232 descriptive.addMetadata("gsdl3", "mgseqno", this.overallName + "." + Integer.toString(this.sectionSeqNo)); 233 232 234 metsDoc.setChanged(true); 235 //metsDoc.setModified(true); 233 236 // System.out.println("Assigning " + this.sectionSeqNo + " to " + metsDoc.getID() + " " + division.getLabel()); 234 237 } // section level … … 281 284 // go through our children as required... 282 285 Iterator children = structure.getChildIterator(); 286 Node startNode; 283 287 while (children.hasNext()) { 284 288 AbstractStructure child = (AbstractStructure) children.next(); … … 286 290 // get xpointer for child 287 291 // get start position node 288 Node startNode = ((HTMLDocument) metsDoc).getSectionStartNode((METSDivision) child); 292 if (metsDoc.getDocumentType() == "METS"){ 293 startNode = ((METSDocument) metsDoc).getSectionStartNode((METSDivision) child); 294 } else { 295 startNode = ((HTMLDocument) metsDoc).getSectionStartNode((METSDivision) child); 296 } 297 //Node startNode = ((HTMLDocument) metsDoc).getSectionStartNode((METSDivision) child); 289 298 290 299 // while this node isn't the child's start node, produce the HTML node text, if … … 301 310 // recurse to child 302 311 node = this.recurseDOM(metsDoc, node, child, textBuffer, extraBuffer, namespace); // name, namespace, field); 303 } 312 } // while next child 304 313 305 314 // close a document - the actual closing \B will be done by the main
Note:
See TracChangeset
for help on using the changeset viewer.