I've just sent to CVS (1.6dev only) a new resource type. It allows to load and deploy packages conforming the IMS Content Packaging specification.
Please, stress it with your packages and send your info here. Ideas will be welcome, of course!
Know bugs:
- It doesn't display properly diacritics and non-ascii characters for now. It would be really easy to convert them to iso_8859_1 (just a call to utf_decode()), but I would like to start a discussion about how to handle this for non-iso sites.
Ciao
It's alpha for now (just the first release) so I don't know it it will fit inside 1.5.x (at least in the next weeks). Anyway, as it doesn't make any DB changes nor modify anything outside itself (great resource types plugin mechanism!), I think that you can use it (for testing!!!) under 1.5 too.
Just copy the mod/resource/type/ims dir over your 1.5 site and you will have it working. Some lang and style files are used too but they aren't mandatory for the IMS CP resource type to work.
Ciao
Your new resource type is great!
We liked it so much that we have "borrowed" the code and included it in our new resource type: Object repository - I hope you don't mind.
People seem to be calling this the "IMS Resource Type" (eg: docs.moodle.org/en/IMS_resource_type). This is potentially really confusing, since IMS is the name of the body that agrees the standards, not of the standard itself. (They also set the standards for IMS Enterprise, IMS ePortfolio, etc etc, all relevant in a Moodle context!)
Can we agree to call it the "IMS CP" resource type? I hope the wiki page can be renamed, at least.
Thanks-
Dan
Thanks for your comments - you're right that we should agree upon a good name for this new resource type. My reasoning in calling it "IMS" was simply to keep the name as short as possible and in consideration of acronym-phobic teachers.
As mentioned previously in this thread, I've been involved in developing our contrib Object module into a resource type which combines the features of Eloy's resource type with the option to browse and preview packages in a central repository. Hopefully this code will be included in Moodle 1.6 at some point. As teachers seemed happy with the module name "Object", we kept it as a resource type name. However, I now realise that this was not a good plan because the Hive integration resource type is named "Repository object" - very confusing!
I think it's currently called an "IMS content package" in 1.6. Perhaps I should re-name the wiki page accordingly?
I've added a bit of extra blurb to that wiki page. Feel free to flesh it out if you feel inspired.
Hi Eloy,
Can you forward to me the link to Download IMS CP.
The resi=ource looks great.
Can you direct me to read up on the functionality.
Thanks
Garry
it's included in the 1.6dev release so you can find it in http://download.moodle.org
I would recommend you to install the 1.6 Complete Package because it's included there and such package runs in UTF-8 mode, being a good candidate to perform all sort of "real" tests...
Any feedback will be welcome. I hope to spend some days improving the IMS resource type in some weeks...
Ciao
Hi Eloy,
Thanks for the info Shall try out as suggested.
Garry
Eloy,
Thanks for the link.
Does it work in 1.5.3+??
Garry
- Ian
If Moodle's SCORM can import an IMS content package -and- it does more (like assessments), why do we need a separate resource type?
- Ian
Thanks for testing the IMS CP.
You've most likely noticed many changes between the 1.6 beta and 1.6 dev versions. It would be very helpful if you could post a report in the bug tracker, providing as many details as possible, such as information about the package used for testing, whether it is particular pages which don't appear or whether the problem is intermittent etc.
I'm also experiencing problems. Having now successfully got the repository working, I've put some content in there and deployed it all. However, the preview isn't working, looking as though a file is missing. However, the file is there, so I'm assuming the URL is wrong somewhere:
Not Found
The requested URL /ims_repository/snb22/nlntutor.htm was not found on this server.
This is the error I'm getting. There was an extra slash after 'ims_repository' which I've managed to eliminate thinking that was the issue and it's still not working. I've tried all sorts of combinations in the config files and still can't get it working
Any tips/ideas would be very gratefully received!
Many thanks
Karen Williams
Hi Helen
Thanks for getting back. The repository_config.php shows (without the linebreaks):
<?php
$CFG->repositoryactivate = true;
$CFG->repository = "c:\program files\easyPHP1-8\www\moodle\ims_repository";
$CFG->repositorywebroot = "/ims_repository";
?>
Any ideas?
Many, many thanks again.
Karen
Hi Karen,
When you view your moodle site do you access using the address http://your-host-name/ or by http://your-host-name/moodle/ ? If it's the latter, try using,
$CFG->repositorywebroot = '/moodle/ims_repository';
in repository_config.php
Hope this helps
Hi Andrew
That's great, it worked
Thanks very much
Karen
This problem is also happening to me, and is not intermittent.
It happens allways (with all the IMS courses) using Moodle 1.6.1 and 1.6.1+, when viewing it with the Microsoft IE.
With Firefox it works well.
The content in the inline frames don't show at the first instance, and not even reloading the page.
The content only shows when clicking twice on appropiate link on the left side in the navigation menu.
I'm using EXE version 0.17 as the IMS package editor.
I read the interesting post of Chris Freyer regarding the old bug MDL-5684 and did his modifications on the code but it doesnt help to the IMS package problem.
I'll be posting this on the bug tracker.
I have been trying to test the repository out on our 1.6 Beta 5 local site as we hope to start using this module as soon as our sites are updated to 1.6.
I have been having some trouble with the settings. I would like the repository to sit in the moodledata area if at all possible and have the following settings:
<?php
$CFG->repositoryactivate = true;
$CFG->repository = "C:\Program Files\xampp\htdocs\moodledata\ims_repository";
$CFG->repositorywebroot = "/ims_repository";
?>
I have tried various versions of this and all generate the same message:
Warning: opendir(C:\Program Files mpp\htdocs\moodledata\ims_repository/) [function.opendir]: failed to open dir: Invalid argument in C:\Program Files\xampp\htdocs\beta\mod\resource\type\ims\finder.php on line 27
Can't open directory "C:\Program Files mpp\htdocs\moodledata\ims_repository/"
I solved this as soon as I saw what I'd posted by using:
<?php
$CFG->repositoryactivate = true;
$CFG->repository = "C:/Program Files/xampp/htdocs/moodledata/ims_repository";
$CFG->repositorywebroot = "/ims_repository";
?>
Yours
James
UTF-16 - CAN'T DEPLOY
a problem with the resource?
Is there anything we can do to deploy these?
Yours
James
Thanks for testing the IMS CP repository.
Please could you confirm whether your error message is obtained with particular NLN materials.
It seems that some of the recently-released NLN materials were incorrectly packaged as UTF-16. However, I understand that the mistake is due to be corrected soon and the materials re-released.
Yes it it some of the new NLN ESOL resources released a month or so ago.
/Area Studies, Cultural Studies, Languages, Literature/Languages/epic4_FK22_Talking about the past
is one in particular
Yours
James
It seems we came across the same problem.
If you need to use these NLN materials in the IMS CP repository on a production server before the materials are re-released, then please let me know. We can then provide a patch to fix the problem in the same way that it is fixed in the Object module.
We won't be upgrading our production sites until the academic year has finished, however we may start deploying the IMS CP Repository in preparation. We are currently using NLN materials via the SCORM activity and these were working fine so it would depend on when we see the re-releases.
Do you have an idea how many resources are affected by this as we may want to use the patch if it is more than a handful.
Yours
James
We found just a few NLN ESOL materials (4 or 5) were affected.
I'm now trying to set up the repository on our live site and cannot find the directory as before. We have a linux setup with the following Moodle structure
/usr
/site2
/site2
/ims_repository
The address for an instance is http://vle.barkingcollege.ac.uk/site.
I have tried the following using various combinations including the /usr folder in the address and so on.
<?php
$CFG->repositoryactivate = true;
$CFG->repository = "http://vle.barkingcollege.ac.uk/moodle_data/ims_repository";
$CFG->repositorywebroot = "/moodle_data/ims_repository";
?>
Has anyone set up the IMS repository to exist outside of the site files that could advise on where we may be going wrong. We get the following errors:
- Can't open directory "http://vle.barkingcollege.ac.uk/moodle_data/ims_repository/"
- Can't open directory "http://vle.barkingcollege.ac.uk/usr/moodle_data/ims_repository/"
James
What about simply making softlinks in the repository directory for each site that all point to the same "real" data directory?
- a directory outside the site in moodle_data
- a directory in the moodle_data for the site
- a directory in the moodle folder of the site
Folder permissions are 777, and I have also tried Aliases that point to the directory.
Anyone got any ideas?
Yours
James
If you've not done so already, please see the IMS content package documentation for details of how to enable the repository.
The repository folder should be put in the webroot, not in the moodledata folder.
$CFG->repositorywebroot = "/ims_repository";
should be left unchanged.
CFG->repository should be a path on the file system not a web address, something like
$CFG->repository = "/var/www/htdocs/ims_repository";
(though I've no experience of linux file paths )
I got it working now using the Moodle Data folder instead of webroot.
Using a path not a web address was where it was going wrong.
Yours
James
As always I am a bit late joing the thread.
We have been using Windows/Apache and MySQL based Moodle 1.5 with Helen's Object module ( working).
I upgraded to 1.6 as instucted
I successfully uploaded some NLN zip files into the FILES area for a course and added them as a SCORM activity. Albeit they do run quite slowly.
Being used to the Object Repository which can be accessed from anywhere I decided to tackle the IMS repository and quickly came upon the unable to open the directory. I found that changing in second line the \ s to either \\s or /s sorted that problem
I copied a couple of directories from the old Object Folder into the IMS folder and proceeded to add the resource. I clicked on BROWSE REPOSITORY and saw my files. I DEPLOYED one and then went to preview it.
I can see the menu on the left hand side but in the white WIndow I get
Object not found!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
The referring page states
Forbidden
You don't have permission to access /moodle/mod/resource/view.php?r=56&frameset=ims&page=1 on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1 Server at <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />moodle.bracknell.ac.uk Port 80
I have checekd the file permission. All local USERS can read and list the file. Please what have I done wrong this time?
As this thread is quite long, let's continue our discussion here: Trying to add NLN Materials via IMS CP.
A sample package is available for download from http://www.imsproject.org/content/packaging/ (unfortunately it's too big to attach to this post).
At the OpenCourseWare site at MIT, most listed courses are offered as an IMS content package (although they're not listed as such). Just choose a course, then click "Download this Course" in the course's navigation bar (left-hand side) and you will get a ZIP file. Upload it to your web server and there you go.
- STS-049J - Technology and Gender in American History, Spring 2004
- 21F.067J / SP.608J - Cultural Performances of Asia, Fall 2005
- SP.772 Internet Technology in Local and Global Communities, Spring 2005 - Summer 2005
Hope this helps!
Please help!
I cannot get the IMS CP working.
When I add a new a new resource in a course topic using "Add an IMS Content Package" I get to the resource editing page. However, in the "Add an IMS Content Package" section of the resource editor the "Choose or upload a file button" takes me to the standard "Files" page for the course rather than the ims_repository.
I have created the follwing folder: C:\Inetpub\wwwroot\ims_repository
My repository_config.php file is as follows:
<?php
$CFG->repositoryactivate = true;
$CFG->repository = "c:\inetpub\wwwroot\ims_repository";
$CFG->repositorywebroot = "/ims_repository";
?>
Running Moodle 1.8
Has anyone come accross the same problem and solved it?
Sadly mine too is also not working in 1.8.1. Think it needs to be logged as a bug.
Both are 1.8.1+
One is a new site, the other had ims_repository working before the upgrade to 1.8.1+
The config file is correct in both cases.
Sean K
I have installed moodle 1.8.4 last week.
I've developed an AI planning system to generate an adaptive LD using the IMS-MD definition of LO's as the first part of my PhD thesis.
In the next three months I have to implement this adaptive LD in moodle to prove it in a real case and I think to base that implementation in the IMS CP resource code could be a good idea.
Do you have any code documentation about IMS CP module?
Greetings and thanks in advance.
AFAIK all the code documentation about the IMS-CP resource type is in code itself.
Basically, it has one parser of manifests (deploy.php) and then, all the visualization stuff within the display() method of the resource_ims class (resource.class.php).
Right now the parser just skips any metadata information and goes directly to the "organizations" and "resources" parts of the manifest.
And one "tree" structure is built after parsing all the items. That structure is used to provide navigation and the TOC when displaying the package.
I guess that, if you want to add support for just MD (Metadata), it would be relatively easy to improve the parser to be able to read that information. For sure, the complex part will be how to store that info.
And, if you want to add support for LD (Learning Design) packages... then you'll have to rework the parser a lot, you know manifest internals are really different (although using current as base can be a good idea, agree).
Please, keep us informed!
Ciao
Moodle 1.9
Windows 2003 Server
PHP 5.2
mySQL
XAMPP Application Package 1.1.2.0
Hi,
I've setup my Moodle install and I'm now trying to see if I can install an IMS package as this will be a deal-breaker in getting Moodle approved by the college management!
I checked out the instructions for configuring the IMS CP. I've set up the repository folder and changed the 'repository_config.php' to reflect the correct locations.
$CFG->repositoryactivate = true;
$CFG->repository = "C:/Web Server/moodle/ims_repository";
$CFG->repositorywebroot = "/ims_repository";
As suggested by various users on Moodle community, I have also copied the 3 lines from the 'repository_config.php' to the 'config.php' file in the Moodle root.
So, now to see if it works.
When I go to a course home page and select the 'add a resource' drop down menu, the only option for IMS is 'Add an IMS Content Package'.
I aume this to be correct and select it. This moves to a new page where I have to enter a name for my package and 'Choose or upload a file'.
This button produces a pop-up window showing a file management system. This only lists folders within the course structure and not above it. The repository is not listed. The only buttons on here are:
Make a folder
Select all
Deselect all
Upload a file
How should I access the repository?
Please advise if you think I am doing something wrong or have missed something.
Thanks in advance,
Barry.
The deploying window comes up and after a short time, the browser says Done, but the web page is still deploying, with no indication of progress.
The package is from a Live Text VLE software package and is 700Mb in size.
I'm guessing this may have something to do with it.
Is there anyway I can check to see if the package is deploying and just needs more time. Do I need to make ajustments to the Moodle configuration for the size of the IMS packages?
Any assistance most welcomed.
Cheers,
Barry.