Ignore:
Timestamp:
2004-02-02T15:53:45+13:00 (20 years ago)
Author:
nzdl
Message:

all request creation now done through GSXML.createBasicRequest - we can enforce certain atts this way

File:
1 edited

Legend:

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

    r6300 r6695  
    147147    // do the metadata request on the filtered list
    148148    Element mr_metadata_message = this.doc.createElement(GSXML.MESSAGE_ELEM);
    149     Element mr_metadata_request = this.doc.createElement(GSXML.REQUEST_ELEM);
     149    to = GSPath.appendLink(collection, "DocumentMetadataRetrieve"); // Hard-wired?
     150    Element mr_metadata_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);
    150151    mr_metadata_message.appendChild(mr_metadata_request);
    151152   
    152     mr_metadata_request.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_PROCESS);
    153     mr_metadata_request.setAttribute(GSXML.LANG_ATT, lang);
    154     to = GSPath.appendLink(collection, "DocumentMetadataRetrieve"); // Hard-wired?
    155     mr_metadata_request.setAttribute(GSXML.TO_ATT, to);
    156 
    157153    // just get all for now - the receptionist should perhaps pass in some
    158154    // metadata that it wants, and QueryAction should look through the format stuff to see if there is any other?
Note: See TracChangeset for help on using the changeset viewer.