Blacklight DPLA
A quick start to a Blacklight application using some of the content from the DPLA Platform.
Usage
- Follow the Blacklight Quickstart guide up through step 5 (installing Solr under jetty).
- Update your Blacklight application's Gemfile with
gem 'blacklight_dpla'andbundle install - Run the generator
rails g blacklight_dpla - In a new terminal, start Solr
cd jetty && java -jar start.jar - Index some data using the rake task
rake dpla:load_query["internet"]. In place of "internet" you can enter any keyword query. - Start your new Blacklight-powered DPLA application
rails sand visit the address it is started on (usually http://localhost:3000).
The indexing rake task can be run multiple times to pull in other data to you Blacklight app.
What the generator does
When you run rails g blacklight_dpla it does the following:
- Updates
app/controllers/catalog_controller.rbwith configuration for appropriate facets, show view values, and field list. - Updates the Solr configuration so that all *_facet fields are stored by default.
- TODO: Updates
app/views/catalog/_home_text.html.erbwith help text.
Author
Jason Ronallo
Copyright
Copyright © 2012 North Carolina State University. See MIT-LICENSE for details.