The Islandora Solr Metadata module provides an interface to construct displays of Solr indexed metadata from one or more schemas on the Islandora objects.
This module requires the following modules/libraries:
https://github.com/islandora/islandora_solr_metadata
Install as usual, see this for further information.
To use Solr indexed metadata in the display, go to Administration » Islandora » Metadata Display (admin/islandora/metadata) and select "Islandora Solr Metadata" to be the default display viewer. Click Save Configuration.
To set up a display, go to Administration » Islandora » Solr Index » Metadata Display (admin/islandora/search/islandora_solr/metadata).
Add fields to the display by entering Solr field names with type "string." As you type in the "Add Field" box, field names will be suggested from the index. Once a field is selected, click "Add". In order to edit the field, click Save Configuration at the bottom of the form.
Currently only fields that are present in the Solr index can be added in metadata display configurations. |
6. Click Save Configuration.
A content model can have more than one metadata display configuration associated with it. In this case, all fields present in the associated configurations are displayed, and the order of fields is determined by Solr field weights.
Suppose, for example, that two configurations 'A' and 'B' are associated with a content model. If configuration A contains fields 'a' and 'c' and B contains fields 'b' and 'd', then the metadata display output would be in the order 'a, b, c, d'.
If the same Solr field is included in multiple metadata display configurations associated with a certain content model, only the label and value(s) from the last configuration are displayed. The last configuration is the most recently created configuration that is associated with the content model; the (machine) name of the configurations is not used to determine the order. |
The backbone of this module is to allow users to select fields indexed in their Solr as what drives metadata displays. This allows for the creation of heterogenous displays pulled from many sources from something that is already easily available.
The Islandora Solr Metadata module uses templates to fuel the markup displayed when it's the defined viewer for an object. As such these are overwritable to alter the display of the metadata as seen fit.
For a more indepth look at the metadata display framework and an example module implementation see the Islandora wiki page on Metadata Display Viewers.