Online resources block

Re: Learning Resources block - now available

by Richard Haywood -
Number of replies: 5

Made two alterations that you might find useful.

Firstly to be able to assign the teachers of a course to administrate the module with out them having to be administrators, this removes the problems where the LRC is not responsible for Moodle as some IT departments are a bit cautious about making people administrators.

Secondly to be able to specify links for particular categories of course, eg physics can have links to suitable resources that are not suitable for German etc.

Hope you find these useful.

In reply to Richard Haywood

Re: Learning Resources block - now available

by Daniele Cordella -
Picture of Core developers Picture of Plugin developers
Hei Richard
at the line 49 of block_learning_resources.php of the zip package you posted, there is a small bug.

It is written
if (isadmin() | isteacher($CFG->block_learning_resources_admin_course,$USER->id)) {
instead of
if (isadmin() || isteacher($CFG->block_learning_resources_admin_course,$USER->id)) {

wink
In reply to Richard Haywood

Re: Learning Resources block - now available

by Daniele Cordella -
Picture of Core developers Picture of Plugin developers
Hei Richard
turning on debug I foud this warning into learning_reource block, too.

Notice: Undefined property: block_learning_resources_admin_course in /myPath/moodle16/blocks/learning_resources/block_learning_resources.php on line 48
Coding error: isteacher() should not be used without a valid course id as argument. Please notify the developer for this module.

In reply to Richard Haywood

Re: Learning Resources block - now available

by Tony Delahunty -

>>> to be able to assign the teachers of a course to administrate the module with out them having to be administrators, this removes the problems where the LRC is not responsible for Moodle as some IT departments are a bit cautious about making people administrators.

this is exactly what we would like, but for some reason I can't see how to assign these rights (ie to non-Admins to access and edit the links for this Learning/Online Resources block).  How do we do this?

 

In reply to Tony Delahunty

Re: Learning Resources block - now available

by Richard Haywood -
Sorry for the delay in this reply.

To set a course teachers to act as administrators for the Library Block then this needs to be selected from the list which is accessable via Moodle > Administration > Blocks > Learning Resources Settings
In reply to Richard Haywood

Re: Learning Resources block - now available

by Tamara Dakic -
The block download is not currently available from the moodle site. Do you by any chance have a version for Moodle 1.8?

Thanks,

Tamara