Non-core contributed modules

MrCUTE Jr. Shared URL/File Repository - need way to import existing file materials efficiently.

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Minor 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.

Activity

Hide
Leo Thiessen added a comment -

Just checked in an update that added basic file import tool. The import process is:

  1. 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
  2. admin/other person can optionally tweak the suggested values in the xls
  3. admin/other user exports xls to csv file & submits it via the import form
  4. 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

Show
Leo Thiessen added a comment - Just checked in an update that added basic file import tool. The import process is:
  1. 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
  2. admin/other person can optionally tweak the suggested values in the xls
  3. admin/other user exports xls to csv file & submits it via the import form
  4. 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
Hide
Leo Thiessen added a comment - - edited

Note that the tool is accessed via the mrcutejr block settings page at Site Administration->Modules->Blocks->MrCUTE Jr. Repository

Show
Leo Thiessen added a comment - - edited Note that the tool is accessed via the mrcutejr block settings page at Site Administration->Modules->Blocks->MrCUTE Jr. Repository

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: