ASADA Yoshikazu
Innovation Name:プラグインの名前:
CSVインポート機能を改善したデータベースモジュール / Improvement of Database module for CSV importing
Innovation Description:目的・機能の説明:

従来の標準データベースモジュールでは、エクスポート時はユーザ詳細を吐き出すことが可能であるが、インポート時にはこの項目を正しく読み取ることが行われていない。このため、以下のような欠点が生じてしまう。

・インポート時はすべてインポートした教師によるデータとなってしまい、どのユーザが作成したデータか判断できない
・教師権限によるデータであるため、基本的にすべて承認済のステータスとなってしまう

今回のプラグインでは、この欠点を回避するため、CSVに記載されたユーザ名の列を受け取り、そのユーザを著者としたデータになるようインポートするオプションを取り入れた。学生ロールの場合、承認ステータスはそのデータベースモジュールでのデフォルト設定に準拠する形となる。

また、これと合わせ、moodledataフォルダに配置したCSVファイルをスケジュールタスクによって読み込む機能を追加した。これにより、他システムでの学習履歴などについて、CSVを経由することでMoodleに取り込むことも可能となる。

<追記>

本機能のうち、前半の「ユーザ名の正しいインポート」については、3.8で標準DBにも実装されていたことが判明したが、本機能の開発は2018年度末(2019年3月)で完成していたこと、および3.5をベースとしたために「3.8以前でも利用可能」という利点があることを考慮し、応募を継続する。

なお、テスト用Moodleは参考のために3.7 (3.8以前)のMoodleとした。

The default database module can export the detail of user information such as username and lastname. However, these user details are not imported from CSV even if there are fields of them. This causes some problems such as:
  • The imported data are connected to the imported user (such as teachers or managers). So we can’t figure out the original data author.
  • Since the data is imported as the posts of teachers, all items are “approved” automatically.
This plugin resolved this problem. The column of username is imported and the items are connected to the correct users. Since the data is imported as posts of students, the approved status function correctly.

In addition to this, we added another feature to import CSV files from the moodledata folder with the schedule tasks. This enables us to import some learning logs from another LMS via CSV file as the database items.

Download or GIT repository link:ダウンロード/GITリポジトリのリンク:
Demo Site:デモサイト:
Plugins Directory Link:Moodle プラグインディレクトリリンク
Screenshot:スクリーンキャプチャー:
Tags:タグ:

コメント