Skip to content

Latest commit

 

History

History

add-gsearch-to-flat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Add GSearch to FLAT

Requirements

This docker file depends on the FLAT base image and the FLAT Islandora SOLR image.

Provides

The following endpoints come available:

The following accounts are created:

  • Fedora Commons user with rights to manage GSearch: fgsAdmin:fgsAdmin

Building the image

docker build -t flat ./add-gsearch-to-flat

Running the image

docker run -p 80:80 -v ~/my-resources:/lat -it flat

Additional configuration

FLAT uses the Component Metadata (CMD) Infrastructure and allows arbitary CMD profiles. For the Solr facets a mapping from these profiles to the wanted facets needs to be created. This mapping is specified in the /app/flat/deposit/policies/gsearch-mapping-template.xml file. The core of the mapping is a facet (or field) specification like

<field name="Language">
      <xpath val="lower-case(.)">.//cmd:CMD/cmd:Components/cmd:Session/cmd:MDGroup/cmd:Content/cmd:Content_Languages/cmd:Content_Language/cmd:Name</xpath>
      <cmd:facet>language</cmd:facet>
      <cmd:concept>http://hdl.handle.net/11459/CCR_c-5358_3cd089fe-ad03-6181-b20c-635ea41ed818</cmd:concept>
</field>

This shows that the mapping can be based on:

  • hardcoded XPaths (version 1.0)
  • using the facet mapping of the VLO
  • using a concept from a concept registry like the CLARIN Concept Registry

Potentially the facet values found can be further manipulated with a XPath 1.0 expression, which have to be placed in the @val attribute on the xpath, cmd:facet or cmd:concept elements.

The current mapping has a general CMDI based on the VLO facet mapping. Adapt the mapping if you have specific mappings for your own CMD profiles. (See the CMDIfied IMDI mapping for an example.)

This mapping is expanded and applied to the records using these scripts in the /app/flat directory inside the container:

The mapping can also be used to create the required CMD to DublinCore mapping, hence it has to be run before do-1-fox.sh).

Once the indexing is done the Islandora SOLR module has to be further configured by selecting facets as Display fields and Facet fields.

Notes

References