LOM Repository v2 - Installation Steps
Before you install, please note that the module uses DOM commands to write the exported record, for this reason your system must be using PHP 5.1.x, preferred version is PHP 5.2.5 and above.
Please make sure to follow the installation steps in the defined order; failure in completing the steps might result in a broken Drupal installation.
Setup CCK
- Login to your system with admin privileges
- Download the required modules and enable them, Administer -> Site Building -> Modules
- Adjust the module permissions, Administer -> User Management -> Access Control
- Create the content type for the Learning Resource by copying the contents of the /content_type/learning_resource.content_type.txt from the download package in the Administer -> Content Management -> Content Types -> Import
- Adjust the name of the content type, field name descriptions etc if needed, do not change the machine readable name of the content type
- Review the access rules for the content type under the "node module" at Administer -> User Management -> Access Control
- Import the necessary vocabularies, Administer -> Content Management -> Categories -> Import. The vocabularies (found in the /vocabularies at the download package) are:
- Aggregation Level (LOM v.10) (preview)
- Aggregation Level (LOM v1.2) (preview)
- Context (LOM v1.0) ( preview)
- Context (LOM v1.2) ( preview)
- Difficulty (LOM v1.0) (preview)
- Difficulty (LOM v1.2) (preview)
- Intended End User Role (LOM v1.2) (preview)
- Interactivity Level (LOM v1.0) (preview)
- Interactivity Level (LOM v1.2) (preview)
- Interactivity Type (LOM v1.2) (preview)
- Keywords
- Language (Enchanged from LOM) (preview)
- Learning Resource Type (LOM v1.0) (preview)
- Learning Resource Type (LOM v1.2) (preview)
- LivingTaxonomy (preview)
- Semantic Density (LOM v1.0) (preview)
- Semantic Density (LOM v1.2) (preview)
- Status (LOM v1.0) (preview)
- Status (LOM v1.2) (preview)
- Structure (LOM v1.0) (preview)
- Structure (LOM v1.2) (preview)
The above vocabularies marked as LOM v1.2 are complete on basis of the IMS Learning Resource Meta-Data Information Model (Version 1.2.1 Final Specification), the ones marked as LOM v1.0 are for the older version. The older version is required providing support for IEEE LOM v1.0 on the LOM Import (separate module). For the Language taxonomy, the specification does not state a static vocabulary but we have decided to add some pre defined languages into it, this is to make the usage easier. Additional languages can be added or removed to the vocabulary, please read "Post Installation and Modifications" for further reference. After importing we strongly encourage to check under Administer -> Content Management -> Categories that all the related vocabularies are correctly associated to the content type.
- 7. Visit the settings for the Taxonomy Hide module at Administer -> Site Configuration -> Taxonomy Hide and hide all the Learning Resource related vocabularies, this prevents the vocabularies from showing as duplicates as we have modified the node output to our needs
Setup Custom Views
- Go to Administer -> Content Management -> Content Templates and create a new content template for Learning Resource
- Open the content template and from the download package paste the contents of /content_template/lom_teaser.txt to the teaser template window, check the checkbox “Affect teaser output”. Do the same for the body part, copy /content_template/lom_body.txt to the body template window and check the “Affect body output”.
- Copy the three files in the /includes folder of the download package into your drupal /includes folder
- Login to your server over ssh, sftp, ftp or whatever means you have to access the files on the server.
- In your Drupal installation database, create a table using the following command:
create table lom_counter(nid int, count int)
Customize the theme
- 1. Go to your Drupal installation files and there your theme under the /themes/<mytheme> and edit the page.tpl.php in your theme by adding the following JavaScript snippet before the </head>, the same snippet is available in the download package at /theme/javascript/lom_counter.js:
<script>
var iCount;
function count() {
iCount++;
//alert("Count = "+iCount);
showCount();
}
function zero() {
iCount = 0;
}
function getCount() {
node=document.getElementById("valCount");
iCount = node.innerHTML;
}
function showCount() {
node=document.getElementById("displayCount");
node.innerHTML = +iCount;
}
</script>Modify the <body> tag so that it looks something like the following:
<body onload="getCount(),showCount()">
- 2. In the theme folder, paste the code from /theme/template.txt of the download package in the end of the template.php, if the file does not exist create one by copying over the file from the download package at /theme/template.php
- 3. In the same theme folder, copy the file /theme/lom_record.tpl.php from the download package unchanged, this is the modified input form for the Learning Resource
- 4. Modify your theme's style.css or style.php and add the contents of the file /theme/css_additions/style.css.txt from the download package to the end of the file
- 5 Caution: To make the export of the records on the repository work, you must create a blank file with the mane lom_record.xml at the root of your drupal installation
Menu Creation
- Create a menu item called Repository, Administer -> Site Building -> Menus, the menu name can be different as well
- Using the Views Import, Administer -> Site Building -> Views - > Import, import the three views from the /views folder of the download package (just copy-paste the contents of each of the files separately)
If you chose to change the name of the menu, make sure to edit the URL under the Page on each of the three views to match the target of the menu item which was created before
- Druckversion
- Neuen Kommentar schreiben
- 2675 Aufrufe


link problem (lom_record.tpl.php)
Hello,
A big thanks for all this work, I'm impressed and I discover that what I wanted to do with http://www.edulibre.org/ (sorry it's in french) already exists here.
The link lom_record.tpl.php goes to a blank page (because php is interpreted), a lom_record.tpl.php.txt file should be fine.
The link to the xml "Resource Type" goes to "http://www.jem-thematic.net/files/taxonomy_learning_resource_type.xml|Learning" instead of "http://www.jem-thematic.net/files/taxonomy_learning_resource_type.xml"
I've also a pb with the file learning_repository_codes.zip (in the download section). I can't unzip it, I've the message:
"End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive."
Thanks
Hi and big thanks for pointing out those couple of bugs, happens to the best of us. Fixed the files now and rezipped that codes zip, should be fine now.
We by the way have also a french and spanish version of the guide available, just click the flags on the top right to switch the language, the french guide could use some revision as it was not written by a mathematician.