Changeset 22306 for main/trunk/greenstone3
- Timestamp:
- 2010-06-26T16:11:41+12:00 (14 years ago)
- Location:
- main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java
r15326 r22306 94 94 95 95 } 96 97 96 98 97 // check that there are classifiers specified … … 102 101 return false; 103 102 } 104 103 105 104 // get the display and format elements from the coll config file for 106 105 // the classifiers 107 106 extractExtraClassifierInfo(info, extra_info); 108 107 109 108 // short_service_info_ - the browse one 110 109 Element cb_service = this.doc.createElement(GSXML.SERVICE_ELEM); … … 249 248 250 249 /** this looks for any classifier specific display or format info from extra_info and adds it in to the correct place in info */ 251 protectedboolean extractExtraClassifierInfo(Element info, Element extra_info) {250 static boolean extractExtraClassifierInfo(Element info, Element extra_info) { 252 251 253 252 if (extra_info == null) { -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/FedoraServiceProxy.java
r22301 r22306 131 131 // short_service_info Element which needs to be done in this FedoraServiceProxy.configure(). 132 132 133 134 if(extra_info != null) { 135 logger.error("extra_info is not null. May need to merge eventually with info. NOT YET IMPLEMENTED!"); 136 } 133 // get the display and format elements from the coll config file for 134 // the classifiers 135 AbstractBrowse.extractExtraClassifierInfo(info, extra_info); 137 136 138 137 // Copied from IViaProxy.java: … … 281 280 } 282 281 283 //Element response = getResponseAsDOM(fedoraServicesAPIA.retrieveDocumentMetadata(this.cluster_name, docIDs));284 282 Element response = getResponseAsDOM(fedoraServicesAPIA.retrieveDocumentMetadata(this.cluster_name, docIDs, metafields)); 285 283 //logger.info("**** FedoraServiceProxy - Response from documentmetaretrieve: " + GSXML.nodeToFormattedString(response)); … … 349 347 info = info + param.getAttribute("value") + "|"; 350 348 } 351 } 349 } 352 350 353 351 Element response … … 541 539 } else { // documentnode 542 540 response = getResponseAsDOM(fedoraServicesAPIA.retrieveDocumentStructure(this.cluster_name, new String[]{doc_id}, 543 541 new String[]{"children"}, new String[]{"siblingPosition"})); 544 542 String path = GSPath.createPath(new String[]{GSXML.RESPONSE_ELEM, GSXML.DOC_NODE_ELEM+GSXML.LIST_MODIFIER, 545 543 GSXML.DOC_NODE_ELEM, GSXML.NODE_STRUCTURE_ELEM, GSXML.DOC_NODE_ELEM});
Note:
See TracChangeset
for help on using the changeset viewer.