Skip to content

Commit

Permalink
Resolve DataCollection imports from ILIAS 8.12 and lower
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais committed Jul 4, 2024
1 parent 6d361a2 commit 544c855
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __construct()

public function getSupportedVersions(): array
{
return ['4.5.0'];
return ['4.5.0', '8.13'];
}

/**
Expand Down Expand Up @@ -444,6 +444,11 @@ public function importRecord(
$value = null;
}
break;
case ilDclDatatype::INPUTFORMAT_TEXT:
if (version_compare($a_schema_version, "8.13") < 0) {
$a_rec['value'] = str_replace('&lt;br /&gt;', '', $a_rec['value']);
}
// no break
default:
$value = $a_rec['value'];
if ($a_entity == 'il_dcl_stloc3_value' && empty($value)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -13,8 +14,7 @@
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
********************************************************************
*/
*********************************************************************/

/**
* Class ilDataCollectionExporter
Expand Down Expand Up @@ -45,8 +45,13 @@ public function getValidSchemaVersions(string $a_entity): array
'4.5.0' => array(
'namespace' => 'https://www.ilias.de/Modules/DataCollection/dcl/4_5',
'xsd_file" => "ilias_dcl_4_5.xsd',
'uses_dataset' => true,
'min' => '4.5.0',
'max' => '8.12',
),
'8.13' => array(
'namespace' => 'https://www.ilias.de/Modules/DataCollection/dcl/4_5',
'xsd_file" => "ilias_dcl_4_5.xsd',
'min' => '8.13',
'max' => '',
),
);
Expand Down
5 changes: 1 addition & 4 deletions src/UI/templates/default/MainControls/footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ footer{
display: inline-block;
margin-right: @il-margin-xs-horizontal;
a, button {
color: @il-footer-link-color;
}
a:hover, button:hover {
color: @il-footer-link-hover-color;
color: @il-link-color;
}
button {
vertical-align: baseline;
Expand Down
4 changes: 0 additions & 4 deletions templates/default/delos.css
Original file line number Diff line number Diff line change
Expand Up @@ -10733,10 +10733,6 @@ footer {
.il-maincontrols-footer .il-footer-links li button {
color: #4c6586;
}
.il-maincontrols-footer .il-footer-links li a:hover,
.il-maincontrols-footer .il-footer-links li button:hover {
color: #3a4c65;
}
.il-maincontrols-footer .il-footer-links li button {
vertical-align: baseline;
}
Expand Down
3 changes: 0 additions & 3 deletions templates/default/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,6 @@ with the il- variable set here.
@il-footer-height: 45px;
//** controls margin from the footer to the main content, increase/decrase depending on the content (default, space for 4 lines).
@il-footer-margin-bottom: 2*@il-line-height-computed*2;
//** controls link colours inside the footer, see https://mantis.ilias.de/view.php?id=41560
@il-footer-link-color: @il-link-color;
@il-footer-link-hover-color: @il-link-hover-color;

//== Buttons
//
Expand Down

0 comments on commit 544c855

Please sign in to comment.