from_hyrax 0.2.2 → 0.2.3
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: c736fd68cb6c5cef649ccb26e41b19fb14587745f94b5ed2454296910dddcf5f
|
4
|
+
data.tar.gz: ba1bb7bc6b22fcc69d7faa71e6c7164ab2994fec1c35f4cccffa754995982f4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 836454272b9ca901b90b1b6b67b698552c75e2e2c06ec6b3e71fb4b9b18e36bf8137228671aa5744ed83760333a9a99bfe03cd7fc04982e11468472dc196f237
|
7
|
+
data.tar.gz: cd6a1ac826bf00f94f92cd70328ef80ff9ad1e8478c38506eeb7d815ddb32cfb69f91c77cffaad016caaf567a2c06f16b3c32bd86e824e1a4931979c28af71b3
|
@@ -6,7 +6,7 @@ class FromHyraxController < ActionController::Base
|
|
6
6
|
|
7
7
|
def hyrax_api
|
8
8
|
return nil unless instances.include?(params[:repo])
|
9
|
-
uri = URI("
|
9
|
+
uri = URI("#{params[:repo]}/to_spotlight/api/#{params[:api_type]}")
|
10
10
|
response = get_response(uri)
|
11
11
|
render html: response.body.html_safe
|
12
12
|
end
|
@@ -16,7 +16,7 @@ class FromHyraxController < ActionController::Base
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def new
|
19
|
-
uri = URI("
|
19
|
+
uri = URI("#{params[:repo]}/to_spotlight/api/fields")
|
20
20
|
response = get_response(uri)
|
21
21
|
@hyrax_fields = eval(response.body)
|
22
22
|
@spotlight_fields = spotlight_fields.map { |f| [f[:label], f[:field_name]] }
|
@@ -33,7 +33,7 @@ class FromHyraxController < ActionController::Base
|
|
33
33
|
# token: 'secret_token' }.to_json,
|
34
34
|
# 'Content-Type' => 'application/json'
|
35
35
|
post_options = { transfer: params[:transfer], mappings: @mappings, token: 'secret_token' }
|
36
|
-
@res = post_response URI("
|
36
|
+
@res = post_response URI("#{params[:repo]}/to_spotlight/receive"), post_options
|
37
37
|
end
|
38
38
|
|
39
39
|
def receive
|
data/lib/from_hyrax/version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
hyrax_instances:
|
2
|
-
- 'hyrax.institution.com'
|
2
|
+
- 'https://hyrax.institution.com'
|