Quercus Live Link Developer’s Guide<>

Using the Live Link data

Live Link data

You can use the data supplied by Live Link to include Quercus data within web applications that are not part of the Quercus suite. In addition, if your application has access to shared data keys (such as user or course GUIDs), the presented data can be specific to the application context. So, if a user browses to the Archaeology department page, the latest Archaeology course information could be served from from the Quercus database.

To implement this type of front-end integration you need access to standard XML processing libraries and the ability to reference the correct Quercus parameter value in the Live Link data processing.

Example 1 — import Live Link data into Drupal 7 content management system

Web CMS systems such as Drupal and Joomla containing a variety of XML import and feeds processing mechanisms. These mechanisms allow you to pull external content into your site and present it in the appropriate contexts.

In the example below we have pulled Live Link content into an instance of Drupal 7.

The content has been mapped to custom content types, with fields and data types corresponding to the XML content nodes.

The import itself is achieved using the Drupal 7 Feeds module’s XML processing capabilities. We can set up a custom feed which periodically polls Live Link:

Using xpath statements we can pull the content from the XML into the appropriate fields in the Drupal content nodes.

Once the data is imported into Drupal it is available for display and integration with other Drupal content using the Views module or similar.

Example 2 — style and present Live Link data using XSLT templates

By applying an XSLT template we can take a Live Link document instance and output the result as human-readable web content.

Course instances and services

This list of available services, grouped by course instance, is produced by transforming the XML received from Live Link:

Services grouped by course

This is another view of the same data, this time grouping instances by course and pulling slightly different nodes from the XML:

» The XSLT used to produce these views is listed in Appendix 2 — sample XSLT.

Other techniques

The above examples show how:

Live Link data can be accessed by a non-Quercus application (Drupal in the example)

Live Link data can be transformed and styled using standard XML processing techniques (XSLT in the example)

There are many other methods of achieving similar results — the methods you use will depend upon your enterprise architecture and the available skill sets.