Islandora Collection Search is a Drupal module that allows for searching within a collection using Solr. It provides a more robust replacement for islandora_solr_search's 'Simple Search' block, and it automatically handles appropriate Solr re-indexes when records are moved between collections in Fedora.
This module requires the following modules/libraries:
- Install as usual, see this for further information.
- Ensure that a multivalued string field is being indexed in Solr containing the PIDs of each ancestor of an object. If you are using discoverygarden's basic-solr-config, this is the
ancestors_ms
field, which is not generated by default. Ahierarchy.xslt
template is provided in discoverygarden's islandora_transforms to traverse ancestors in the graph, from which such a field can be made.- The simplest way to enable this field is to use the latest version of
basic-solr-config
and the discoverygarden fork of gsearch 2.9.x, then followbasic-solr-config
'sREADME.md
to create acustom_parameters.properties
file. - Otherwise,
hierarchy.xslt
will have to be manually implemented. If using thebasic-solr-config
'sfoxmlToSolr.xslt
, there may be existing XSLT that can be uncommented to enable the indexing of ancestors; otherwise, you can manually add them. These sections include the code to call and use the ancestors template, the XSLT include statements required to use the ancestors template, and any required namespaces. - If newly implementing this field on an existing site with repository content, Solr will need to be reindexed.
- The simplest way to enable this field is to use the latest version of
- Set up the 'Islandora Collection Search' block. It can replace the standard 'Islandora simple search' block.
- Ensure the ancestors hierarchy field created in step 2 is configured in
admin/islandora/tools/collection_search
as the Ancestor field, as well as connection information for GSearch.
The configuration page for the module can be found at yoursite.com/admin/islandora/tools/collection_search
.
- The 'Ancestor field' is set to 'ancestors_ms' by default.
- Configure the 'GSearch Config' section with the proper credentials.
- The options in the 'Collections' section of that page provide ways to configure the UI, such as having a drop-down menu of certain collections that can be searched from anywhere on your site where the 'Collection Search' block is enabled.
The configuration page for the 'Islandora Collection Search' block can be found at yoursite.com/admin/structure/block/manage/islandora_collection_search/islandora_collection_search/configure
. The main configuration you might want to do is to define which pages display the block for which Roles and/or Users. That can be managed in the 'Visibility settings' section of this block's configuration page.
This module provides a block that works like the 'Simple Search' block, but it can narrow the search to objects within a given collection. However, it also has the option to search all collections, which would result in functionality identical to the 'Simple Search' block.
If all the Installation and Configuration steps have been successfully completed, the powerful and user friendly 'Collection Search' block should now be available.
Having problems or solved a problem? Contact discoverygarden.
Current maintainers:
If you would like to contribute to this module, please check out our helpful Documentation for Developers info, Developers section on Islandora.ca, and contact discoverygarden.