Changeset 4696


Ignore:
Timestamp:
2003-06-18T11:44:24+12:00 (21 years ago)
Author:
kjdon
Message:

now we set a type on the format element

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/action
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/BrowseAction.java

    r4257 r4696  
    107107        if (this_format != null) {
    108108        Element new_format = GSXML.duplicateWithNewName(doc_, this_format, GSXML.FORMAT_ELEM, false);
     109        // set teh format type
     110        new_format.setAttribute(GSXML.TYPE_ATT, "browse");
     111
    109112        page_response.appendChild(new_format);
    110113        }
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/QueryAction.java

    r4257 r4696  
    8989    if (format_elem != null) {
    9090        System.out.println("QueryAction: found a format element, adding it to the page response");
     91        // set teh format type
     92        format_elem.setAttribute(GSXML.TYPE_ATT, "search");
    9193        // for now just add to the response
    9294        page_response.appendChild(doc_.importNode(format_elem, true));
Note: See TracChangeset for help on using the changeset viewer.