Ignore:
Timestamp:
2015-07-25T07:25:11+12:00 (9 years ago)
Author:
Georgiy Litvinov
Message:

Fixes for highlighting bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractDocumentRetrieve.java

    r28966 r30056  
    3636import org.w3c.dom.Document;
    3737import org.w3c.dom.Element;
     38import org.w3c.dom.Node;
    3839import org.w3c.dom.NodeList;
     40
    3941
    4042// General Java classes
     
    8688    protected boolean does_structure = true;
    8789
     90    protected Element highlightedNode = null;
    8891    /** constructor */
    8992    public AbstractDocumentRetrieve()
     
    550553        result.setAttribute(GSXML.FROM_ATT, DOCUMENT_CONTENT_RETRIEVE_SERVICE);
    551554        result.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_PROCESS);
    552 
     555        //import highlighted node to result
     556        highlightedNode = (Element) GSXML.getChildByTagName(request, GSXML.NODE_CONTENT_ELEM);
     557       
    553558        if (!does_content)
    554559        {
Note: See TracChangeset for help on using the changeset viewer.