Skip to content
Snippets Groups Projects
Commit bcfb24ab authored by gnaegi's avatar gnaegi
Browse files

OO-619 fix broken chelp for scorm raw mode, adding chelp for generic display...

OO-619 fix broken chelp for scorm raw mode, adding chelp for generic display options of iframe content
parent 53ab6d7e
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,9 @@ public class DeliveryOptionsConfigurationController extends FormBasicController ...@@ -142,7 +142,9 @@ public class DeliveryOptionsConfigurationController extends FormBasicController
@Override @Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) { protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
setFormDescription("option.desc"); setFormTitle("option.desc");
setFormContextHelp(this.getClass().getPackage().getName(), "display-options.html", "chelp.display-options.title");
String[] inheritValues = new String[]{ String[] inheritValues = new String[]{
translate("inherit"), translate("custom") translate("inherit"), translate("custom")
}; };
...@@ -153,14 +155,21 @@ public class DeliveryOptionsConfigurationController extends FormBasicController ...@@ -153,14 +155,21 @@ public class DeliveryOptionsConfigurationController extends FormBasicController
} else { } else {
inheritEl.select(inheritKeys[1], true); inheritEl.select(inheritKeys[1], true);
} }
inheritEl.setVisible(parentConfig != null); if (parentConfig == null) {
inheritEl.setVisible(false);
} else {
inheritEl.setVisible(true);
uifactory.addSpacerElement("spacer.mode", formLayout, false);
}
String[] standardModeValues = new String[]{ String[] standardModeValues = new String[]{
translate("mode.standard"), translate("mode.configured") translate("mode.standard"), translate("mode.configured")
}; };
standardModeEl = uifactory.addRadiosVertical("mode", formLayout, standardModeKeys, standardModeValues); standardModeEl = uifactory.addRadiosVertical("mode", formLayout, standardModeKeys, standardModeValues);
standardModeEl.addActionListener(this, FormEvent.ONCHANGE); standardModeEl.addActionListener(this, FormEvent.ONCHANGE);
uifactory.addSpacerElement("spacer.js", formLayout, false);
String[] jsValues = new String[] { String[] jsValues = new String[] {
translate("option.js.none"), translate("option.js.jQuery"), translate("option.js.prototypejs") translate("option.js.none"), translate("option.js.jQuery"), translate("option.js.prototypejs")
}; };
...@@ -238,6 +247,14 @@ public class DeliveryOptionsConfigurationController extends FormBasicController ...@@ -238,6 +247,14 @@ public class DeliveryOptionsConfigurationController extends FormBasicController
//set inherited values //set inherited values
} else { } else {
boolean standard = standardModeEl.isSelected(0); boolean standard = standardModeEl.isSelected(0);
// set default values for OO-mode
if (!standard) {
jsOptionEl.select(jsKeys[1], true);
cssOptionEl.select(cssKeys[1], true);
heightEl.select(keys[0], true);
glossarEl.select("on", true);
}
// enable everything
boolean jQueryEnabled = jsOptionEl.isSelected(1); boolean jQueryEnabled = jsOptionEl.isSelected(1);
jsOptionEl.setEnabled(!standard); jsOptionEl.setEnabled(!standard);
cssOptionEl.setEnabled(!standard); cssOptionEl.setEnabled(!standard);
......
<p>
<b>$r.translate("inherit.label"):</b>
$r.translate("chelp.inherit")
<hr />
</p>
<p>
<b>$r.translate("mode"):</b>
$r.translate("chelp.raw")
<hr />
</p>
<p>
<b>$r.translate("option.js"):</b>
$r.translate("chelp.js")
</p>
<p>
<b>$r.translate("option.glossary"):</b>
$r.translate("chelp.glossary")
</p>
<p>
<b>$r.translate("height.label"):</b>
$r.translate("chelp.height")
</p>
<p>
<b>$r.translate("option.css"):</b>
$r.translate("chelp.css")
<hr />
</p>
<p>
<b>$r.translate("encoding.content"):</b>
$r.translate("chelp.encoding.content")
</p>
<p>
<b>$r.translate("encoding.js"):</b>
$r.translate("chelp.encoding.js")
</p>
#Mon Mar 02 09:54:04 CET 2009 #Mon Mar 02 09:54:04 CET 2009
command.download=Datei herunterladen command.download=Datei herunterladen
iframe.content=Seiteninhalt im iframe iframe.content=Seiteninhalt im iFrame
option.delivery=Layout option.delivery=Layout
mode=Standard Mode mode=Anzeigemodus
mode.standard=Strict mode.standard=Standard
mode.configured=Anpassen mode.configured=Optimiert für OpenOLAT
option.css=CSS Library option.css=Layout anpassen
option.css.none=Keine option.css.none=Keine
option.css.openolat=OpenOLAT Stylesheets option.css.openolat=OpenOLAT Stylesheets
option.desc=Layout Optionen option.desc=Layout Optionen
option.js=Javascript Library option.js=JavaScript hinzufügen
option.js.none=Keine option.js.none=Keine
option.js.jQuery=jQuery option.js.jQuery=jQuery
option.js.prototypejs=prototypejs option.js.prototypejs=Prototype
option.glossary=Glossar option.glossary=Glossarbegriffe einbinden
encoding.content=Zeichensatz Inhalt encoding.content=Zeichensatz Inhalt
encoding.js=Zeichensatz Javascript encoding.js=Zeichensatz Javascript
encoding.auto=Automatisch encoding.auto=Automatisch
encoding.same=Gleich wie Inhalt encoding.same=Gleich wie Inhalt
height.auto=Automatisch height.auto=Automatisch
height.label=H\u00F6he Anzeigefl\u00E4che height.label=H\u00F6he Anzeigefl\u00E4che
inherit.label=Inehrit inherit.label=Standardwerte übernehmen
inherit=Verherbt inherit=Aus Lernressourcenverwaltung übernehmen
custom=Anpassen custom=Anpassen
glossary.need.jQuery=Glossar braucht jQuery glossary.need.jQuery=Glossar braucht jQuery
\ No newline at end of file
chelp.display-options.title=Optionen für die Anzeige
chelp.inherit=Werden Lernressourcen aus der Lernressourcenverwaltung in Kursen eingebunden, so können die Einstellungen für die Darstellung aus der Lernressourcenverwaltung übernommen werden (Option "$\:inherit"). Möchten Sie für diesen Kurs die Standardwerte überschreiben, so wählen Sie die Option "$\:custom".
chelp.js=Um die Funktionen des Anzeigemodus "$\:mode.configured" nutzen zu können muss die JavaScript Bibliothek "$\:option.js.jQuery" aktiviert sein. Die Option "$\:option.js.prototypejs" sollte nur gewählt werden wenn Ihre Inhalte diese Bibliothek voraussetzen. Wählen Sie keine Bibliothek wenn es zu Anzeigeproblemen mit Ihren Inhalten kommt.
chelp.glossary=Wählen Sie diese Option um die Möglichkeit der Hervorhebung von Glossarbegriffen zu aktivieren falls Sie in Ihrem Kurs ein Glossar konfiguriert haben. Diese Option setzt die Verwendung der JavaScript Bibliothek "$\:option.js.jQuery" voraus.
chelp.css=Wählen Sie die Option "$\:option.css.openolat" um das OpenOLAT und Kurslayout in Ihre Seite zu übernehmen (Schriftart, Farben, Grösse etc). Wenn Sie diese Anpassung nicht wünschen wählen Sie die Option "$\:option.css.none".
chelp.height=Mittels des Drop-Down-Menus k\u00F6nnen Sie die H\u00F6he der Inhalte bestimmen. Sie haben die M\u00F6glichkeit, diese via $\:chelp.auto auf die jeweilige Fensterh\u00F6he zu setzen oder auf einen bestimmten Wert zu setzen.
chelp.encoding.content=OpenOLAT versucht, den Zeichensatz automatisch zu erkennen. Wenn die Option "Automatisch" nicht zu der gew\u00FCnschten Anzeige f\u00FChrt, kann die Kodierung des Inhalts anhand eines vordefinierten Zeichensatzes konfiguriert werden (ist keine Kodierung vorhanden, wird per Default der Zeichensatz ISO-8899-1 verwendet).
chelp.encoding.js=Erlaubt die Kodierung des Javascript Codes anhand eines vordefinierten Zeichensatzes (per Default wird der gleiche Zeichensatz für Inhalt und Javascript verwendet).
chelp.raw=Wählen Sie den Modus "$\:mode.standard" um die Ressource unverändert anzuzeigen. Dieser Modus ist geeignet für Ressourcen, bei denen es im Modus "$\:mode.configured" zu Anzeigeproblemen kommt. Wählen Sie den Modus "$\:mode.configured" wenn Sie das Kurslayout in der Seite einbinden wollen, eine JavaScript Bibliothek verwenden möchten, das OpenOLAT Glossar auf dieser Seite anwenden wollen oder die Höhe der Seite automatisch berechnet werden soll. Bei SCORM Modulen ist der Modus "$\:mode.standard" empfohlen.
chelp.auto="$\:height.auto"
#Thu Jan 20 20:06:41 CET 2011 #Fri Jun 28 19:23:54 CEST 2013
chelp.auto="$\:height.auto"
chelp.chelp.encoding.js=Explicitly set the encoding used for reading the JavaScript files. Per default the same encoding is used as for the content of the page.
chelp.css=Select the option "$\:option.css.openolat" to embedd the OpenOLAT and course layout into this page (font type, colors, sizes etc.). If you do not want this option select "$\:option.css.none".
chelp.display-options.title=Display options
chelp.encoding.content=OpenOLAT tries to detect a character set automatically. If the option "Automatic" is not successful it is possible to configure the content coding by means of a predefined character set (should there be no coding the character set ISO-8899-1 will be used by default).
chelp.encoding.js=This permits the coding of Javascript by means of a predefined character set (by default the same set will be used for content and Javascript).
chelp.glossary=Select this option to activate the glossary terms embedding on that page if you have a glossary configured for this course. This option requires the JavaScript library "$\:option.js.jQuery".
chelp.height=By means of the drop-down menu you can determine the height of your content. You have the possibility to set them via $\:chelp.auto to the respective window height or to a certain value of your choice.
chelp.inherit=If you embed learning resources from the learning resources management in the course you can choose to use the display configuration from the learning resource management (option "$\:inherit"). If you want to override the standards values for this course, then select option "$\:custom".
chelp.js=To use the features of the display mode "$\:mode.configured" the JavaScript library "$\:option.js.jQuery" must be activated. The option "$\:option.js.prototypejs" should only be used in case your content requests this library. Select no JavaScript library if you have display issues with your content within OpenOLAT.
chelp.raw=Select the mode "$\:mode.standard" to display the resource unmodified. This mode is useful for resource that encounter render issues when using the mode "$\:mode.configured". Use the mode "$\:mode.configured" when you want to embed the course layout, a JavaScript library, the OpenOLAT glossary or when you want to use the automatic height detection of the page. In case of SCORM modules the mode "$\:mode.standard" is recommended.
command.download=Download file command.download=Download file
iframe.content=Page content within iframe custom=Modify
option.delivery=Layout encoding.auto=Automatically
mode=Standard Mode
mode.standard=Strict
mode.configured=Modified
option.css=CSS Library
option.css.none=None
option.css.openolat=OpenOLAT stylesheets
option.desc=Layout options
option.js=Javascript library
option.js.none=None
option.js.jQuery=jQuery
option.js.prototypejs=prototypejs
option.glossary=Glossary
encoding.content=Content character set encoding.content=Content character set
encoding.js=Javascript character set encoding.js=Javascript character set
encoding.auto=Automatically
encoding.same=Same as content encoding.same=Same as content
glossary.need.jQuery=Glossary needs jQuery
height.auto=Automatic height.auto=Automatic
height.label=Display height height.label=Display height
inherit.label=Inherit iframe.content=Page content within iframe
inherit=Inheritance inherit=Use from learning resource configuration
custom=Modified inherit.label=Use standard configuration
glossary.need.jQuery=Glossary needs jQuery mode=Display mode
rawcontent.height.error=If "$\:rawcontent.label" is set, you need to specify the height of the window mode.configured=Optimized for OpenOLAT
rawcontent.label=Standard mode mode.standard=Standard
option.css=Adapt layout
option.css.none=None
option.css.openolat=OpenOLAT stylesheets
option.delivery=Layout
option.desc=Layout options
option.glossary=Embed glossary terms
option.js=Embed Javascript library
option.js.jQuery=jQuery
option.js.none=None
option.js.prototypejs=Prototype
\ No newline at end of file
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
<b>$r.translate("shownavbuttons.label"):</b> $r.translate("chelp.set2") <br/><br/> <b>$r.translate("shownavbuttons.label"):</b> $r.translate("chelp.set2") <br/><br/>
<b>$r.translate("fullwindow.label"):</b> $r.translate("chelp.set10") <br/><br/> <b>$r.translate("fullwindow.label"):</b> $r.translate("chelp.set10") <br/><br/>
<b>$r.translate("closeonfinish.label"):</b> $r.translate("chelp.set11") <br/><br/> <b>$r.translate("closeonfinish.label"):</b> $r.translate("chelp.set11") <br/><br/>
<b>$r.translate("rawcontent.label"):</b> $r.translate("chelp.set14") <br/><br/>
<b>$r.translate("height.label"):</b> $r.translate("chelp.set3") $r.translate("chelp.set4") <br/><br/>
<b>$r.translate("encoding.content"):</b> $r.translate("chelp.set7")<br/><br/>
<b>$r.translate("encoding.js"):</b> $r.translate("chelp.set8")<br/><br/>
<b>$r.translate("assessable.label"):</b> $r.translate("chelp.set5") <br/><br/> <b>$r.translate("assessable.label"):</b> $r.translate("chelp.set5") <br/><br/>
<b>$r.translate("cutvalue.label"):</b> $r.translate("chelp.set6") <br/><br/> <b>$r.translate("cutvalue.label"):</b> $r.translate("chelp.set6") <br/><br/>
<b>$r.translate("advance.score.label"):</b> $r.translate("chelp.set12") <br/><br/> <b>$r.translate("advance.score.label"):</b> $r.translate("chelp.set12") <br/><br/>
......
...@@ -5,7 +5,6 @@ assessable.type.score=Score \u00FCbertragen ...@@ -5,7 +5,6 @@ assessable.type.score=Score \u00FCbertragen
assessable.type.passed=Passed \u00FCbertragen assessable.type.passed=Passed \u00FCbertragen
attempts.nomoreattempts=Es stehen Ihnen keine weiteren Versuche zur Verf\u00FCgung. attempts.nomoreattempts=Es stehen Ihnen keine weiteren Versuche zur Verf\u00FCgung.
attempts.yourattempts=Anzahl gemachter Versuche attempts.yourattempts=Anzahl gemachter Versuche
chelp.auto=<i>$org.olat.course.nodes.scorm\:height.auto</i>
chelp.ced-scorm-settings.title=SCORM: Konfigurieren chelp.ced-scorm-settings.title=SCORM: Konfigurieren
chelp.ced-scorm.title=SCORM-Lerninhalt auswählen chelp.ced-scorm.title=SCORM-Lerninhalt auswählen
chelp.chanSco=<i>$org.olat.course.nodes.scorm\:command.changecp</i> chelp.chanSco=<i>$org.olat.course.nodes.scorm\:command.changecp</i>
...@@ -20,18 +19,13 @@ chelp.sco3=Wenn Sie schon einen $\:chelp.sco hinzugef\u00FCgt haben, erscheint d ...@@ -20,18 +19,13 @@ chelp.sco3=Wenn Sie schon einen $\:chelp.sco hinzugef\u00FCgt haben, erscheint d
chelp.sco4=Sie haben nun die M\u00F6glichkeit, mit dem Button $\:chelp.chanSco eine andere ZIP-Datei zu w\u00E4hlen. chelp.sco4=Sie haben nun die M\u00F6glichkeit, mit dem Button $\:chelp.chanSco eine andere ZIP-Datei zu w\u00E4hlen.
chelp.set1=Bestimmen Sie, ob bei der Anzeige des Scorm-Packets links ein Navigations-Menu angezeigt werden soll. chelp.set1=Bestimmen Sie, ob bei der Anzeige des Scorm-Packets links ein Navigations-Menu angezeigt werden soll.
chelp.set2=Bestimmen Sie, ob innerhalb des Scorm-Inhaltes mit Vor- und Zur\u00FCckbuttons navigiert werden kann. chelp.set2=Bestimmen Sie, ob innerhalb des Scorm-Inhaltes mit Vor- und Zur\u00FCckbuttons navigiert werden kann.
chelp.set3=Mittels des Drop-Down-Menus k\u00F6nnen Sie die H\u00F6he der Scorm-Seiten bestimmen.
chelp.set4=Sie haben die M\u00F6glichkeit, diese via $\:chelp.auto auf die jeweilige Fensterh\u00F6he zu setzen oder auf einen bestimmten Wert zu setzen.
chelp.set5=Bestimmen Sie, ob die Summe aller im Scorm-Packet erreichten Punkte an das OLAT-Bewertungssystem weitergegeben werden soll. chelp.set5=Bestimmen Sie, ob die Summe aller im Scorm-Packet erreichten Punkte an das OLAT-Bewertungssystem weitergegeben werden soll.
chelp.set6=Geben Sie eine Ganzzahl ein, die aussagt, wieviele Punkte erreicht werden m\u00FCssen, damit der Scorm-Test als bestanden gilt. chelp.set6=Geben Sie eine Ganzzahl ein, die aussagt, wieviele Punkte erreicht werden m\u00FCssen, damit der Scorm-Test als bestanden gilt.
chelp.set7=OLAT versucht, den Zeichensatz automatisch zu erkennen. Wenn die Option "Automatisch" nicht zu der gew\u00FCnschten Anzeige f\u00FChrt, kann die Kodierung des Inhalts anhand eines vordefinierten Zeichensatzes konfiguriert werden (ist keine Kodierung vorhanden, wird per Default der Zeichensatz ISO-8899-1 verwendet).
chelp.set8=Erlaubt die Kodierung des Javascript Codes anhand eines vordefinierten Zeichensatzes (per Default wird der gleiche Zeichensatz für Inhalt und Javascript verwendet).
chelp.set9=Bestimmen Sie, ob der SCORM-Lerninhalt automatisch startet, wenn der entsprechende Menu-Punkt im Kurs ausgewählt wird. Wenn Sie diese Option nicht aktivieren, wird stattdessen eine Startseite angezeigt. chelp.set9=Bestimmen Sie, ob der SCORM-Lerninhalt automatisch startet, wenn der entsprechende Menu-Punkt im Kurs ausgewählt wird. Wenn Sie diese Option nicht aktivieren, wird stattdessen eine Startseite angezeigt.
chelp.set10=Ist diese Checkbox markiert, wird OpenOLAT mit dem \u00D6ffnen des Kursbausteins ausgeblendet. Statt dessen wird das SCORM Modul im ganzen Browserfenster dargestellt. chelp.set10=Ist diese Checkbox markiert, wird OpenOLAT mit dem \u00D6ffnen des Kursbausteins ausgeblendet. Statt dessen wird das SCORM Modul im ganzen Browserfenster dargestellt.
chelp.set11=Das SCORM Modul wird automatisch geschlossen sobald es beendet ist, und der Benutzer kehrt in die Kursansicht zur\u00FCck. chelp.set11=Das SCORM Modul wird automatisch geschlossen sobald es beendet ist, und der Benutzer kehrt in die Kursansicht zur\u00FCck.
chelp.set12=Falls dem Benutzer mehrere L\u00F6sungsversuche zur Verf\u00FCgung stehen, kann mit Markieren dieser Checkbox verhindert werden, dass ein erneuter Anlauf ein bereits bestehendes Resultat verschlechtert. chelp.set12=Falls dem Benutzer mehrere L\u00F6sungsversuche zur Verf\u00FCgung stehen, kann mit Markieren dieser Checkbox verhindert werden, dass ein erneuter Anlauf ein bereits bestehendes Resultat verschlechtert.
chelp.set13=Mittels des Drop-Down-Menus k\u00F6nnen Sie die Anzahl der L\u00F6sungsversuche einschr\u00E4nken. Der h\u00F6chste zur Auswahl stehende Wert ist 20. chelp.set13=Mittels des Drop-Down-Menus k\u00F6nnen Sie die Anzahl der L\u00F6sungsversuche einschr\u00E4nken. Der h\u00F6chste zur Auswahl stehende Wert ist 20.
chelp.set14=Schaltet einen Kompatibilitätsmodus für den SCORM Kursbaustein sein, falls OpenOLAT Probleme mit der Darstellung der SCORM-Inhalte hat. Bei eingeschaltetem Kompatibilitätsmodus muss die Höhe der Anzeigefläche manuell gesetzt werden.
chosencp=Gew\u00E4hlter SCORM-Lerninhalt chosencp=Gew\u00E4hlter SCORM-Lerninhalt
command.changecp=SCORM-Lerninhalt auswechseln command.changecp=SCORM-Lerninhalt auswechseln
command.importcp=SCORM-Lerninhalt w\u00E4hlen oder importieren command.importcp=SCORM-Lerninhalt w\u00E4hlen oder importieren
......
...@@ -10,7 +10,6 @@ attempts.max.reached=Maximum number of attempts are reached. ...@@ -10,7 +10,6 @@ attempts.max.reached=Maximum number of attempts are reached.
attempts.noLimit=unlimited attempts.noLimit=unlimited
attempts.nomoreattempts=There are no more attempts at your disposal. attempts.nomoreattempts=There are no more attempts at your disposal.
attempts.yourattempts=Number of attempts attempts.yourattempts=Number of attempts
chelp.auto=<i>$org.olat.course.nodes.scorm\:height.auto</i>
chelp.ced-scorm-settings.title=SCORM\: configure chelp.ced-scorm-settings.title=SCORM\: configure
chelp.ced-scorm.title=Select SCORM learning content chelp.ced-scorm.title=Select SCORM learning content
chelp.chanSco=<i>$org.olat.course.nodes.scorm\:command.changecp</i> chelp.chanSco=<i>$org.olat.course.nodes.scorm\:command.changecp</i>
...@@ -28,14 +27,9 @@ chelp.set10=Check this box if you want OpenOLAT to be hidden while the SCORM mod ...@@ -28,14 +27,9 @@ chelp.set10=Check this box if you want OpenOLAT to be hidden while the SCORM mod
chelp.set11=Check this box if the SCORM module should automatically close when it's finished, returning the participant to the course. chelp.set11=Check this box if the SCORM module should automatically close when it's finished, returning the participant to the course.
chelp.set12=If this box is checked, a score already achieved will not be decreased by further attempts. chelp.set12=If this box is checked, a score already achieved will not be decreased by further attempts.
chelp.set13=By means of the drop-down menu the number of attempts available can be limited. chelp.set13=By means of the drop-down menu the number of attempts available can be limited.
chelp.set14=Check this box if OpenOLAT has problems correctly displaying the SCORM content. If this compatibility mode is enabled, you need to manually set the window height.
chelp.set2=Determine if it should be possible to navigate via the back and forward buttons within your SCORM content. chelp.set2=Determine if it should be possible to navigate via the back and forward buttons within your SCORM content.
chelp.set3=By means of the drop-down menu you can determine the height of your SCORM pages.
chelp.set4=You have the possibility to set them via $\:chelp.auto to the respective window height or to a certain value of your choice.
chelp.set5=Determine if the total score of your SCORM packet should be transferred to the OLAT assessment system. chelp.set5=Determine if the total score of your SCORM packet should be transferred to the OLAT assessment system.
chelp.set6=Determine an integer to indicate your minimum score for passing that SCORM test. chelp.set6=Determine an integer to indicate your minimum score for passing that SCORM test.
chelp.set7=OLAT tries to detect a character set automatically. If the option "Automatic" is not successful it is possible to configure the content coding by means of a predefined character set (should there be no coding the character set ISO-8899-1 will be used by default).
chelp.set8=This permits the coding of Javascript by means of a predefined character set (by default the same set will be used for content and Javascript).
chelp.set9=Determine if the SCORM learning content should launch automatically if the corresponding menu-node is selected within the course. If you do not select this option, a start-page is displayed instead. chelp.set9=Determine if the SCORM learning content should launch automatically if the corresponding menu-node is selected within the course. If you do not select this option, a start-page is displayed instead.
chosencp=Selected SCORM learning content chosencp=Selected SCORM learning content
closeonfinish.label=Close module automatically on finish closeonfinish.label=Close module automatically on finish
......
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