Skip to content
Snippets Groups Projects
Commit 065e2e1c authored by srosse's avatar srosse
Browse files

Merge OpenOLAT 10.5 to OpenOLAT 11.1 with 485bae0230efa6d5155ebc74e129c698f0e45355

parents 0c46a297 63d95e88
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -92,6 +92,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import de.bps.onyx.plugin.OnyxModule; import de.bps.onyx.plugin.OnyxModule;
import de.bps.onyx.plugin.course.nodes.iq.IQEditForm; import de.bps.onyx.plugin.course.nodes.iq.IQEditForm;
import de.bps.onyx.plugin.run.OnyxRunController;
import de.bps.webservices.clients.onyxreporter.OnyxReporterConnector; import de.bps.webservices.clients.onyxreporter.OnyxReporterConnector;
import de.bps.webservices.clients.onyxreporter.OnyxReporterException; import de.bps.webservices.clients.onyxreporter.OnyxReporterException;
...@@ -193,12 +194,8 @@ public class IQConfigurationController extends BasicController { ...@@ -193,12 +194,8 @@ public class IQConfigurationController extends BasicController {
previewLink = LinkFactory.createCustomLink("command.preview", "command.preview", displayName, Link.NONTRANSLATED, myContent, this); previewLink = LinkFactory.createCustomLink("command.preview", "command.preview", displayName, Link.NONTRANSLATED, myContent, this);
previewLink.setIconLeftCSS("o_icon o_icon-fw o_icon_preview"); previewLink.setIconLeftCSS("o_icon o_icon-fw o_icon_preview");
if(isOnyx) { previewLink.setCustomEnabledLinkCSS("o_preview");
previewLink.setEnabled(false); previewLink.setTitle(translate("command.preview"));
} else {
previewLink.setCustomEnabledLinkCSS("o_preview");
previewLink.setTitle(translate("command.preview"));
}
} }
String disclaimer = (String) moduleConfiguration.get(IQEditController.CONFIG_KEY_DISCLAIMER); String disclaimer = (String) moduleConfiguration.get(IQEditController.CONFIG_KEY_DISCLAIMER);
...@@ -374,9 +371,14 @@ public class IQConfigurationController extends BasicController { ...@@ -374,9 +371,14 @@ public class IQConfigurationController extends BasicController {
removeAsListenerAndDispose(previewLayoutCtr); removeAsListenerAndDispose(previewLayoutCtr);
RepositoryEntry re = getIQReference(moduleConfiguration, false); RepositoryEntry re = getIQReference(moduleConfiguration, false);
if(re != null && !OnyxModule.isOnyxTest(re.getOlatResource())) { if(re != null) {
Controller previewController; Controller previewController;
if(ImsQTI21Resource.TYPE_NAME.equals(re.getOlatResource().getResourceableTypeName())) { if(OnyxModule.isOnyxTest(re.getOlatResource())) {
Controller previewCtrl = new OnyxRunController(ureq, getWindowControl(), re, false);
listenTo(previewCtrl);
previewLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), previewCtrl);
stackPanel.pushController(translate("preview"), previewLayoutCtr);
} else if(ImsQTI21Resource.TYPE_NAME.equals(re.getOlatResource().getResourceableTypeName())) {
//TODO qti //TODO qti
/* need to clean up the assessment test session /* need to clean up the assessment test session
QTI21DeliveryOptions deliveryOptions = qti21service.getDeliveryOptions(re); QTI21DeliveryOptions deliveryOptions = qti21service.getDeliveryOptions(re);
......
...@@ -12,13 +12,7 @@ ...@@ -12,13 +12,7 @@
#if ($dontRenderRepositoryButton) #if ($dontRenderRepositoryButton)
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-3">$r.translate("file.name")</label> <label class="control-label col-sm-3">$r.translate("file.name")</label>
<div class="col-sm-9"><p class="form-control-static"> <div class="col-sm-9"><p class="form-control-static">$r.render("command.preview")</div>
#if ($isOnyx)
$onyxDisplayName
#else
$r.render("command.preview")
#end</p>
</div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-sm-offset-3 col-sm-9"> <div class="col-sm-offset-3 col-sm-9">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment