warclight 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ab98eda44fe84f3e41ef31c8b639c8db952181dbce9af30a645876874400bde
4
- data.tar.gz: 67298b43067fab18ed2b7d370aadbd9c1b3b4cb45e2261a3daf835fac656fa06
3
+ metadata.gz: 2bb52dca360cd285da8b5f2247f591304e20c7cad908f923976450a9779e4f68
4
+ data.tar.gz: a9520b6c68fb3d7eb8ff94680c98744b530f096f70dcf03af11c27e30e9c184e
5
5
  SHA512:
6
- metadata.gz: 7e9f4d01d8d53f40c6bf61a68dea944392e0304a4afe30637fae7639629a6d3e6c23baa5f70d0c3b588b1647027851d3284cac668ddc761c02fdd273f59d2203
7
- data.tar.gz: c0cba8eb52603d60bedb288f59af057d38258f478677ffce4492ab22c898134739e6374743bf8c94f5836bcc1c24c2d8736ffb926cd31c066d2afd17a9c0380b
6
+ metadata.gz: b4d47a466b168df77009a28f3731b0055a152b3b1da8a2afdcbdaee63acc9ee9d2c7720cc3f274ba924eb8cec4609c49a1e9de626f797ddc90ee96e15e3b94fe
7
+ data.tar.gz: 7c1de8407eac4cca6950c96c4a6eb7120300c9fa72ce4fc3d952ad87be2b58aea098eafc5fb6990f0c4cac1d643f4a09973357fd3376db2ef2c59c1430ea483d
data/.rubocop.yml CHANGED
@@ -3,6 +3,7 @@ require: rubocop-rspec
3
3
  AllCops:
4
4
  Exclude:
5
5
  - '.internal_test_app/**/*'
6
+ - '.internal_test_gem/**/*'
6
7
  - 'bin/**/*'
7
8
  - 'db/**/*'
8
9
  - 'lib/generators/warclight/templates/**/*'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.6.3](https://github.com/archivesunleashed/warclight/tree/v0.6.3) (2018-09-25)
4
+ [Full Changelog](https://github.com/archivesunleashed/warclight/compare/v0.6.2...v0.6.3)
5
+
3
6
  ## [v0.6.2](https://github.com/archivesunleashed/warclight/tree/v0.6.2) (2018-09-25)
4
7
  [Full Changelog](https://github.com/archivesunleashed/warclight/compare/v0.6.1...v0.6.2)
5
8
 
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ gemspec
10
10
  # engine_cart: 1.1.0
11
11
  # engine_cart stanza: 0.10.0
12
12
  # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
13
- file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
13
+ file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_gem', File.dirname(__FILE__)))
14
14
  if File.exist?(file)
15
15
  begin
16
16
  eval_gemfile file
Binary file
@@ -0,0 +1 @@
1
+ // Vendor Scripts
@@ -1 +1,2 @@
1
- /* Warclight application scss */
1
+ @import 'bootstrap/functions';
2
+ @import 'bootstrap/variables';
@@ -19,6 +19,10 @@ module Warclight
19
19
  end
20
20
  end
21
21
 
22
+ def install_blacklight_range_limit
23
+ generate 'blacklight_range_limit:install'
24
+ end
25
+
22
26
  def add_custom_routes
23
27
  inject_into_file 'config/routes.rb', after: "mount Blacklight::Engine => '/'" do
24
28
  "\n mount Warclight::Engine => '/'\n"
@@ -27,6 +31,7 @@ module Warclight
27
31
 
28
32
  def assets
29
33
  copy_file 'warclight.scss', 'app/assets/stylesheets/warclight.scss'
34
+ copy_file 'warclight.js', 'app/assets/javascripts/warclight.js'
30
35
  inject_into_file 'app/assets/javascripts/application.js', after: '//= require blacklight/blacklight' do
31
36
  "\n//= require bootstrap/scrollspy\n" \
32
37
  "\n//= require bootstrap/tab\n"
@@ -16,7 +16,10 @@ class CatalogController < ApplicationController
16
16
 
17
17
  ## Default parameters to send to solr for all search-like requests. See also SearchBuilder#processed_parameters
18
18
  config.default_solr_params = {
19
- rows: 10
19
+ rows: 10,
20
+ 'q.alt': '*:*',
21
+ defType: 'edismax',
22
+ echoParams: 'explicit'
20
23
  }
21
24
 
22
25
  # solr field configuration for search results/index views
@@ -113,24 +116,20 @@ class CatalogController < ApplicationController
113
116
  # This one uses all the defaults set by the solr request handler. Which
114
117
  # solr request handler? The one set in config[:default_solr_parameters][:qt],
115
118
  # since we aren't specifying it otherwise.
116
- config.add_search_field 'text', label: 'Text' do |field|
119
+ config.add_search_field 'text', label: 'All Text' do |field|
117
120
  field.include_in_simple_select = true
118
121
  end
119
122
 
120
123
  config.add_search_field 'title', label: 'Title' do |field|
121
- field.qt = 'title_search'
122
- end
123
-
124
- config.add_search_field 'content', label: 'Content' do |field|
125
- field.qt = 'content_search'
124
+ field.solr_parameters = { 'qf': 'title' }
126
125
  end
127
126
 
128
127
  config.add_search_field 'url', label: 'URL' do |field|
129
- field.qt = 'url_search'
128
+ field.solr_parameters = { 'qf': 'url' }
130
129
  end
131
130
 
132
131
  config.add_search_field 'host', label: 'Host' do |field|
133
- field.qt = 'host_search'
132
+ field.solr_parameters = { 'qf': 'host' }
134
133
  end
135
134
 
136
135
  # Field-based searches. We have registered handlers in the Solr configuration
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Warclight
4
- VERSION = '0.6.3'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -24,19 +24,15 @@
24
24
 
25
25
  -->
26
26
  <elevate>
27
- <!-- Query elevation examples
28
- <query text="foo bar">
29
- <doc id="1" />
30
- <doc id="2" />
31
- <doc id="3" />
32
- </query>
33
-
34
- for use with techproducts example
27
+ <query text="foo bar">
28
+ <doc id="1" />
29
+ <doc id="2" />
30
+ <doc id="3" />
31
+ </query>
32
+
33
+ <query text="ipod">
34
+ <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
35
+ <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
36
+ </query>
35
37
 
36
- <query text="ipod">
37
- <doc id="MA147LL/A" /> put the actual ipod at the top
38
- <doc id="IW-02" exclude="true" /> exclude this cable
39
- </query>
40
- -->
41
-
42
38
  </elevate>
@@ -7,9 +7,3 @@ qu
7
7
  n
8
8
  s
9
9
  j
10
- d
11
- c
12
- jusqu
13
- quoiqu
14
- lorsqu
15
- puisqu
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A Danish stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A German stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A Spanish stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | forms of BE
11
9
 
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A French stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -169,8 +167,7 @@ eussent
169
167
 
170
168
  | Later additions (from Jean-Christophe Deschamps)
171
169
  ceci | this
172
- cela | that
173
- celà | that
170
+ celà  | that
174
171
  cet | this
175
172
  cette | this
176
173
  ici | here
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | Hungarian stop word list
11
9
  | prepared by Anna Tordai
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | An Italian stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A Dutch stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A Norwegian stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A Portuguese stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | a russian stop word list. comments begin with vertical bar. each stop
11
9
  | word is at the start of a line.
@@ -4,8 +4,6 @@
4
4
  | Also see http://www.opensource.org/licenses/bsd-license.html
5
5
  | - Encoding was converted to UTF-8.
6
6
  | - This notice was added.
7
- |
8
- | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
7
 
10
8
  | A Swedish stop word list. Comments begin with vertical bar. Each stop
11
9
  | word is at the start of a line.