arclight 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: 732e4a7442ecd59d43412a2abadd49f4b1888faf
4
- data.tar.gz: ffab1450652296e861c892e395f2e4de165610f2
3
+ metadata.gz: 8714e205fc1504d10046b11ca15d052b88fa7807
4
+ data.tar.gz: aab016edd61930e28c62fd598926e7b8dfd06b55
5
5
  SHA512:
6
- metadata.gz: 799727925462d5c0369c035ef6bfae5698399781a8db0f90b2b57381854753a58ceb84f64449665f78133fb1324090d98b44994cfbf646cd73bfc9dd18e69c1b
7
- data.tar.gz: 5a01b1972ba2313f65e65e785882113a79c835accf10efcde4445bd8f1e56a05be8792fedf9f58fb88f7e2c6b7459d54c46c6c0a1df1761e652ca3d0c7142197
6
+ metadata.gz: 2f8ee0bf77483e97caed185a8914511c439ac8f80d041f403079fe6160b491e101afcb033f9769656d3c10629354b031fdfd0a52d3a65cf9eac0cd22dc56d702
7
+ data.tar.gz: 24a2833db4e0600ca07e7f5135214a7808f982c49c3950228ee4d7713740fe68e0631ef90599e443823b6601bbe7cc3a2b80c257899ec05683ac77a98c688995
@@ -82,7 +82,7 @@
82
82
  if (showDocs.length > 0) {
83
83
  $el.trigger('navigation.contains.elements');
84
84
  }
85
- Blacklight.do_bookmark_toggle_behavior();
85
+ Blacklight.doBookmarkToggleBehavior();
86
86
  });
87
87
  }
88
88
  };
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_dependency 'blacklight'
27
- spec.add_dependency 'blacklight_range_limit'
26
+ spec.add_dependency 'blacklight', '7.0.0.rc1'
27
+ spec.add_dependency 'blacklight_range_limit', '7.0.0.rc2'
28
28
  spec.add_dependency 'rails', '~> 5.0'
29
29
  spec.add_dependency 'solr_ead'
30
30
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Arclight
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
@@ -32,10 +32,6 @@ module Arclight
32
32
  def assets
33
33
  copy_file 'arclight.scss', 'app/assets/stylesheets/arclight.scss'
34
34
  copy_file 'arclight.js', 'app/assets/javascripts/arclight.js'
35
- inject_into_file 'app/assets/javascripts/application.js', after: '//= require blacklight/blacklight' do
36
- "\n//= require bootstrap/scrollspy\n" \
37
- "\n//= require bootstrap/tab\n"
38
- end
39
35
  end
40
36
 
41
37
  def add_arclight_search_behavior
@@ -47,6 +47,20 @@ class CatalogController < ApplicationController
47
47
  #config.show.display_type_field = 'format'
48
48
  #config.show.thumbnail_field = 'thumbnail_path_ss'
49
49
 
50
+ config.add_results_document_tool(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)
51
+
52
+ config.add_results_collection_tool(:sort_widget)
53
+ config.add_results_collection_tool(:per_page_widget)
54
+ config.add_results_collection_tool(:view_type_group)
55
+
56
+ config.add_show_tools_partial(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)
57
+ config.add_show_tools_partial(:email, callback: :email_action, validator: :validate_email_params)
58
+ config.add_show_tools_partial(:sms, if: :render_sms_action?, callback: :sms_action, validator: :validate_sms_params)
59
+ config.add_show_tools_partial(:citation)
60
+
61
+ config.add_nav_action(:bookmark, partial: 'blacklight/nav/bookmark', if: :render_bookmarks_control?)
62
+ config.add_nav_action(:search_history, partial: 'blacklight/nav/search_history')
63
+
50
64
  # solr fields that will be treated as facets by the blacklight application
51
65
  # The ordering of the field names is the order of the display
52
66
  #
@@ -5,8 +5,6 @@ require 'engine_cart/rake_task'
5
5
  require 'rspec/core/rake_task'
6
6
  require 'arclight'
7
7
 
8
- EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc
9
-
10
8
  desc 'Run test suite'
11
9
  task ci: %w[arclight:generate] do
12
10
  SolrWrapper.wrap do |solr|
@@ -1,11 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # We can remove `blacklight` and `blacklight_range_limit` once they are released
4
- # since they are already dependents of Arclight (but we need to pin to particular branches)
5
- gem 'blacklight', github: 'projectblacklight/blacklight'
6
- gem 'blacklight_range_limit', github: 'projectblacklight/blacklight_range_limit', branch: 'blacklight-7'
7
-
8
3
  gem 'arclight', github: 'sul-dlss/arclight'
4
+ gem 'blacklight_range_limit', '7.0.0.rc2'
9
5
 
10
6
  run 'bundle install'
11
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arclight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hardy
@@ -11,36 +11,36 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2017-10-03 00:00:00.000000000 Z
14
+ date: 2018-07-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: blacklight
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ">="
20
+ - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: '0'
22
+ version: 7.0.0.rc1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 7.0.0.rc1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: blacklight_range_limit
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ">="
34
+ - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: '0'
36
+ version: 7.0.0.rc2
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: '0'
43
+ version: 7.0.0.rc2
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: rails
46
46
  requirement: !ruby/object:Gem::Requirement
@@ -386,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
386
  version: '0'
387
387
  requirements: []
388
388
  rubyforge_project:
389
- rubygems_version: 2.6.13
389
+ rubygems_version: 2.6.11
390
390
  signing_key:
391
391
  specification_version: 4
392
392
  summary: ''