+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:id="@+id/menu_refresh"
- android:title="refresh"
- android:icon="@drawable/ic_action_refresh"
- android:orderInCategory="1"
- android:showAsAction="always" />
- <item android:id="@+id/menu_search"
- android:title="search"
- android:icon="@drawable/ic_launcher"
- android:orderInCategory="0"
- android:showAsAction="always" />
-</menu>
-
}
in.close();
} catch (Exception e) {
- System.err
- .println("Error in retrieving response " + e.getMessage());
+ System.err.println("Error in retrieving response " + e.getMessage());
}
result = str.toString();
return in;
} catch (Exception e) {
- System.err
- .println("Error in retrieving response " + e.getMessage());
+ System.err.println("Error in retrieving response " + e.getMessage());
}
return in;
public static void bookCoverImage(ImageView picture, String imageID,
int size) {
- String urlS = (GlobalConfigs.httpAddress
- + "/opac/extras/ac/jacket/small/" + imageID);
+ String urlS = (GlobalConfigs.httpAddress + "/opac/extras/ac/jacket/small/" + imageID);
+ Log.d(TAG, "cover image: " + urlS);
Bitmap bmp = null; // create a new Bitmap variable called bmp, and
// initialize it to null
// Get item
RecordInfo record = getItem(position);
- // if it is the right type of view
- if (row == null
- || row.findViewById(R.id.search_record_title) == null) {
-
- Log.d(tag, "Starting XML Row Inflation ... ");
- LayoutInflater inflater = (LayoutInflater) this
- .getContext().getSystemService(
- Context.LAYOUT_INFLATER_SERVICE);
- row = inflater.inflate(R.layout.search_result_item, parent,
- false);
- Log.d(tag, "Successfully completed XML Row Inflation!");
+ // if it is the right type of view
+ if (row == null
+ || row.findViewById(R.id.search_record_title) == null) {
+
+ Log.d(tag, "Starting XML Row Inflation ... ");
+ LayoutInflater inflater = (LayoutInflater) this
+ .getContext().getSystemService(
+ Context.LAYOUT_INFLATER_SERVICE);
+ row = inflater.inflate(R.layout.search_result_item, parent,
+ false);
+ Log.d(tag, "Successfully completed XML Row Inflation!");
- }
+ }
+
+ // Get reference to ImageView
+ recordImage = (ImageView) row.findViewById(R.id.search_record_img);
+ //String imageHref = GlobalConfigs.httpAddress + "/opac/extras/ac/jacket/small/" + record.isbn;
+ String imageHref = GlobalConfigs.httpAddress + "/opac/extras/ac/jacket/small/r/" + record.image;
+ Log.d(TAG, "image url " + imageHref);
+
+ // start async download of image
+ imageDownloader.download(imageHref, recordImage);
+
+ recordTitle = (TextView) row.findViewById(R.id.search_record_title);
+ recordAuthor = (TextView) row.findViewById(R.id.search_record_author);
+ recordPublisher = (TextView) row.findViewById(R.id.search_record_publishing);
+
+ // set text
+ recordTitle.setText(record.title);
+ recordAuthor.setText(record.author);
+ recordPublisher
+ .setText(record.pubdate + " " + record.publisher);
- Log.d(TAG, "reord image value " + recordImage);
- // Get reference to ImageView
- recordImage = (ImageView) row
- .findViewById(R.id.search_record_img);
- String imageHref = GlobalConfigs.httpAddress
- + "/opac/extras/ac/jacket/small/" + record.isbn;
- // start async download of image
- imageDownloader.download(imageHref, recordImage);
- // Get reference to TextView - title
- recordTitle = (TextView) row
- .findViewById(R.id.search_record_title);
-
- // Get reference to TextView - author
- recordAuthor = (TextView) row
- .findViewById(R.id.search_record_author);
-
- // Get referance to TextView - record Publisher date+publisher
- recordPublisher = (TextView) row
- .findViewById(R.id.search_record_publishing);
-
- // set text
- recordTitle.setText(record.title);
- recordAuthor.setText(record.author);
- recordPublisher
- .setText(record.pubdate + " " + record.publisher);
-
return row;
}
}