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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42072bef23a9bedf75316257ef35e762377533a0a47eb9736cc301110760017f
|
4
|
+
data.tar.gz: 12287d3718e9c835fe4e4de9451cb2320d7618062a4b2335ef81c79da3c23adb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5b1cbeb353243a6bcdf333feaeee88c5e83a07973cef77c3b4c2bc9fcee5e97df779ee2fbe85a570163158dec377aff2a588dc105a2beba5ae89ad5a2328b5c
|
7
|
+
data.tar.gz: edd17d9bc9b12b183f77320ae504953d8c753b3f6c0bffed75c79d0268067028effe8936bd3a8b3b1f43c3d498930b041f585970766ad37bfc835e34ccb4333d
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module ToSpotlight
|
2
|
-
class SpotlightTransferController <
|
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
|
data/lib/to_spotlight/version.rb
CHANGED