Ignore:
Timestamp:
2010-03-26T18:37:14+13:00 (14 years ago)
Author:
ak19
Message:

Browse takes a list of classifierIDs, not a single one.

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

Legend:

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

    r15731 r21835  
    736736            JEditorPane information = new JEditorPane();
    737737            information.setEditable(false);
    738             information.setContentType("text/html");
     738            information.setContentType("text/html");
    739739            information.setText(collDataEl.info());
    740740           
     
    929929     * to be retrieved. */
    930930    public void doBrowse(ClassifierData classifier) {
     931        String[] classifierNames = { classifier.name };
    931932        String response = dlAPIA.retrieveBrowseStructure(
    932                 this.colName, this.serviceName, classifier.name);
     933                this.colName, this.serviceName, classifierNames);
    933934       
    934935        browseResponseObject.clear();
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/DigitalLibraryServicesAPIA.java

    r21812 r21835  
    201201     * classifierID (including the structures of document descendents of
    202202     * the classifier).
    203      * @param classifierID is of the form CL# where the number (#) marks
    204      * out structured sections like CL1.1.3 or CL2
     203     * @param classifierIDs - each ID is of the form CL# where the number (#)
     204     * marks out structured sections like CL1.1.3 or CL2
    205205     * @param collection is the name of the collection
    206206     * @param service is the name of the browse service (=ClassifierBrowse usually)
    207207    */
    208208    public String retrieveBrowseStructure(
    209             String collection, String service, String classifierID);
     209            String collection, String service, String[] classifierIDs);
    210210
    211211    /** @return a String representing Greenstone3
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/FedoraServicesAPIA.java

    r21812 r21835  
    121121    }
    122122
    123     /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML
     123    /** @return a String representing Greenstone3 DocumentStructureRetrieve XML
    124124     * containing the document structure of the documents indicated by docIDs:
    125125     * this means all their descendents
     
    131131    }
    132132   
    133     /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML
     133    /** @return a String representing Greenstone3 DocumentStructureRetrieve XML
    134134     * containing the document structure of the document indicated by docID:
    135135     * this means all its descendents
     
    142142
    143143    // UNUSED by the client, but still a very useful method:
    144     /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML
     144    /** @return a String representing Greenstone3 DocumentStructureRetrieve XML
    145145     * containing a view of the document structure of the documents denoted by
    146146     * docs where only the requested documents and their direct children are 
     
    153153    }
    154154   
    155     /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML
     155    /** @return a String representing Greenstone3 DocumentStructureRetrieve XML
    156156     * containing a view of the document structure of the document denoted by
    157157     * docID where only the document and its direct children are returned.
     
    167167     * classifierID (including the structures of document descendents of
    168168     * the classifier).
    169      * @param classifierID is of the form CL# where the number (#) marks
    170      * out structured sections like CL1.1.3 or CL2
     169     * @param classifierIDs - each ID is of the form CL# where the number (#)
     170     * marks out structured sections like CL1.1.3 or CL2
    171171     * @param collection is the name of the collection
    172172     * @param service is the name of the browse service (=ClassifierBrowse usually)
    173173    */
    174174    public String retrieveBrowseStructure(
    175             String collection, String service, String classifierID)
     175            String collection, String service, String[] classifierIDs)
    176176    {
    177         return this.browse(collection, classifierID);
     177        return this.browse(collection, classifierIDs);
    178178    }
    179179
     
    194194    }
    195195   
    196     /** @return a String representing Greenstone3 XML for a query process
    197      * response returning the results for the query denoted by parameter
    198      * nameValParamsMap.
    199      * @param nameValParamsMap is a Map of name and value pairs for all the
    200      * query field data values. The names match the field names that
    201      * describeCollectionService() would have returned for the query service.
    202      * @param collection is the name of the collection
    203      * @param service is the name of the query service
    204      * This method is only ever called when any of the services in the digital
    205      * library described themselves as type=query. Therefore any digital
    206      * libraries that have no query services, can just return emtpy message
    207      * strings (or even "") since this method will never be called on them
    208      * anyway. */
    209     public String query(String collection, String service,
    210             Map nameValParamsMap)
    211     {   
    212         return super.query(collection, service, nameValParamsMap);
    213     }
    214196}
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/GS3ServicesAPIA.java

    r15379 r21835  
    356356     * classifierID (including the structures of document descendants of
    357357     * the classifier).
    358      * @param classifierID is of the form CL# where the number (#) marks
    359      * out structured sections like CL1.1.3 or CL2
     358     * @param classifierIDs - each ID is of the form CL# where the number (#)
     359     * marks out structured sections like CL1.1.3 or CL2
    360360     * @param collection is the name of the collection
    361361     * @param service is the name of the browse service (=ClassifierBrowse usually)
    362362    */
    363363    public String retrieveBrowseStructure(
    364             String collection, String service, String classifierID)
     364            String collection, String service, String[] classifierIDs)
    365365    {
    366         String[] classifierIDs = { classifierID };
    367366        return this.browseDescendants(collection, service,
    368367                language, classifierIDs );
Note: See TracChangeset for help on using the changeset viewer.