Chapter 3. Listing Content

3.1. Listing Content
3.2. Content Details
3.2.1. Searchable Content Details
3.3. Removed Content Details

3.1. Listing Content

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 NameContents
content:page-sizeThe 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-pageThe 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-resultsThe 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-resultsThe total number of content items in the search results.
content:contentThe full details of an individual content item. There is one of these for each published item in the search results.
content:removed-contentThe basic details of a content item that is no longer published in the repository.

Table 3.1. Content List Elements