Created
March 26, 2009 18:46
-
-
Save mwmitchell/86244 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # config/initializers/blacklight.rb | |
| # Rails will load this file once during the boot/start-up process | |
| # http://ryandaigle.com/articles/2007/2/23/what-s-new-in-edge-rails-stop-littering-your-evnrionment-rb-with-custom-initializations | |
| # | |
| # Access the blacklight config from anywhere, like this: Blacklight.config[:solr][:url] | |
| # SHARED | |
| Blacklight.configure do |config| | |
| # The basic solr field mapping | |
| config[:display_fields] = { | |
| :show_view_html_title => :title_t, | |
| :show_view_record_heading => title_t, | |
| :record_display_type => format_code_t, | |
| :index_view_show_link => title_t, | |
| :index_view_num_per_page => 10, | |
| :marc21_storage_field => marc_display | |
| :marc21_base64 => true | |
| } | |
| end | |
| # PRODUCTION | |
| Blacklight.configure(:production) do |config| | |
| config[:solr][:url] = 'http://solrserver.com' | |
| end | |
| # DEVELOPMENT | |
| Blacklight.configure(:development) do |config| | |
| config[:solr][:url] = 'http://localhost:8983/solr' | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment