Search in sources :

Example 6 with BookDetails

use of org.olat.modules.edubase.BookDetails in project openolat by klemens.

the class EdubaseBookSectionListController method showDetails.

private void showDetails(UserRequest ureq, BookSectionWrapper wrapper) {
    String bookId = setParsedBookId(wrapper);
    BookDetails bookDetails = edubaseManager.fetchBookDetails(bookId);
    setCoverUrl(wrapper, bookDetails);
    detailsController = new EdubaseBookSectionDetailsController(ureq, getWindowControl(), wrapper, bookDetails);
    listenTo(detailsController);
    closeableModalController = new CloseableModalController(getWindowControl(), translate("close"), detailsController.getInitialComponent(), true, translate("edubase.book.section.details.form.title"));
    listenTo(closeableModalController);
    closeableModalController.activate();
}
Also used : BookDetails(org.olat.modules.edubase.BookDetails) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Aggregations

BookDetails (org.olat.modules.edubase.BookDetails)6 EOFException (java.io.EOFException)2 SocketTimeoutException (java.net.SocketTimeoutException)2 RequestConfig (org.apache.http.client.config.RequestConfig)2 CloseableHttpResponse (org.apache.http.client.methods.CloseableHttpResponse)2 HttpGet (org.apache.http.client.methods.HttpGet)2 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)2 JsonParseException (org.codehaus.jackson.JsonParseException)2 ObjectMapper (org.codehaus.jackson.map.ObjectMapper)2 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 BookDetailsImpl (org.olat.modules.edubase.model.BookDetailsImpl)2