Today we're launching the much-anticipated NLN Materials Browser for Moodle (or "Noodle" for short) to public beta. After a very simple one-off installation - Noodle allows you to provide to your tutors access to the entire library of NLN Materials, simply, safely and without any of the usual hassles of file downloads/uploads and Scorm imports.
As many within the UK educational community will know, the NLN Materials are a huge library of high-quality, interactive, Scorm-compliant resources, developed using government funding over the last 5 years, and available free for any LSC-funded educational organisation in the UK. The NLN Materials have had a long association with Moodle. Indeed, the IMS Repository module now included in Moodle was originally written to accommodate local repositories of the NLN Learning Objects. While many practitioners have and do use the materials very successfully with Moodle, the large number and size of the materials, and the complexity of maintaining and effectively exposing local repositories makes current solutions less than ideal. (See this page for our recent review and guidance on the various methods for using the NLN Materials in Moodle.) Since taking over responsibility for the NLN site last year, we've been looking at various ways of bringing down the barriers for usage, and hope this contribution to the Moodle community will help.
Much more information, and the download, is available at the Noodle project page on the NLN site.
Do feel free to post any Noodle-specific suggestions, problems, etc. here - even if its just to say you've got it up and running. (Any day-to-day enquiries concerning registration etc. or queries about specific LOs should still be addressed to the NLN help desk.) This is a beta release, so please note the "known issues" listed on the project page. There may be a limit to the level of support we can give for Noodle itself, since we've developed it in 'free-time' as it were, with no budget - plus we're not experts in Moodle - but we'll do our best, and I hope the community can help too.
Best wishes, and happy noodling...
Robin Skelcey
Technical Director
Xtensis ltd./NLN Materials Service
On Moodle 1.8.3 I have successfully added the NLN Learning object resource
and I am able to browse the NLN materials and add an NLN LO to a Moodle course.
However when clicking on the link generated, the resource "window" (new windowor same window) is blank.
(My Moodle uses PHP 5.2.5 and I have tried both IE7 and Firefox 3 browers )
Any ideas ?
Thanks
Eddie
Best wishes,
Robin.
Yes, the same problem occurs in 1.8.2. The preview is also blank. But in 1.9.1 and 1.9.2 all seems fine - well done Robin, an excellent addition for Moodle users in the UK.
Richard Goddard
INSERT INTO mdl_resource ( COURSE, NAME, TYPE, REFERENCE, SUMMARY, TIMEMODIFIED ) VALUES ( 713, 'Corrective Makeup Techniques Study and Assessment', 'nln', '{CE9EC5B6-2D59-421F-AC22-A098D91B7F1F}', '', 1222182848 )
- line 1425 of lib\dmllib.php: call to debugging()
- line 217 of mod\resource\lib.php: call to insert_record()
- line 16 of mod\resource\type\nln\resource.class.php: call to resource_base->add_instance()
- line 268 of mod\resource\lib.php: call to resource_nln->add_instance()
- line 222 of course\modedit.php: call to resource_add_instance()
"Finally, you may wish to visit the "resource defaults" page, to review/edit the default properties for resource pop-up windows (and whether to use a pop-up or embed the resource within the Moodle interface). If you have never visited this page and saved the changes, you may find that no defaults have been set at all. To visit the resource defaults page, from your Moodle home page find the "Site administration" block and navigate through the menu to Modules/Activities/Resource."
Even if you don't change any values there, make sure you click the Save Changes button.
Hope that helps - I may be on completely the wrong track, but worth a try. Do please let me know how you get on.
Best wishes,
Robin.
I followed the advice above but I got the same error.
Sorry.
function _postprocess(&$resource)
{
global $RESOURCE_WINDOW_OPTIONS;
$alloptions = $RESOURCE_WINDOW_OPTIONS;
$resource->alltext = '';
$resource->popup = '';
if ($resource->windowpopup)
{
$optionlist = array();
foreach ($alloptions as $option)
{
$optionlist[] = $option."=".$resource->$option;
unset($resource->$option);
}
$resource->popup = implode(',', $optionlist);
unset($resource->windowpopup);
$resource->options = '';
}
}
Those two new lines should ensure the two fields are set to empty strings rather than NULL. Looking at it more closely I'm not sure why others (and me) aren't getting the same error... Possibly something specific to a database version/configuration? Anyway, hope this helps.
Thanks for this - I was getting the same error as Lewis and your code did the trick for me too. (I am running Moodle 1.8.1 and Apache...)
Best wishes,
R
I suspect this is related to MDL-9943, but if anyone has a fix I'd be grateful.
To fix the NLN resource type, open /mod/resource/type/nln/resource.class.php and replace the following from line 164:
$searchbutton = $mform->addElement('button', 'browsebutton', get_string('nln_browse', 'resource').'...'); $buttonattributes = array( 'title'=>get_string('nln_browsedescrip', 'resource'), 'onclick'=>"return window.open('../mod/resource/type/nln/browse_start.php', 'nlnbrowse', 'menubar=yes,scrollbars=yes,location=yes,resizable=yes,width=750,height=500'); " ); $searchbutton->updateAttributes($buttonattributes);with the following:
$searchbutton = $mform->addElement('button', 'browsebutton', get_string('nln_browse', 'resource').'...',array( 'title'=>get_string('nln_browsedescrip', 'resource'), 'onclick'=>"return window.open('../mod/resource/type/nln/browse_start.php', 'nlnbrowse', 'menubar=yes,scrollbars=yes,location=yes,resizable=yes,width=750,height=500'); "));
Thanks for this excellent add-in - now I just need it to work in 1.6 ...
Many thanks for your work on this - looks like a fairly tricksy issue, and a problem only when using PHP 4. I'll try out your solution in our installs of 1.8 and 1.9 and update the codebase, hopefully this week. Good luck with 1.6 - do let me know how you get on.
Best wishes,
Robin.
Yes, you're right - but the fix from Eric Bollens seems to be robust.
I am pleased to say that I have successfully rewritten (or crudely hacked) the code so that it works in 1.6.8 - it doesn't automatically populate the name and description as 1.6 isn't that advanced and I don't want to start rewriting the core code, but it does allow this very desirable functionality to be used.
The code can be downloaded from here if anyone wants to try it, I'd be pleased to know if it works for anyone else:
nln_for_1.6.zip
The Known Issues list on the project page has also been updated to include a mention of navigation inside the browser. We know we need a better scheme here, as there's currently no obvious way to return from a Learning Object page back to a search result. (You can however go back to the starting page by clicking the "nln materials" logo in the top-left of the window, though that's not obvious...) We'll be adding a better system to the browser soon. Such an update will be done on our server, so there'll be no need to update your installation.
As always, any reports of problems or successes will be gratefully received.
R
Only commenst i have are add a back button to the browser, and add a mrCute style search box on the first page.
On a separate note, are there any plans to create a converter script? e.g. take existing package file names associate them with the GUID used on nln hosted materials and allow a simple conversion from locally hosted to remote hosted packages?
Tim Chubb
E-Learning Systems Administrator
Stafford College
Thanks for the feedback.
On the back-button - absolutely. The need for better return links is among the 'known issues' on the Noodle project page, and will be fixed (on the server) soon. In the mean time, you can add "toolbar=yes" to the list of attributes of the pop-up window (line 164 of resource.class.php) though that isn't much use if returning to the window after already choosing an LO. Also note clicking the "nln materials" logo takes you back to the start page, though that's not obvious.
On the idea of a text search box, its true we've gone with a slightly unconventional approach. As with the main site, we're encouraging users to click on a subject first - which we've designed to be as unambiguous as possible. Users can then use the text search box provided to do live filtering. Having said that, we will be offering full text search soon, as an alternative way to search (and the main site already offers this in IE6 and Firefox, using their integrated search bar).
On a converter script - yes that would be a great idea (and similarly, once could be written for anyone who has linked directly to the "learner URL" of an NLN LO). Realistically, we won't be able to take on that task any time soon, though we'd be happy to provide full support for anyone who wants to, and provide the mapping list (package names to GUIDs) required.
Best wishes,
Robin.
Thank you so much for a wonderful tool! We've tried so many times in the past to use these brilliant resources, but because of the fiddling around, people don't bother.
I'm positive that with the objects all being in one place that you can access easily, without fuss, will encourage people to use them more.
Well done and THANK YOU!
Best wishes,
Robin.
Hello Everybody,
We had the Noodle NLNs beta version working in Moodle 1.9.1 but we recently upgraded to 1.9.3 and moved to a new server and the option does not show up in the 'Add resources' section. I've checked the folders and all the files and settings are still present. I'm a bit puzzled, can anyone help please??
Thanks,
Yasser
Thanks, I'd done exactly that and your fix solved the problem!
Karen Williams
Noodle v0.3 is currently available for download from the Noodle project page. This version contains some bugfixes from v0.2, but if your installation is working there's no need to download it.
All Noodlers, however, will be interested in our next update. Currently our technical team is hard at work on several oft-requested features, which all being well should all make it into the next release:
- Google-style text search of the materials, alongside the existing browsing by category
- A fix for the "focus dragging" issue, where the user has to click the 'Browse the NLN Materials' button twice because Moodle expected the Name field to be filled
- A Back button!
Regards,
Dan McMahon
Client Support Manager
Xtensis Ltd. / NLN Materials Service
hi
I've just put the latest version of Noodle onto our new moodle v1.9.7 and whilst I can browse through the materials ok, when I click "add to moodle" I get the following error (I had no problem with our older versions of noodle and moodle however)
"P
Sorry, but this window cannot find the original resource edit page in Moodle, so it can't update its values. Please close this window and return to Moodle to try again."
I've made all the adjustments you recommend in resource.php but to no avail - has anyonelse had any problems and if so how do I fix it
Cheers
Richard
Macclesfield College
Hi Richard,
We've got the same issue at our College after upgrading to Moodle 2.0. Did you find a fix or is there anything in the tracker?
Thanks,
Matt
Hi
I'm having problems interacting with NLN resources from within Moodle (version 1.9.7).
I've installed Noodle 1.1 following the instructions in the Readme file and have added an NLN Learning Object using the 'Add a resource' drop-down menu.
However, when I open the NLN resource and click on any of the links on the 'Table of Contents' nothing happens. Although the item in the 'Table of Contents' changes colour when I hover over it and then permanently changes colour when its 'pressed' nothing changes on the screen. Even the 'exit' button doesn't work, even though it appears to be pushed when I click on it.
Any advice please?
Thanks
Russell
I've now sorted the 'problem' – I didn't realise that I had to open the resource in a new window for it to work!
Thank you for your post. I have the same issue when The NLN resource is previewed within NLN website, it works fine but when the material is opened within a moodle course (Version 1.9.13), the left navigation doesn't work. I used Noodle 1.0
It's strange because this material used to work fine when it opens in the "same window" but it looks like this option can't be selected anymore ..
Thank you again. It saves me some time in figure out myself.
Hi folks,
I've recently converted the Noodle resource type plugin into a Moodle 2.2 activity module.
This is now available to download from http://moodle.org/plugins/pluginversions.php?plugin=mod_nln if you want a zip file, or https://github.com/tonyjbutler/moodle-mod_nln if you use Git.
Cheers,
Tony
Forgot to mention that the module supports the restoring of NLN resources from Moodle 1.9 backups and automatically converts existing resources during a site upgrade from Moodle 1.9.
Tony