warclight 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/warclight/warclight.js +1 -0
- data/app/assets/stylesheets/warclight/application.scss +2 -1
- data/lib/generators/warclight/install_generator.rb +5 -0
- data/lib/generators/warclight/templates/catalog_controller.rb +8 -9
- data/lib/warclight/version.rb +1 -1
- data/solr/conf/elevate.xml +10 -14
- data/solr/conf/lang/contractions_fr.txt +0 -6
- data/solr/conf/lang/stopwords_da.txt +0 -2
- data/solr/conf/lang/stopwords_de.txt +0 -2
- data/solr/conf/lang/stopwords_es.txt +0 -2
- data/solr/conf/lang/stopwords_fi.txt +0 -2
- data/solr/conf/lang/stopwords_fr.txt +1 -4
- data/solr/conf/lang/stopwords_hu.txt +0 -2
- data/solr/conf/lang/stopwords_it.txt +0 -2
- data/solr/conf/lang/stopwords_nl.txt +0 -2
- data/solr/conf/lang/stopwords_no.txt +0 -2
- data/solr/conf/lang/stopwords_pt.txt +0 -2
- data/solr/conf/lang/stopwords_ru.txt +0 -2
- data/solr/conf/lang/stopwords_sv.txt +0 -2
- data/solr/conf/schema.xml +543 -304
- data/solr/conf/solrconfig.xml +1933 -140
- data/solr/conf/solrcore.properties +1 -0
- data/solr/conf/stopwords_path.txt +7 -0
- data/solr/conf/synonyms.txt +13 -13
- data/template.rb +1 -4
- data/warclight.gemspec +2 -0
- metadata +33 -3
- data/app/assets/stylesheets/warclight/warclight.scss +0 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 2bb52dca360cd285da8b5f2247f591304e20c7cad908f923976450a9779e4f68
         | 
| 4 | 
            +
              data.tar.gz: a9520b6c68fb3d7eb8ff94680c98744b530f096f70dcf03af11c27e30e9c184e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b4d47a466b168df77009a28f3731b0055a152b3b1da8a2afdcbdaee63acc9ee9d2c7720cc3f274ba924eb8cec4609c49a1e9de626f797ddc90ee96e15e3b94fe
         | 
| 7 | 
            +
              data.tar.gz: 7c1de8407eac4cca6950c96c4a6eb7120300c9fa72ce4fc3d952ad87be2b58aea098eafc5fb6990f0c4cac1d643f4a09973357fd3376db2ef2c59c1430ea483d
         | 
    
        data/.rubocop.yml
    CHANGED
    
    
    
        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('. | 
| 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 | 
            -
             | 
| 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. | 
| 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. | 
| 128 | 
            +
                  field.solr_parameters = { 'qf': 'url' }
         | 
| 130 129 | 
             
                end
         | 
| 131 130 |  | 
| 132 131 | 
             
                config.add_search_field 'host', label: 'Host' do |field|
         | 
| 133 | 
            -
                  field. | 
| 132 | 
            +
                  field.solr_parameters = { 'qf': 'host' }
         | 
| 134 133 | 
             
                end
         | 
| 135 134 |  | 
| 136 135 | 
             
                # Field-based searches. We have registered handlers in the Solr configuration
         | 
    
        data/lib/warclight/version.rb
    CHANGED
    
    
    
        data/solr/conf/elevate.xml
    CHANGED
    
    | @@ -24,19 +24,15 @@ | |
| 24 24 |  | 
| 25 25 | 
             
            -->
         | 
| 26 26 | 
             
            <elevate>
         | 
| 27 | 
            -
              | 
| 28 | 
            -
              < | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
            -
             | 
| 32 | 
            -
             | 
| 33 | 
            -
             | 
| 34 | 
            -
             | 
| 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>
         | 
| @@ -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 | 
             
             | 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 | 
            -
             | 
| 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.
         |