forked from tonyjbutler/moodle-mod_leganto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MOODLE_401_STABLE' of github.com:tonyjbutler/moodle-mod…
…_leganto into MOODLE_403_STABLE
- Loading branch information
Showing
19 changed files
with
279 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License | ||
along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
copyright 2017 Lancaster University (http://www.lancaster.ac.uk/) | ||
license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
author Tony Butler <[email protected]> | ||
copyright 2017 Lancaster University (http://www.lancaster.ac.uk/) | ||
license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
author Tony Butler <[email protected]> | ||
|
||
|
||
Leganto reading list module for Moodle | ||
|
@@ -33,28 +33,39 @@ visibility). | |
Changelog | ||
--------- | ||
|
||
2024-01-05 v4.1.0 | ||
|
||
* Fix inline list display inconsistencies in Moodle 4.1+ | ||
* Refactor output renderer and renderable classes | ||
* Address new issues identified by code checker and CI tests | ||
|
||
2022-06-01 v4.0.0 | ||
|
||
* Fix JS selectors and make transitions less jarring | ||
* Various fixes to improve support for Moodle 4.0 | ||
* Address issues identified by Moodle Plugin CI tests | ||
|
||
2020-10-27 v3.5.1 | ||
|
||
* Tell set_content() that list content is already formatted | ||
* Reset cached list data when loading course module config | ||
|
||
2018-09-07 v3.5.0 | ||
|
||
* Add option to display list content inline and auto-expanded | ||
* Redirect to the list rather than just the course section | ||
* Add null privacy provider for GDPR support | ||
* Add support for new chapter metadata attributes in API | ||
|
||
2018-01-30 v3.1.1, v3.3.1 | ||
|
||
* Display chapter titles for citations of type 'Book Chapter' | ||
* Support course/list/section/citation ids of > 16 characters | ||
* Add option to include public notes in citation display | ||
* Expand list fieldset if it contains pre-selected citations | ||
|
||
2017-09-29 v3.1.0, v3.3.0 | ||
|
||
* Initial stable release | ||
|
||
|
||
|
@@ -65,14 +76,14 @@ Installing from the Git repository (recommended if you installed Moodle from | |
Git): | ||
|
||
Follow the instructions at | ||
https://docs.moodle.org/400/en/Git_for_Administrators#Installing_a_contributed_extension_from_its_Git_repository, | ||
e.g. for the Moodle 4.0.x code: | ||
https://docs.moodle.org/401/en/Git_for_Administrators#Installing_a_contributed_extension_from_its_Git_repository, | ||
e.g. for the Moodle 4.1.x code: | ||
|
||
$ cd /path/to/your/moodle/ | ||
$ cd mod/ | ||
$ git clone https://github.com/tonyjbutler/moodle-mod_leganto.git leganto | ||
$ cd leganto/ | ||
$ git checkout -b MOODLE_400_STABLE origin/MOODLE_400_STABLE | ||
$ git checkout -b MOODLE_401_STABLE origin/MOODLE_401_STABLE | ||
$ git branch -d master | ||
$ cd /path/to/your/moodle/ | ||
$ echo /mod/leganto/ >> .git/info/exclude | ||
|
@@ -93,7 +104,7 @@ Updating Moodle | |
--------------- | ||
If you installed Moodle and the Leganto reading list module from Git you can | ||
run the following commands to update both (see | ||
https://docs.moodle.org/400/en/Git_for_Administrators#Installing_a_contributed_extension_from_its_Git_repository): | ||
https://docs.moodle.org/401/en/Git_for_Administrators#Installing_a_contributed_extension_from_its_Git_repository): | ||
|
||
$ cd /path/to/your/moodle/ | ||
$ git pull | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
// This file is part of Moodle - http://moodle.org/ | ||
// | ||
// Moodle is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Moodle is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
namespace mod_leganto\output; | ||
|
||
use cm_info; | ||
use context; | ||
use context_module; | ||
use renderable; | ||
use stdClass; | ||
|
||
/** | ||
* Leganto list renderable class. | ||
* | ||
* @package mod_leganto | ||
* @copyright 2017 Lancaster University {@link http://www.lancaster.ac.uk/} | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @author Tony Butler <[email protected]> | ||
*/ | ||
class leganto_list implements renderable { | ||
|
||
/** @var context The context of the course module for this leganto_list instance. */ | ||
public $context; | ||
|
||
/** @var stdClass The leganto database record for this leganto_list instance. */ | ||
public $leganto; | ||
|
||
/** @var cm_info The course module info object for this leganto_list instance. */ | ||
public $cm; | ||
|
||
/** | ||
* Constructor for the leganto_list class. | ||
* | ||
* @param stdClass $leganto The leganto record. | ||
* @param cm_info $cm The course module info. | ||
*/ | ||
public function __construct($leganto, $cm) { | ||
$this->leganto = $leganto; | ||
$this->cm = $cm; | ||
$this->context = context_module::instance($cm->id); | ||
} | ||
} |
Oops, something went wrong.