LOM Repository v2 - Post Installation and Modification

Modification of the content type

In some cases you might want to add or remove some of the tags defined in the IMS specification. To do this, you must first either add/remove the necessary fields in the content type or add/remove the vocabularies that you want, in case you want to keep an existing vocabulary you can also just unlink it from the content type in the categories settings at Administration -> Content management -> Categories.

After the vocabularies or content type fields are added, you must modify the content template to show the newly created fields or vocabularies. Also, you must modify the input form in lom_record.tpl.php to show/hide the fields or vocabularies in the input form and also modify the body template in your content type template.

Editing the views: Adding the "quick links" for adding a repository

The views provided with the guide do not include the "Register and login to add your learning resource" texts seen on the header of every view for the repository on the JEM website, eg. http://www.jem-thematic.net/repository/by_title as the (base) url which the link is pointing to is specific for every installation. To add these links, edit the three views at Administer -> Site building -> Views (the views are called by_title, by_author, by_date) and add the following to the header section of every view 8make sure to change the url to point to your own Drupal installation:

 <div class="quicklinks">Register and login to <a href="http://www.jem-thematic.net/node/add/lom-record">add your learning resource</a></div>

Also, add login to your website over ftp or similar and add the following to your style.css under /themes/&lt;mytheme&gt;/:

 .quicklinks {
    border-left:1px solid #AABBCC;
    border-right:2px solid #AABBCC;
    border-top:1px solid #AABBCC;
    border-bottom:2px solid #AABBCC;
    font-size:120%;
    margin-top: 5px;
    margin-bottom:1em;
    padding:0.5em;
    text-align:right;
    font-weight: bold;
    min-width: 300px;
    max-width: 400px;
    float:right; 
 }

Editing the views: Remove the RSS support for the learning repository views

To remove the RSS support for the learning repository views, edit the three views at Administer -> Site building -> Views (the views are called by_title, by_author, by_date). Scroll down to the Arguments section and remove the argument type RSS: RSS Feed Selector for each of the three views separately.

Renaming the vocabularies

If you want to rename any of the existing vocabularies related to the Learning Resource, make sure to change the vocabulary names which appear in the SQL queries at the beginning of the body template of the content type template and at the beginning of the lom_record.tpl.php. If these are not changed the fields will not show in the outputted node and in the input form.

Adding terms to vocabularies

If you wish to add terms to already existing and configured vocabularies or change properties of one of the vocabularies (except disable), no changes are needed in the code. We would appreciate it if you would inform us of additions, especially to the Living Taxonomy, in relation to fields of applications of Mathematics (e.g. Physics).

Inhalt abgleichen