to_spotlight 0.2.4 → 0.2.5

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: 3ea6f68b05d7d4f9b057547c061f87662e11035f57221224981405b1bbf8fa39
4
- data.tar.gz: ae68623ec486dec854761be782e34294b84c4c6c26aa644f0a3fabef531b98f2
3
+ metadata.gz: 42072bef23a9bedf75316257ef35e762377533a0a47eb9736cc301110760017f
4
+ data.tar.gz: 12287d3718e9c835fe4e4de9451cb2320d7618062a4b2335ef81c79da3c23adb
5
5
  SHA512:
6
- metadata.gz: b23903e78b1729da5ea57ddfa59e9f9da96a6ae6df269d60b962af53425489f6083712b3c92b12be5533705dbc9d889a34742e9282fe96509e3d123e30fede43
7
- data.tar.gz: 349dacb9846d0a657e57b7c7df14add4211daf7d76f7a0ae0319c028e76799b699d8be663e0400241a8565e066009699541445d44498e99a598e5cb60f863ade
6
+ metadata.gz: d5b1cbeb353243a6bcdf333feaeee88c5e83a07973cef77c3b4c2bc9fcee5e97df779ee2fbe85a570163158dec377aff2a588dc105a2beba5ae89ad5a2328b5c
7
+ data.tar.gz: edd17d9bc9b12b183f77320ae504953d8c753b3f6c0bffed75c79d0268067028effe8936bd3a8b3b1f43c3d498930b041f585970766ad37bfc835e34ccb4333d
@@ -1,5 +1,5 @@
1
1
  module ToSpotlight
2
- class SpotlightTransferController < ActionController::Base
2
+ class SpotlightTransferController < ApplicationController
3
3
  protect_from_forgery with: :exception
4
4
  before_action :authenticate_user!
5
5
  skip_before_action :verify_authenticity_token, only: :receive
@@ -127,5 +127,24 @@ module ToSpotlight
127
127
  :spotlight_url)
128
128
  end
129
129
 
130
+ #helpers
131
+ def available_works
132
+ @available_works ||= Hyrax::QuickClassificationQuery.new(current_user).authorized_models
133
+ end
134
+
135
+ def default_page_title
136
+ 'Spotlight Transfer'
137
+ end
138
+
139
+ def admin_host?
140
+ false unless Settings.multitenancy.enabled rescue nil
141
+ end
142
+
143
+ def available_translations
144
+ {
145
+ 'en' => 'English',
146
+ 'fr' => 'French'
147
+ }
148
+ end
130
149
  end
131
150
  end
@@ -1,3 +1,3 @@
1
1
  module ToSpotlight
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sephirothkod