Content is listed by specifying the command changed on the URL sent to the BELTS server, with a since parameter specifying the cut-off date for the search, as shown in the following URL:
http://localhost:8080/provide/changed?since=2006-03-01 |
The result of this command will be an XML document of MIME-type application/xml, similar to the following:
<?xml version="1.0" encoding="UTF-8"?> <content:contents xmlns:content="http://www.thelearningfederation.edu.au/ns/belts/content/2003/04" xmlns:exist="http://exist.sourceforge.net/NS/exist"> <content:page-size>2846</content:page-size> <content:start-page>0</content:start-page> <content:num-results>2846</content:num-results> <content:total-results>2846</content:total-results> <content:content exist:id="1" exist:source="exchange:L2055:1.0"> ... </content:content <content:removed-content> ... </content:removed-content> </content:contents> |
The following table describes the elements returned in the above output
Element Name | Contents |
---|---|
content:page-size | The number of content items returned with each page of results. For content listings through the provider interface, there is only one page returned so this has the same value as the <content:total-results> element. |
content:start-page | The first page (0-indexed) of results returned. For content listings through the provider interface, there is only one page returned so this is always zero. |
content:num-results | The number of content items returned with this page of results. For content listings through the provider interface, there is only one page returned so this has the same value as the <content:total-results> element. |
content:total-results | The total number of content items in the search results. |
content:content | The full details of an individual content item. There is one of these for each published item in the search results. |
content:removed-content | The basic details of a content item that is no longer published in the repository. |
Table 3.1. Content List Elements