Ignore:
Timestamp:
06/23/10 15:53:17 (10 years ago)
Author:
ak19
Message:

Changes to get Fedora to work with Greenstone3: to let the Greenstone3 Reader Interface work with a Fedora Repository behind the scenes.

Location:
other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/BrowseDisplay.java

    r15661 r22299  
    236236        splitViewPane.setPreferredSize(size);
    237237        //System.err.println("SIZE: " + this.getSize() + "y: " + y);
    238         return size;
     238        return size;
    239239    }
    240240   
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/GS3JavaClient.java

    r21835 r22299  
    836836            // metadata fields retrieved):
    837837            String metaResponseXML = dlAPIA.retrieveDocumentMetadata(
    838                 this.colName, new String[] { docNode.nodeID });
     838                                         this.colName, new String[] { docNode.nodeID }, new String[] {"all"});
    839839            Element metaResponse
    840840                = getResponseAsDOM("Meta response", metaResponseXML);
     
    880880        if(root == null) { //then its structure has not yet been set
    881881            // do a structure retrieve for this document:
    882             String structureResponseXML = dlAPIA.retrieveDocumentStructure(
    883                     this.colName, new String[] { docNode.nodeID });
     882            String structureResponseXML =
     883                dlAPIA.retrieveDocumentStructure(this.colName, new String[] { docNode.nodeID },
     884                                 new String[] {"descendants"}, new String[]{""});
    884885            Element structureResponse = getResponseAsDOM(
    885886                    "STRUCTURE: ", structureResponseXML);
    886            
     887
    887888            // Get the nodeStructure of this docNode, find its root and
    888889            // from there set all the descendents
     
    931932        String[] classifierNames = { classifier.name };
    932933        String response = dlAPIA.retrieveBrowseStructure(
    933                 this.colName, this.serviceName, classifierNames);
     934                 this.colName, this.serviceName, classifierNames,
     935                 new String[]{"entire"}, new String[]{""}); // structure and info
    934936       
    935937        browseResponseObject.clear();
     
    983985            // let's just retrieve all the metadata - need to display it
    984986            // soon anyway
    985             String response = dlAPIA.retrieveBrowseMetadata(this.colName,
    986                     this.serviceName, nodeIDs);
     987            String response = dlAPIA.retrieveBrowseMetadata(this.colName, this.serviceName,
     988                                    nodeIDs, new String[]{"all"});
    987989            Element responseXML = this.getResponseAsDOM(
    988990                    "MetadataRetrieve response: ", response);
     
    10041006            // let's just retrieve all the metadata - need to display it
    10051007            // soon anyway
    1006             String response = dlAPIA.retrieveDocumentMetadata(
    1007                     this.colName, nodeIDs);
     1008            String response = dlAPIA.retrieveDocumentMetadata(this.colName, nodeIDs,
     1009                                      new String[] {"all"});
    10081010            Element responseXML = this.getResponseAsDOM(
    10091011                    "MetadataRetrieve response: ", response);
Note: See TracChangeset for help on using the changeset viewer.