github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

projectblacklight / blacklight

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 32
    • 7
  • Source
  • Commits
  • Network (7)
  • Issues (0)
  • Downloads (2)
  • Wiki (1)
  • Graphs
  • Tag: v2.4.0

click here to add a description

click here to add a homepage

  • Branches (4)
    • 2.4-stable
    • get_solr_response_for_doc_id
    • master
    • solrdocmixins
  • Tags (2)
    • v2.4.1
    • v2.4.0
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Blacklight Plugin — Read more

  cancel

http://projectblacklight.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

updated tag version; removed branch variable 
mwmitchell (author)
Mon Nov 02 14:23:00 -0800 2009
commit  a8b75215aaffd288d82a51a9875b42628165bdf0
tree    0cdadc0fce8d8bddc6661eabf43fde6302352ddc
parent  a2fd728977f91a99bf3b05cb26c67f0f25532fb9
blacklight /
name age
history
message
file CHANGES Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file LICENSE Loading commit data...
file PRE-REQUISITES.rdoc Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file README.rdoc Mon Nov 02 14:19:31 -0800 2009 updated template and readme for tag version [mwmitchell]
file README_PRODUCTION.rdoc Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file README_PROJECT.rdoc Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file README_SOLR.rdoc Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file Rakefile Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory app/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory assets/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory config/
directory db/
directory features/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file init.rb
file install.rb Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory install/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory jetty/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory lib/ Mon Nov 02 13:20:52 -0800 2009 setting automation asside [mwmitchell]
directory script/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory solr_marc/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory spec/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory tasks/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file template.rb Mon Nov 02 14:23:00 -0800 2009 updated tag version; removed branch variable [mwmitchell]
file todos_and_ideas.txt Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
file uninstall.rb Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
directory vendor/ Fri Oct 30 13:04:49 -0700 2009 Initial Commit [g8tor]
README.rdoc

Blacklight

Please see README_PROJECT.rdoc for main information about this project and plugin.

Please see PRE-REQUISITES.rdoc for pre-requisites Blacklight needs.

Please see README_SOLR.rdoc for information about setting up and configuring SOLR (lucene.apache.org/solr).

Note: these instructions apply to releases 2.4.0 and above.

How to install Blacklight

Blacklight uses a new Rails feature called "templates". To install the Blacklight plugin into a new Rails application, run the following command (be sure to answer all of the installation questions):

Installing Blacklight 2.4 (recommended):

  rails ./blacklight-app -m http://github.com/projectblacklight/blacklight/raw/v2.4.0/template.rb

Installing the "trunk", or master branch:

  rails ./blacklight-app -m http://github.com/projectblacklight/blacklight/raw/master/template.rb

After the installation process, make note of the instructions for starting Solr and indexing data. Blacklight depends on Solr so be sure it is running. Start Solr

The template will give you instructions on how to start Solr, copied here for convenience:

  cd jetty
  java -jar start.jar

This starts an instance of jetty with Solr running on port 8983. If you want to start on another port, use Java’s -D argument:

  java -Djetty.port=8888 -jar start.jar

Once you start it you can run your Rails app and it will use this SOLR index (expected on port 8983).

  ./script/server

Now navigate to localhost:3000 and you should have a working demo blacklight application with the test data set! Possible Issues with Gems

ruby-xslt gem: installations on Windows machines may have difficulties with ruby-xslt. This gem is only used for indexing EAD files. To remove this dependency, in bl-demo/vendor/plugins/blacklight/init.rb comment out the line:

  config.gem 'ruby-xslt', :lib=>'xml/xslt' # you may need to install libxml and libxslt

by inserting "#" at the beginning of the line.

Note: as of 2009-08-10, there have been some reports of problems with gems. If you are seeing errors relating to gems, you may need to uninstall other versions of gems if they are already installed, for example:

  sudo gem uninstall nokogiri
  sudo gem uninstall ruby-xslt

Be aware of gems that may have been inadvertently installed in your (home)/.gems directory, rather than in your system location for ruby gems. At least one site encountered difficulties when gems were installed in the account’s directory, rather than in the system location. (This can happen if you don’t use "sudo gem install" but instead use "gem install"). In this case, you may need to remove the account’s version of the gems.

  gem uninstall (gem name)   -  note absence of ''sudo''

If that doesn’t work, you can try the brute force method to remove them:

  cd ~/.gem/ruby/1.8/gems

then remove everything in that directory.

You may also see messages to run refresh_spec when you run the ’’rake gems’’ command; go ahead and follow those instructions. (In at least one case, the refresh_spec command needed to be run many times before the error messages ceased.)

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server