Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once ingested, the demo objects can be viewed in a web browser using API-A-LITE. For example, to view the demo:5 object:

Panelnoformat

http://localhost:8080/fedora/objects/demo:5

All demo objects are intended to work when the Fedora repository server is in a stand-alone condition (e.g., if the repository is running without a network connection, or if the repository is behind a firewall and not set up to receive outside connections)

...

This demo illustrates the use of the Resource Index search service to fulfill collection behaviors.

Info

For this demo to work, the Resource Index must be enabled prior to ingesting these objects.

A series of data objects (demo:SmileyBucket, demo:SmileyKeychain, etc.) subscribe to the image behaviors defined by the sDef object demo:DualResImage. Each of these image objects also use the RELS-EXT datastream to assert its membership in the demo:SmileyStuff collection. The demo:SmileyStuff collection subscribes to sDef object demo:Collection, which defines two methods: list and view. The collection object uses the demo:DualResImageCollection sDep to implement those behaviors.

To see the dynamic HTML listing of collection members in action, you can view visit:

No Format

http://hostname/fedora/get/demo:SmileyStuff/demo:Collection/view

...


This dissemination first requests the list of members of the demo:SmileyStuff collection using the local risearch service. Then it uses the local saxon service to transform the XML results into a human-readable HTML page. The query text and the stylesheet are both datastreams of the SmileyStuff collection and act as inputs to the list and view behaviors, respectively.