blacklight_advanced_search 1.0.0pre1 → 1.0.0pre2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,27 +1,38 @@
1
- This is an advanced search plugin for Blacklight ( http://www.projectblacklight.org ). It is meant to be installed alongside the Blacklight plugin in your application's vendor/plugins directory.
2
-
1
+ This is an advanced search plugin for Blacklight ( http://www.projectblacklight.org ).
3
2
 
4
3
  == Pre-requisites:
5
4
  * The Blacklight plugin ( http://github.com/projectblacklight/blacklight )
6
- * NOTE: 2.9 or later is required for current version of Advanced Search plugin. Older tagged versions of Advanced Search may work with older BL.
7
- * Parslet gem ( https://github.com/kschiess/parslet )
5
+ * NOTE: Blacklight 3.x is required for current version of Advanced Search plugin
6
+ * advanced search plugin 0.12.0 will work with Blacklight 2.9/Rails2.
7
+ * Older tagged versions of Advanced Search may work with older BL.
8
+
8
9
 
9
10
  == Installation:
10
- Clone the advanced search plugin from github into your application's vendor/plugins directory
11
- * cd into your application's vendor/plugins directory and run the following command:
12
- git clone http://github.com/projectblacklight/blacklight_advanced_search.git
13
11
 
14
- You can later use standard git commands to update the plugin to a new version.
15
-
16
- OR
12
+ === Blacklight 3.x/Rails 3
17
13
 
18
- from your application's main directory, run:
14
+ Add to your application's Gemfile:
15
+ gem "blacklight_advanced_search"
19
16
 
20
- ./script/plugin install http://github.com/projectblacklight/blacklight_advanced_search.git
21
-
17
+ then run 'bundle install'. Then run:
18
+ rails generate blacklight_advanced_search
22
19
 
23
- You can later use "./script/plugin update blacklight_advanced_search" to update to latest code.
24
-
20
+ * The 'generate' command will copy some stylesheet/javascript assets to your local app (this architecture will likely change for Rails 3.1)
21
+ * It will also OPTIONALLY install a config/initializers/blacklight_advanced_search.rb . Configuration in the initializer is optional, for many setups no configuration will be neccesary. See 'Configuration' section below.
22
+ * And it can optionally install a localized search form with a link to advanced search. If you've already localized your search form you'll want to do this manually instead.
23
+
24
+ You may want to set BlacklightAdvancedSearch.config[:advanced_parse_q] = true to enable AND/OR/NOT parsing even in ordinary search, this is not on by default.
25
+
26
+ === Blacklight 2.x/Rails2
27
+
28
+ Clone the advanced search plugin from github into your application's vendor/plugins directory , and switch
29
+ to a version that works with BL 2.x/Rails2.
30
+ * cd into your application's vendor/plugins directory and run the following command:
31
+ git clone http://github.com/projectblacklight/blacklight_advanced_search.git
32
+ git checkout v0.12.0
33
+
34
+ You can later use standard git commands to update the plugin to a new version.
35
+
25
36
  You will now need to add a parslet gem dependency to your app, since blacklight_advanced_search is not currently a gem itself, you have to do this manually. Add "config.gem 'parslet'" to your config/environment.rb, and then run:
26
37
 
27
38
  sudo rake gems:install
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0pre1
1
+ 1.0.0pre2
@@ -7,5 +7,17 @@ class BlacklightAdvancedSearchGenerator < Rails::Generators::Base
7
7
  def copy_public_assets
8
8
  BlacklightAdvancedSearch::AssetsGenerator.start
9
9
  end
10
+
11
+ def install_config_file
12
+ if options[:force] or yes?("Install optional example Blacklight Advanced Search config file?")
13
+ copy_file("blacklight_advanced_search_config.rb", "config/initializers/blacklight_advanced_search.rb")
14
+ end
15
+ end
16
+
17
+ def install_localized_search_form
18
+ if options[:force] or yes?("Install local search form with advanced link?")
19
+ copy_file("_search_form.html.erb", "app/views/catalog/_search_form.html.erb")
20
+ end
21
+ end
10
22
 
11
23
  end
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # NOTE WELL: Using a seperate request handler is just one option, in most cases
7
7
  # it's simpler to use your default solr request handler set in Blacklight itself,
8
- # in which case you would not want to set any of the configuration below!
8
+ # in which case you can delete/comment out this entire file!
9
9
  # See README.
10
10
 
11
11
  BlacklightAdvancedSearch.config.merge!(
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_advanced_search
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923831947
4
+ hash: 1923831949
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - pre
11
- - 1
12
- version: 1.0.0pre1
11
+ - 2
12
+ version: 1.0.0pre2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jonathan Rochkind
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-06-22 00:00:00 Z
21
+ date: 2011-06-23 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: rails