LabNBook

Activities ::: mod_labnbook
Maintained by david beniamine
This plugin provides access to the LabNBook environment through a Moodle activity. LabNBook is a a collaborative electronic lab notebook for writing and learning sciences.

LabNBook 1.1.5

Moodle 3.7, 3.8, 3.9, 3.10, 3.11, 4.0, 4.1, 4.2, 4.3
Released: جمعه، 21 فوریهٔ 2025، 9:22 PM

LabNbook

This Moodle plugin provides access to LabNbook through a Moodle activity.

After installation, this plugin must be configured to exchange with a LabnBook instance. Then the editing teacher will have access to a new activity type: "LabNbook". The students that enter such an activity will work on the Labnbook site, without the need to authenticate separately.

Install

LabNbook must be installed separately. You must have an admin access to LabNbook, in order to create an institution that will be linked to this Moodle instance.

Install this module like any Moodle activity. If deploying from Git, use composer to install the PHP dependencies.

cd /path/to/moodle
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/labnbook/moodle-labnbook mod/labnbook
php admin/cli/upgrade.php

Then login into Moodle with an admin account. You will be prompted for the new plugin configuration. Input the URL of the LabNbook web API and other settings displayed in the LnB admin view.

Important note

Your server must be able to communicate via HTTPS to the API endpoint configured in the previous step, please ensure that :

  1. If your server is behind a firewall, it allows https calls to the LaBNbook API server
  2. If your server must communicate through a proxy, this proxy is correctly configured in https://yourmoodle.FQDN/admin/settings.php?section=http

Compile javascript

To compile the javascript file run :

cd mod/labnbook
npm install
# If grunt is not installed on your machine
npm install -g grunt-cli
# In the plugin directory
grunt amd

For developpment

composer global config minimum-stability dev
composer global config prefer-stable true
composer global require moodlehq/moodle-cs

Ensure your IDE uses phpcs for checking the coding style

To compile the javascript file run :

cd mod/labnbook
npm install
# If grunt is not installed on your machine
npm install -g grunt-cli
# In the plugin directory
grunt amd

Or if you are using the dockerized moodle from labnbook sources

``` docker-compose exec moodle bash cd mod/labnbook grunt amd ``

Upgrade

Like any Moodle plugin:

  1. update the source code in mod/labnbook/
  2. apply the migration, through CLI with php admin/cli/upgrade.php, or through web by connecting as as an admin on the "Administration" page.

License

Copyright 2019 Université Grenoble Alpes

License GPLv3

This program 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.

This program 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 this program. If not, see http://www.gnu.org/licenses/.

Version information

Version build number
2025022100
Version release name
1.1.5
Maturity
نسخهٔ پایدار
MD5 Sum
2582c844794df6a862980e26f02604da
Supported software
Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11, Moodle 4.0, Moodle 4.1, Moodle 4.2, Moodle 4.3
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10
  • Latest release for Moodle 3.11
  • Latest release for Moodle 4.0
  • Latest release for Moodle 4.1
  • Latest release for Moodle 4.2
  • Latest release for Moodle 4.3

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Activities

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "assignment") in the "mod" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation