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/GS2MGPPRetrieve.java

    r5098 r8616  
    9898        return result;
    9999    }
    100 
     100    String lang = request.getAttribute(GSXML.LANG_ATT);
    101101    Element doc_list = this.doc.createElement(GSXML.DOC_NODE_ELEM+GSXML.LIST_MODIFIER);
    102102    result.appendChild(doc_list);
     
    118118        long doc_num = this.gdbm_src.oid2Docnum(doc_id);
    119119        String doc_content = this.mgpp_src.getDocument(textdir, this.default_level, doc_num);
    120         doc_content = resolveImages(doc_content, doc_id);
     120        doc_content = resolveTextMacros(doc_content, doc_id, lang);
    121121
    122122        // For now, stick it in a text node - eventually should be parsed as xml??
Note: See TracChangeset for help on using the changeset viewer.