Changeset 8830
- Timestamp:
- 2004-12-16T15:34:06+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2MGPPRetrieve.java
r8674 r8830 116 116 for (int i = 0; i < doc_ids.length; i++) { 117 117 String doc_id = doc_ids[i]; 118 Element doc = this.doc.createElement(GSXML.DOC_NODE_ELEM); 119 doc.setAttribute(GSXML.NODE_ID_ATT, doc_id); 120 doc_list.appendChild(doc); 121 118 122 if (extlink) { 119 123 doc_id = this.gdbm_src.extlink2OID(doc_id); 124 if (doc_id==null) { 125 continue; 126 } 127 doc.setAttribute(GSXML.NODE_ID_ATT, doc_id); 120 128 } 121 129 else if (OID.needsTranslating(doc_id)) { 122 130 doc_id = this.gdbm_src.translateOID(doc_id); 131 if (doc_id==null) { 132 continue; 133 } 134 doc.setAttribute(GSXML.NODE_ID_ATT, doc_id); 123 135 } 124 136 125 137 long doc_num = this.gdbm_src.OID2Docnum(doc_id); 138 if (doc_num == -1) { 139 continue; 140 } 126 141 String doc_content = this.mgpp_src.getDocument(textdir, this.default_level, doc_num); 127 142 doc_content = resolveTextMacros(doc_content, doc_id, lang); 128 143 129 144 // For now, stick it in a text node - eventually should be parsed as xml?? 130 131 Element doc = this.doc.createElement(GSXML.DOC_NODE_ELEM);132 doc.setAttribute(GSXML.NODE_ID_ATT, doc_id);133 145 GSXML.addDocText(this.doc, doc, doc_content); 134 doc_list.appendChild(doc);146 135 147 136 148 }
Note:
See TracChangeset
for help on using the changeset viewer.