GetRecord

  • user warning: Table './jem/sessions' is marked as crashed and should be repaired query: SELECT COUNT(sid) AS count FROM sessions WHERE timestamp >= 1231479961 AND uid = 0 in /var/www/net.jem-thematic/site/includes/database.mysql.inc on line 174.
  • user warning: Table './jem/sessions' is marked as crashed and should be repaired query: SELECT DISTINCT u.uid, u.name, s.timestamp FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.timestamp >= 1231479961 AND s.uid > 0 ORDER BY s.timestamp DESC in /var/www/net.jem-thematic/site/includes/database.mysql.inc on line 174.

Purpose

This function returns a record from the repository in the appropriate OAI format.

Error conditions

  • badArgument -> Request contains invalid arguments
  • cannotDisseminateFormat -> The provided metadataPrefix is not valid
  • idDoesNotExist -> The provided id is not valid

Sample call

http://www.jem-thematic.net/lom_oai?verb=GetRecord&identifier=oai:jem-thematic-net:node/26228&metadataPrefix=lom_ims

Sample output

 <?xml version="1.0" encoding="utf-8"?>
  <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
    <responseDate>2008-07-15T02:23:44Z</responseDate>
    <request verb="GetRecord" identifier="oai:jem-thematic-net:node/26228"
        metadataPrefix="lom_ieee">http://www.jem-thematic.net/lom_oai</request>
    <GetRecord>
        <record>
            <header>
                <identifier>oai:jem-thematic-net:node/26228</identifier>
                <datestamp>2008-07-07</datestamp>
            </header>
            <metadata>
                <lom xmlns="http://ltsc.ieee.org/xsd/LOM" 
                                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://ltsc.ieee.org/xsd/LOM http://ltsc.ieee.org/xsd/lomv1.0/lomStrict.xsd">
                    <general>
                        <identifier>
                            <catalog></catalog>
                            <entry> DUCat DU-5016_MathMatch-20-oefenen </entry>
                        </identifier>
                        <title>
                            <string language="en">Differentieren</string>
                        </title>
                        <language>nl</language>
                        <description>
                            <string language="en">Interactieve oefenvragen
                                basiswiskunde over differentieren. Aan bod komen raaklijn en
                                afgeleide, differentieerbaarheid, rekenregels en
                                standaardafgeleiden, hogere afgeleiden en een
                                vijfdegraadspolynoom. De oefenvragen worden door een computer
                                algebra systeem gegenereerd en nagekeken.</string>
                        </description>
                        <keyword>
                            <string language="en">differentieren</string>
                        </keyword>
                        <keyword>
                            <string language="en">afgeleide</string>
                        </keyword>
                        <keyword>
                            <string language="en">functie</string>
                        </keyword>
                        <keyword>
                            <string language="en">tweede afgeleide</string>
                        </keyword>
                        <structure>
                            <source>LOMv1.0</source>
                            <value>atomic</value>
                        </structure>
                        <aggregationLevel>
                            <source>LOMv1.0</source>
                            <value>2</value>
                        </aggregationLevel>
                    </general>
                    <lifeCycle>
                        <version>
                            <string language="en">1</string>
                        </version>
                        <status>
                            <source>LOMv1.0</source>
                            <value>final</value>
                        </status>
                        <contribute>
                            <role>
                                <source>LOMv1.0</source>
                                <value>author</value>
                            </role>
                            <entity>BEGIN:VCARD FN:Jan van de Craats
                                EMAIL;INTERNET:craats@science.uva.nl ORG: END:VCARD</entity>
                            <date>
                                <dateTime>2005-01-01T00:00:00</dateTime>
                            </date>
                        </contribute>
                        <contribute>
                            <role>
                                <source>LOMv1.0</source>
                                <value>author</value>
                            </role>
                            <entity>BEGIN:VCARD FN:Stichting Digitale Universiteit
                                EMAIL;INTERNET: ORG: END:VCARD</entity>
                            <date>
                                <dateTime>2005-01-01T00:00:00</dateTime>
                            </date>
                        </contribute>
                        <contribute>
                            <role>
                                <source>LOMv1.0</source>
                                <value>author</value>
                            </role>
                            <entity>BEGIN:VCARD FN:Dirard Mikdad EMAIL;INTERNET:
                                ORG: END:VCARD</entity>
                            <date>
                                <dateTime>2005-01-01T00:00:00</dateTime>
                            </date>
                        </contribute>
                    </lifeCycle>
                    <technical>
                        <format>text/html</format>
                        <size>0</size>
                        <location>http://amaple.science.uva.nl:8081/modules/test.Test?className=MathMatch</location>
                        <requirement>
                            <orComposite>
                                <name>
                                    <source>LOMv1.0</source>

                                    <value>any</value>
                                </name>
                            </orComposite>
                        </requirement>
                    </technical>
                    <educational>
                        <interactivityType>
                            <source>LOMv1.0</source>
                            <value>active</value>
                        </interactivityType>
                        <learningResourceType>
                            <source>LOMv1.0</source>
                            <value>exercise</value>
                        </learningResourceType>
                        <context>
                            <source>LOMv1.0</source>
                            <value>school</value>
                        </context>
                        <context>
                            <source>LOMv1.0</source>
                            <value>higher education</value>
                        </context>
                        <typicalAgeRange>
                            <string language="en"></string>
                        </typicalAgeRange>
                    </educational>
                    <rights>
                        <cost>
                            <source>LOMv1.0</source>
                            <value>no</value>
                        </cost>
                        <copyrightAndOtherRestrictions>
                            <source>LOMv1.0</source>
                            <value>yes</value>
                        </copyrightAndOtherRestrictions>
                        <description>
                            <string language="en">Zie
                                http://creativecommons.org/licenses/by-nc-nd/3.0/</string>
                        </description>
                    </rights>
                    <classification />
                </lom>
            </metadata>
        </record>
    </GetRecord>
  </OAI-PMH>