Ignore:
Timestamp:
2004-11-22T15:05:37+13:00 (20 years ago)
Author:
kjdon
Message:

modified the macro resolution - now replace items can be metadata as well, and have a scope - text or metadata. and this is used for text as well as metadata now. _httpdocimg_ is the only macro to remain in the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGRetrieve.java

    r8439 r8616  
    182182        doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n";
    183183        }
     184       
    184185        //ystem.out.println("Doc content: " + doc_content + "|");
    185186        //ystem.out.println("Doc ID: " + doc_id);
     
    192193        doc.setAttribute(GSXML.NODE_ID_ATT, doc_id);
    193194        GSXML.addDocText(this.doc, doc, doc_content);
     195        Element nodeContent = (Element)GSXML.getChildByTagName(doc, "nodeContent");
     196        Element file_elem = this.doc.createElement("file");
     197        file_elem.setAttribute("mimeType", "image/jpeg");
     198        file_elem.setAttribute("href", "import/meinahole.jpg");
     199        nodeContent.appendChild(file_elem);
    194200        doc_list.appendChild(doc);
    195201    }
Note: See TracChangeset for help on using the changeset viewer.