blacklight-spotlight 3.4.4.1 → 3.5.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/README.md +2 -2
- data/app/models/spotlight/search.rb +5 -1
- data/app/presenters/spotlight/iiif_manifest_presenter.rb +1 -1
- data/config/i18n-tasks.yml +1 -1
- data/lib/spotlight/engine.rb +5 -0
- data/lib/spotlight/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 688e108f5a003a92db5a4a9308218477f1041ccbe84d57a1c585a2786ca2b585
|
|
4
|
+
data.tar.gz: da0a179127c908fd7da0517158db17b45b4cdcb58e39ef70556fc939dd295590
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 345a73cf428dfd0cdd58396267882d6012494ddf1129717c6e1edbbdeb1071ba60e1bc320d97afc9b2d5b397b1a53abd06a55a12a699a5564721ecac453658c8
|
|
7
|
+
data.tar.gz: 17d52b57fa5ffaddc82a50faa5d45c32bcfac99efc9334a71719a0f7a98d3ebb6b8723e04343d04cac7b53787677ae5c342268bbc7f67097a968309ab2bebcb2
|
data/README.md
CHANGED
|
@@ -19,13 +19,13 @@ Read more about what Spotlight is, our motivations for creating it, and how to i
|
|
|
19
19
|
To bootstrap a new Rails application:
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
$ rails new app-name -m https://raw.githubusercontent.com/projectblacklight/spotlight/
|
|
22
|
+
$ rails new app-name -m https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
or from an existing Rails application:
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
$ rails app:template LOCATION=https://raw.githubusercontent.com/projectblacklight/spotlight/
|
|
28
|
+
$ rails app:template LOCATION=https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
*During this process you will be prompted to enter an initial administrator email and password (this is a super-admin that can administer any exhibit in the installation).* If you choose not to create one, the first user will be given administrative privileges.
|
|
@@ -16,7 +16,11 @@ module Spotlight
|
|
|
16
16
|
has_many :groups, through: :group_memberships
|
|
17
17
|
accepts_nested_attributes_for :group_memberships
|
|
18
18
|
accepts_nested_attributes_for :groups
|
|
19
|
-
|
|
19
|
+
if defined?(Blacklight::SearchParamsYamlCoder)
|
|
20
|
+
serialize :query_params, Blacklight::SearchParamsYamlCoder, default: -> { {} }
|
|
21
|
+
else
|
|
22
|
+
serialize :query_params, Hash
|
|
23
|
+
end
|
|
20
24
|
default_scope { order('weight ASC') }
|
|
21
25
|
scope :published, -> { where(published: true) }
|
|
22
26
|
scope :unpublished, -> { where(published: [nil, false]) }
|
|
@@ -8,7 +8,7 @@ module Spotlight
|
|
|
8
8
|
# nodes.
|
|
9
9
|
#
|
|
10
10
|
# IIIFManifest expects the following methods: #file_set_presenters, #work_presenters, #manifest_url, #description.
|
|
11
|
-
# see: https://github.com/projecthydra-labs/iiif_manifest/blob/
|
|
11
|
+
# see: https://github.com/projecthydra-labs/iiif_manifest/blob/main/README.md
|
|
12
12
|
class IiifManifestPresenter
|
|
13
13
|
require 'iiif_manifest'
|
|
14
14
|
|
data/config/i18n-tasks.yml
CHANGED
|
@@ -78,7 +78,7 @@ ignore_unused:
|
|
|
78
78
|
# TODO Look into these as its unclear
|
|
79
79
|
- activerecord.models.spotlight.page
|
|
80
80
|
#- # perhaps removed here? https://github.com/projectblacklight/spotlight/commit/d4fdf04565ab3d648f0cb2a1238d84f262509fcd
|
|
81
|
-
- devise.mailer.*.* # Does this even work? https://github.com/projectblacklight/spotlight/blob/
|
|
81
|
+
- devise.mailer.*.* # Does this even work? https://github.com/projectblacklight/spotlight/blob/main/app/mailers/spotlight/invitation_mailer.rb#L16
|
|
82
82
|
- helpers.submit.solr_document.{batch_error,batch_updated,create,created,destroyed,submit,update,updated} # Do we need this?
|
|
83
83
|
- helpers.submit.user.{batch_error,batch_updated,create,created,destroyed,submit,update,updated} # Do we need this?
|
|
84
84
|
- helpers.action.destroy # no idea here
|
data/lib/spotlight/engine.rb
CHANGED
|
@@ -308,5 +308,10 @@ module Spotlight
|
|
|
308
308
|
config.assign_default_roles_to_first_user = true
|
|
309
309
|
|
|
310
310
|
config.exhibit_roles = %w[admin curator viewer]
|
|
311
|
+
|
|
312
|
+
if ActiveRecord.respond_to?(:yaml_column_permitted_classes) || ActiveRecord::Base.respond_to?(:yaml_column_permitted_classes)
|
|
313
|
+
config.active_record.yaml_column_permitted_classes ||= []
|
|
314
|
+
config.active_record.yaml_column_permitted_classes += [Symbol, ActiveSupport::HashWithIndifferentAccess]
|
|
315
|
+
end
|
|
311
316
|
end
|
|
312
317
|
end
|
data/lib/spotlight/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blacklight-spotlight
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Beer
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2022-07-
|
|
14
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activejob-status
|