Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Copy screenshot and text from readme, make text more user-friendly

...

The Islandora Solr Facet Pages module creates an alphabetical "A to Z" browse from metadata indexed in Solr. The "facets" are the fields that Solr will search in to build the A-to-Z browse. You can set up multiple A-to-Z pages.

Image Added

Dependencies

This module requires the following modules/libraries:

...

The example in the above image creates an A-to-Z subject browse:

 

Notes

...

Facet search form

With the option 'Facet search form' enabled you can provide the user with a search form to search within these facet values. This means that the way the search works depends on the field that is used for the facet page.

If you choose a string field (*_s or *_ms), and this field is not tokenized, search becomes case-sensitive and the search term must match the entire facet value. For example, *Alice* would match that term anywhere within the string, while Alice would only match a full string value of "Alice".

If you choose a text field (*_t or *_mt)

...

and this field is tokenized and not stored, search will be case-insensitive and search terms may match text within the facet value, but the facets will be presented in the tokenized text form, which has an adverse affect on the display.

...

Islandora Solr facet pages

...

block

This module provides a block named "Islandora Solr facet pages" that can be configured in Block settings (Administration » Structure » Blocks). It contains a list of links to all configured facet pages.

Theming

There are This module provides template files for the entire page (islandora-solr-facet-pages-wrapper.tpl.php) and the results list (islandora-solr-facet-pages-results.tpl.php). The alphabetical pager uses a theme function.

Template files can be overridden by a theme by copying the template file from the modules folder into the theme folder.  You You can override a theme per defined facet page by appending the path value to the template file. If you do, make sure to copy the original template file to your theme as well.eg:

Your custom theme folder would look like this:

sites/all/themes/{your-theme-folder}
├── {other files}
├── islandora-solr-facet-pages-results.tpl.php
├── islandora-solr-facet-pages-results--{your-path}.tpl.php
└── islandora-solr-facet-pages-wrapper.tpl.php