String dept = sio.getDepartmentId();
String course = sio.getCourseId();
String section = sio.getSectionId();
String day = sio.getDay();
String term = sio.getTerm();
BuildingModel blo = uws.search(sio.getBuilding());
UBCSectionDetailService w = new UBCSectionDetailService();
w.initContent(new UniqueCourseObject(dept,course,section));
List<BookInformation> biol = w.getBookList();
out += "<table>";
out += "<tr>\n";
out += "<td>"+dept+" "+course+" "+section+"</td>\n";
out += "</tr>\n";
out += "<tr>\n";
out += "<td><b>Activity: </b>"+sio.getActivity()+"</td>\n";
out += "<td><b>Term: </b>"+term+"</td>\n";
out += "</tr>\n";
out += "<tr>\n";
out += "<td><b>Day: </b>"+day+"</td>\n";
out += "<td><b>Time: </b>"+sio.getStart()+" - "+sio.getEnd()+"</td>\n";
out += "</tr>\n";
if(!sio.getInstructor().isEmpty()){
out += "<tr>\n";
out += "<td><b>Instructor: </b>"+sio.getInstructor()+"</td>\n";
out += "</tr>\n";
}
if(blo != null) {
out += "<tr>\n";
out += "<td><b>Building: </b>"+sio.getBuilding()+"</td>\n";
out += "<td><b>Room: </b>"+sio.getRoom()+"</td>\n";
if(blo.getLatitude() != "" && blo.getLongitude() != "")
out += "<td>"+"<img src=\"http://maps.googleapis.com/maps/api/staticmap?center="+blo.getLatitude()+","+blo.getLongitude()+"&zoom=17&size=320x320&markers=color:blue%7Clabel:S%7C"+blo.getLatitude()+","+blo.getLongitude()+"&maptype=hybrid&sensor=false\" width=\"320\" height=\"320\">"+"</td>";
out += "</tr>\n";
}
if(!biol.isEmpty()){
out += "<tr>\n";
out += "Books: \n";