public String searchText = null;
public String searchClass = null;
- private ConnectivityManager cm;
-
public static SearchCatalog getInstance(ConnectivityManager cm) {
if (searchCatalogSingleton == null) {
private SearchCatalog(ConnectivityManager cm) {
super();
- this.cm = cm;
-
try {
// configure the connection
conn = new HttpConnection(GlobalConfigs.httpAddress
this.searchClass = searchClass;
ArrayList<RecordInfo> resultsRecordInfo = new ArrayList<RecordInfo>();
-
- Method method = new Method(METHOD_MULTICLASS_QUERY);
-
HashMap complexParm = new HashMap<String, Integer>();
try {
if (this.selectedOrganization.id != null)
complexParm.put("org_unit", this.selectedOrganization.id);
if (this.selectedOrganization.level != null)
- complexParm.put("depth",
- this.selectedOrganization.level - 1);
+ complexParm.put("depth", this.selectedOrganization.level - 1);
}
complexParm.put("limit", searchLimit);
complexParm.put("offset", offset);
* complexParm.put("offset",0);
* complexParm.put("visibility_limit", 3000);
*/
-
} catch (Exception e) {
Log.d(TAG, "Exception in JSON " + e.getMessage());
}
+ //kcxxx: for searching by format
+ //searchWords = searchWords + " search_format(vhs)";
+
// do request and check for connectivity
Object resp = Utils.doRequest(conn, SERVICE, METHOD_MULTICLASS_QUERY,
new Object[] { complexParm, searchWords, 1 });
public Object getCopyStatuses() {
- List<OSRFObject> ccs_list = (List<OSRFObject>) Utils.doRequestSimple(
- conn, SERVICE, METHOD_COPY_STATUS_ALL, new Object[] {});
+ List<OSRFObject> ccs_list = (List<OSRFObject>) Utils.doRequestSimple(conn, SERVICE,
+ METHOD_COPY_STATUS_ALL, new Object[] {});
CopyInformation.availableOrgStatuses = new LinkedHashMap<String, String>();
Integer orgDepth) {
List<?> list = (List<?>) Utils.doRequestSimple(conn, SERVICE,
- METHOD_COPY_LOCATION_COUNTS, new Object[] { recordID, orgID,
- orgDepth });
+ METHOD_COPY_LOCATION_COUNTS, new Object[] {
+ recordID, orgID, orgDepth });
return list;
}