for (int i = 0; i < ids.size(); i++) {
- RecordInfo record = new RecordInfo(
- getItemShortInfo(Integer.parseInt(ids.get(i))));
- // get copy information
+ RecordInfo record = new RecordInfo(getItemShortInfo(Integer.parseInt(ids.get(i))));
resultsRecordInfo.add(record);
record.copyCountListInfo = getCopyCount(
Integer.parseInt(ids.get(i)), this.selectedOrganization.id);
-
- // get copy count
List<List<Object>> list = (List<List<Object>>) getLocationCount(
Integer.parseInt(ids.get(i)), this.selectedOrganization.id,
this.selectedOrganization.level - 1);
-
if (list != null)
for (int j = 0; j < list.size(); j++) {
CopyInformation copyInfo = new CopyInformation(list.get(j));
-
record.copyInformationList.add(copyInfo);
}
- Log.d(TAG, "Title " + record.title + " Author "
- + record.author + " Pub date" + record.pubdate
- + " Publisher" + record.publisher);
+ Log.d(TAG, "Title:" + record.title
+ + " Author:" + record.author
+ + " Pubdate:" + record.pubdate
+ + " Publisher:" + record.publisher);
}
return resultsRecordInfo;
return searchClassSpinner.getSelectedItem().toString().toLowerCase();
}
- // todo: find a way to get these programmatically. C/W MARS has an extended set of search formats.
+ // Sadly there is currently no way to get these programmatically.
+ // todo: instead of raw strings in the search_format_options string-array,
+ // store an array of search_key:printable_strings, e.g. "book:All Books",
+ // and dynamically construct the spinner.
private String getSearchFormat() {
String value = "";
String s = searchFormatSpinner.getSelectedItem().toString();