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 +4 -4
- data/app/assets/javascripts/arclight/collection_navigation.js +1 -1
- data/arclight.gemspec +2 -2
- data/lib/arclight/version.rb +1 -1
- data/lib/generators/arclight/install_generator.rb +0 -4
- data/lib/generators/arclight/templates/catalog_controller.rb +14 -0
- data/tasks/arclight.rake +0 -2
- data/template.rb +1 -5
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8714e205fc1504d10046b11ca15d052b88fa7807
|
4
|
+
data.tar.gz: aab016edd61930e28c62fd598926e7b8dfd06b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f8ee0bf77483e97caed185a8914511c439ac8f80d041f403079fe6160b491e101afcb033f9769656d3c10629354b031fdfd0a52d3a65cf9eac0cd22dc56d702
|
7
|
+
data.tar.gz: 24a2833db4e0600ca07e7f5135214a7808f982c49c3950228ee4d7713740fe68e0631ef90599e443823b6601bbe7cc3a2b80c257899ec05683ac77a98c688995
|
data/arclight.gemspec
CHANGED
@@ -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
|
|
data/lib/arclight/version.rb
CHANGED
@@ -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
|
#
|
data/tasks/arclight.rake
CHANGED
data/template.rb
CHANGED
@@ -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.
|
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:
|
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:
|
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:
|
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:
|
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:
|
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.
|
389
|
+
rubygems_version: 2.6.11
|
390
390
|
signing_key:
|
391
391
|
specification_version: 4
|
392
392
|
summary: ''
|