Skip to content
architolk edited this page Nov 21, 2016 · 1 revision

An IndexAppearance can be used to create a selection of tabs. Typical examples are a selection of formats (rdf, xml, etc) or a A-Z index.

Index appearance

You have two options to create an index appearance:

  1. Using static data (elmo:data);
  2. Using dynamic data with a query.
1. Using static data

A typical static data definition looks like this:

stage:IndexAppearance a elmo:Part;
	elmo:appearance elmo:IndexAppearance;
	elmo:data [
		xhtml:link "";
		elmo:name "term";
		rdfs:label "0-9|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|all";
		rdf:value "[0-9]|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|";
	];
.

Let's look at the properties within elmo:data:

  • xhtml:link defines the hyperlink for any item within the index. If you leave the value empty, the current page will be used.
  • elmo:name defines the name of the parameter that will be added tot the xhtml:link. So in the example above, the ?term= parameter will be added.
  • rdfs:label defines the label of the items within the index. A | seperates the individual values.
  • rdf:value defines the value of the parameter. So if a user selects the "z" item, the actual parameter will be: ?term=z.
Clone this wiki locally