<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|center"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical"
- android:paddingLeft="4dip"
+ android:paddingLeft="5dip"
+ android:layout_alignParentLeft="true"
>
<TextView
android:id="@+id/checkout_record_title"
style="@style/TitleSearchStyleList"
- android:layout_width="wrap_content"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/checkout_record_author"
style="@style/AuthorSearchStyleList"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
-
- <TextView
- android:id="@+id/checkout_renewals_remaining"
- style="@style/PubSearchStyleList"
- android:layout_width="wrap_content"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
+
<TextView
android:id="@+id/checkout_due_date"
style="@style/PubSearchStyleList"
- android:layout_width="wrap_content"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="due date"
/>
android:layout_height="wrap_content"
android:text="@string/renew_button"
android:layout_gravity="right"
+ android:layout_alignParentRight="true"
/>
-</LinearLayout>
\ No newline at end of file
+</RelativeLayout>
\ No newline at end of file
//Get reference to TextView - record Publisher date+publisher
recordDueDate = (TextView) row.findViewById(R.id.checkout_due_date);
- //Get remaining renewals
- recordRenewals = (TextView) row.findViewById(R.id.checkout_renewals_remaining);
-
renewButton = (TextView) row.findViewById(R.id.renew_button);
renewButton.setText("renew : " + record.getRenewals());
}
}
- listAdapter.clear();
- for(int i=0;i<circRecords.size();i++){
- listAdapter.add(circRecords.get(i));
- }
+
runOnUiThread(new Runnable() {
-
+
@Override
public void run() {
+ listAdapter.clear();
+ for(int i=0;i<circRecords.size();i++){
+ listAdapter.add(circRecords.get(i));
+ }
+
progressDialog.dismiss();
listAdapter.notifyDataSetChanged();
}
recordTitle.setText(record.getTitle());
recordAuthor.setText(record.getAuthor());
recordDueDate.setText(record.getDueDate());
- recordRenewals.setText(record.getRenewals()+"");
}
return row;
CopyInformation.availableOrgStatuses = new LinkedHashMap<String,String>();
- for(int i=0;i<ccs_list.size();i++){
- OSRFObject ccs_obj = ccs_list.get(i);
- if(ccs_obj.getString("opac_visible").equals("t")){
-
- CopyInformation.availableOrgStatuses.put(ccs_obj.getInt("id")+"", ccs_obj.getString("name"));
- System.out.println("Add status " + ccs_obj.getString("name"));
-
+ if(ccs_list != null){
+ for(int i=0;i<ccs_list.size();i++){
+ OSRFObject ccs_obj = ccs_list.get(i);
+ if(ccs_obj.getString("opac_visible").equals("t")){
+
+ CopyInformation.availableOrgStatuses.put(ccs_obj.getInt("id")+"", ccs_obj.getString("name"));
+ System.out.println("Add status " + ccs_obj.getString("name"));
+
+ }
}
}
-
return ccs_list;
}