What steps will reproduce the problem?
Ran the sample code (modified to include getPublisher):
System.out.println("Query: [" + query + "]");
List volumesList = books.volumes.list(query);
volumesList.setLangRestrict("ar");
System.out.println("Fields: "+volumesList.getFields());
//volumesList.setFilter("full");
// Execute the query.
Volumes volumes = volumesList.execute();
if (volumes.getTotalItems() == 0 || volumes.getItems() == null) {
System.out.println("No matches found.");
return;
}
// Output results.
for (Volume volume : volumes.getItems()) {
VolumeVolumeInfo volumeInfo = volume.getVolumeInfo();
VolumeSaleInfo saleInfo = volume.getSaleInfo();
System.out.println("==========");
System.out.println("Url: " + volumeInfo.getInfoLink());
// Title.
System.out.println("Title: " + volumeInfo.getTitle());
// Author(s).
java.util.List<String> authors = volumeInfo.getAuthors();
if (authors != null && !authors.isEmpty()) {
System.out.print("Author(s): ");
for (int i = 0; i < authors.size(); ++i) {
System.out.print(authors.get(i));
if (i < authors.size() - 1) {
System.out.print(", ");
}
}
System.out.println();
}
System.out.println("Print type: "+volumeInfo.getPrintType());
System.out.println("Page Count: "+volumeInfo.getPageCount());
System.out.println("Publisher: "+volumeInfo.getPublisher());
What is the expected output? What do you see instead?
volumeInfo.getPublisher() always returning null (even if book has a publisher)
What version of the product are you using? On what operating system?
google-api-services-books-v1.2.0-beta
Original issue reported on code.google.com by jve...@gmail.com on 18 Aug 2011 at 7:39
Original issue reported on code.google.com by
jve...@gmail.com
on 18 Aug 2011 at 7:39