Outils pour utilisateurs

Outils du site


mod:sharedresource:technique

Technical guide

Shared Resource Activity Module

Capabiltiies

mod/sharedresource:addinstance

People with this capacity can add a shared resource publication in the course.

mod/sharedresource:manageblocks

People with this ability can manage the blocks in the library.

Other capabilities

Other control capabilities of the shared library system are available in other plugins (Shared resource repository).

Network Services (MNET)

The installation of the shared resources installs an interaction service between the libraries and shared resources of several Moodles connected in network.

sharedresource_rpc_check()

sharedresource_rpc_get_categories()

sharedresource_rpc_get_list()

shareresource_rpc_get_metadata()

sharedresource_rpc_move()

sharedresource_rpc_submit()

Sub-plugins

The Shared Resources module has an extensible architecture for the metadata schemas supported. New metadata support can be developed as they are based on Dublin Core.

The currently supported schemes are:

as the result of the development and application of the shared resource library in France.

Impose fixed metadata values

In some cases, certain metadata attributes must be maintained for reasons of default completion of the standard, but their value is predetermined in the local use context of the library. You can force certain fixed values, thus preventing documentalists from entering data that never changes anyway.

In the general moodle configuration file, build a METADATATREE_DEFAULTS array in the following way, using the position of the attribute in the metadata tree:

 $CFG->METADATATREE_DEFAULTS[<schemaname>][<nodeindex>]['default'] = <default value>

Example :

 $CFG->METADATATREE_DEFAULTS['lom']['1_1_1']['default'] = 'Default catalog name';
 

If the attribute belongs to an “unstandable” branch, then the instance index (node arities) can be specified, e.g.:

 $CFG->METADATATREE_DEFAULTS['lom']['3_2_1:0_0_0']['default'] = 'creator';

The above expression will initialize the first instance of the “Role” attribute in the description of the meta-metadata.

Test plan

Basic tests

  • Add an existing shared resource instance (search in the library)
  • Add a new shared resource instance to create in the library
  • Convert shared bodies into local resources
  • Convert activity bodies into shared resources (deployable activity)
  • Delete a shared resource instance
  • Duplicate a shared resource instance
  • Save/restore a course with shared instances

Extended tests

  • Add an instance of a remote repository

Back to plugin index - Back to plugins summary - Back to catalog

mod/sharedresource/technique.txt · Dernière modification : de admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki