- Timestamp:
- 2004-11-29T11:50:38+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Retrieve.java
r8674 r8690 394 394 boolean is_leaf = (children.equals("") ? true : false); 395 395 396 // set t ehnode type att396 // set the node type att 397 397 if (is_top) { 398 398 node.setAttribute(GSXML.NODE_TYPE_ATT, GSXML.NODE_TYPE_ROOT); … … 403 403 } 404 404 405 // set t ehdoc type att406 if (is_top && is_leaf) { // a single section document407 node.setAttribute(GSXML.DOC_TYPE_ATT, "simple");408 405 // set the doc type att 406 String doc_type = info.getInfo("doctype"); 407 if (!doc_type.equals("")&&!doc_type.equals("doc")) { 408 node.setAttribute(GSXML.DOC_TYPE_ATT, doc_type); 409 409 } else { 410 411 if (!is_top) { // we need to look at the top info 412 info = this.gdbm_src.getInfo(top_id); 413 } 414 415 String childtype = info.getInfo("childtype"); 416 if (childtype.equals("Paged")) { 417 node.setAttribute(GSXML.DOC_TYPE_ATT, "paged"); 410 if (is_top && is_leaf) { // a single section document 411 node.setAttribute(GSXML.DOC_TYPE_ATT, "simple"); 412 418 413 } else { 419 node.setAttribute(GSXML.DOC_TYPE_ATT, "hierarchy"); 414 415 if (!is_top) { // we need to look at the top info 416 info = this.gdbm_src.getInfo(top_id); 417 } 418 419 String childtype = info.getInfo("childtype"); 420 if (childtype.equals("Paged")) { 421 node.setAttribute(GSXML.DOC_TYPE_ATT, "paged"); 422 } else { 423 node.setAttribute(GSXML.DOC_TYPE_ATT, "hierarchy"); 424 } 420 425 } 421 426 }
Note:
See TracChangeset
for help on using the changeset viewer.