Details
-
Type:
Sub-task
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.4
-
Fix Version/s: None
-
Component/s: Package: MrCuteJr
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Entering file resources one by one via a web form is inefficient, plus existing groups of files may exist on the server already that need "importing" into the repository database table so they can be easily searched through.
Just checked in an update that added basic file import tool. The import process is:
That's it - files are no "in the repository" and can be searched for, etc. just like ones added via the moodle ui popup window forms
- script parses files in the mrcutejr repository folder and provides guesses for db values, then spits out an xls file for admin user to download
- admin/other person can optionally tweak the suggested values in the xls
- admin/other user exports xls to csv file & submits it via the import form
- script uses csv to populate the mrcutejr repository database table; a summary report is spit out indicating successful rows imported, skipped rows due to duplicate data in db table, and failed rows (indicating either malformed cvs row or db write fail)
That's it - files are no "in the repository" and can be searched for, etc. just like ones added via the moodle ui popup window forms