Skip to content
Jessica Dussault edited this page Nov 25, 2015 · 1 revision

The Config File

Each project should have its own configuration file. This will be located at project_name/config/config.yml. These are the default configurations:

solr_path: http://server.unl.edu:port/path/
solr_core: project_name

# xsl transformation locations
tei_xsl: scripts/xslt/cdrh_to_solr/solr_transform_tei.xsl
vra_xsl: scripts/xslt/cdrh_to_solr/solr_transform_vra.xsl
dc_xsl: scripts/xslt/cdrh_to_solr/solr_transform_dc.xsl
html_xsl: scripts/xslt/cdrh_tei_to_html/tei.p5.xsl
csv_solr: scripts/ruby/csv_to_solr.rb
csv_html: scripts/ruby/csv_to_html.rb

# NOTE! If you are altering ANY of the xsl_params you must
#   copy over ALL of them to the project specific config file
xsl_params:
  fig_location: http://server.unl.edu/data_images/projects/example/figures/
  file_location: http://server.unl.edu/data/projects/
  figures: true
  fw: true        # form works (page nums, etc)
  pb: true        # page breaks
  project: Full\ Name\ Of\ Project
  slug: short_name_of_project

Keep in mind that you are going to need to set some of the above not once, but twice, because you will likely need some different things for development and production. For example, if you have both a development and production solr core for the project.

TODO discuss overriding default, environments, and put in image to explain

Clone this wiki locally