records = (List<RecordInfo>)getIntent().getSerializableExtra("recordList");
+ if(records.get(records.size()-1).dummy == true)
+ records.remove(records.size()-1);
+
+
//header portion actions
homeButton = (ImageButton) findViewById(R.id.library_logo);
myAccountButton = (Button) findViewById(R.id.my_account_button);
//get copy count
List<List<Object>> list= (List<List<Object>>)getLocationCount(Integer.parseInt(ids.get(i)), this.selectedOrganization.id, this.selectedOrganization.level-1);
-
- for(int j=0; j<list.size();j++){
- CopyInformation copyInfo = new CopyInformation(list.get(j));
+
+ if(list != null)
+ for(int j=0; j<list.size();j++){
+ CopyInformation copyInfo = new CopyInformation(list.get(j));
- record.copyInformationList.add(copyInfo);
- }
+ record.copyInformationList.add(copyInfo);
+ }
System.out.println("Title " + record.title + " Author " + record.author + " Pub date" + record.pubdate +" Publisher" + record.publisher);
}
intent.putExtra("orgID",search.selectedOrganization.id);
intent.putExtra("depth",(search.selectedOrganization.level-1));
- if(recordList.get(recordList.size()-1).dummy == true){
- recordList.remove(recordList.size()-1);
- }
-
intent.putExtra("recordList", recordList);
//TODO put total number
intent.putExtra("recordPosition", position);