import java.util.Map;
import java.util.StringTokenizer;
+import org.evergreen.android.globals.GlobalConfigs;
import org.evergreen.android.globals.Utils;
import org.open_ils.idl.IDLParser;
import org.opensrf.Method;
/** The conn. */
public HttpConnection conn;
- /** The http address. */
- public String httpAddress = "http://ulysses.calvin.edu";
/** The TAG. */
public String TAG = "SearchCatalog";
* @param httpAddress the http address
* @param locale the locale
*/
- public SearchCatalog(String httpAddress, Context context) {
+ public SearchCatalog(Context context) {
super();
this.context = context;
- this.httpAddress = httpAddress;
try{
// configure the connection
- conn = new HttpConnection(httpAddress+"/osrf-gateway-v1");
+ conn = new HttpConnection(GlobalConfigs.httpAddress+"/osrf-gateway-v1");
}catch(Exception e){
complexParm.put("depth", this.selectedOrganization.level-1);
}
//TODO change here, multiple result per page
- complexParm.put("limit", 10);
+ complexParm.put("limit", 50);
/*
complexParm.put("offset",0);
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
context = this;
- search = new SearchCatalog("http://ulysses.calvin.edu",this);
+ search = new SearchCatalog(this);
recordList= new ArrayList<RecordInfo>();
@Override
public void onClick(View v) {
- final String text = searchText.getText().toString();
-
-
+ final String text = searchText.getText().toString();
progressDialog = new ProgressDialog(context);
progressDialog.setMessage("Fetching data");