hyrax 2.9.3 → 2.9.4
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/.regen +1 -1
- data/README.md +1 -1
- data/app/controllers/hyrax/file_sets_controller.rb +6 -1
- data/lib/generators/hyrax/templates/catalog_controller.rb +4 -0
- data/lib/hyrax/version.rb +1 -1
- data/template.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f943e7915f659dabbc79d757e34334d8eb602fd0a25d663ccaffd6e4d5427cab
|
4
|
+
data.tar.gz: dc220a862725eaf06e8bf6b3d2c7196aa1c7aca72d63f950d4ace93aab4cc544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8511afa746c378d0b697ea488aae0811e0cd93c6e055d23b063a75f5611cbc6d99004d134bafb19f285a20b160b5c37cc3ce5625a484964d7d91d4ca4d72e7d9
|
7
|
+
data.tar.gz: 43efe3c7bfc349a2aa113c18d2f507da53a8d6fd9e1ceb677f028577e832469740cff247ef3fd3e7a4f8b9b136aed595ef1bfda2a3a1fc3146bab365b97a0a46
|
data/.regen
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3
|
1
|
+
3.http_method
|
data/README.md
CHANGED
@@ -158,7 +158,7 @@ NOTE: The steps need to be done in order to create a new Hyrax based app.
|
|
158
158
|
Generate a new Rails application using the template.
|
159
159
|
|
160
160
|
```
|
161
|
-
rails _5.2.4.4_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.9.
|
161
|
+
rails _5.2.4.4_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.9.4/template.rb
|
162
162
|
```
|
163
163
|
|
164
164
|
Generating a new Rails application using Hyrax's template above takes cares of a number of steps for you, including:
|
@@ -85,13 +85,18 @@ module Hyrax
|
|
85
85
|
actor.revert_content(params[:revision])
|
86
86
|
elsif params.key?(:file_set)
|
87
87
|
if params[:file_set].key?(:files)
|
88
|
-
actor.update_content(
|
88
|
+
actor.update_content(uploaded_file_from_path)
|
89
89
|
else
|
90
90
|
update_metadata
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
def uploaded_file_from_path
|
96
|
+
uploaded_file = CarrierWave::SanitizedFile.new(params[:file_set][:files].first)
|
97
|
+
Hyrax::UploadedFile.create(user_id: current_user.id, file: uploaded_file)
|
98
|
+
end
|
99
|
+
|
95
100
|
def after_update_response
|
96
101
|
respond_to do |wants|
|
97
102
|
wants.html do
|
@@ -20,6 +20,10 @@ class CatalogController < ApplicationController
|
|
20
20
|
config.view.gallery.partials = [:index_header, :index]
|
21
21
|
config.view.slideshow.partials = [:index]
|
22
22
|
|
23
|
+
# Because too many times on Samvera tech people raise a problem regarding a failed query to SOLR.
|
24
|
+
# Often, it's because they inadvertantly exceeded the character limit of a GET request.
|
25
|
+
config.http_method = :post
|
26
|
+
|
23
27
|
## Default parameters to send to solr for all search-like requests. See also SolrHelper#solr_search_params
|
24
28
|
config.default_solr_params = {
|
25
29
|
qt: "search",
|
data/lib/hyrax/version.rb
CHANGED
data/template.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyrax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2021-
|
17
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
@@ -2473,7 +2473,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2473
2473
|
- !ruby/object:Gem::Version
|
2474
2474
|
version: '0'
|
2475
2475
|
requirements: []
|
2476
|
-
rubygems_version: 3.1.
|
2476
|
+
rubygems_version: 3.1.4
|
2477
2477
|
signing_key:
|
2478
2478
|
specification_version: 4
|
2479
2479
|
summary: Hyrax is a front-end based on the robust Samvera framework, providing a user
|