Skip to content

Commit 53a7735

Browse files
authored
Merge pull request #5005 from avalonmediasystem/staging
Release 7.5
2 parents 9083229 + 23889bb commit 53a7735

File tree

162 files changed

+4602
-1385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+4602
-1385
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN echo "deb http://ftp.us.debian.org/debian/ bullseye main cont
5050
&& echo "deb-src http://ftp.us.debian.org/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list.d/bullseye.list \
5151
&& cat /etc/apt/sources.list.d/bullseye.list \
5252
&& apt-get update && apt-get install -y --no-install-recommends curl gnupg2 ffmpeg \
53-
&& curl -sL http://deb.nodesource.com/setup_12.x | bash - \
53+
&& curl -sL http://deb.nodesource.com/setup_14.x | bash - \
5454
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
5555
&& echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
5656
&& cat /etc/apt/sources.list.d/nodesource.list \

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ gem 'rdf-vocab', '< 3.1.5'
3737
gem 'blacklight', '~> 7.25'
3838
gem 'blacklight-access_controls', '>= 6.0.1' # ensure rails 6 support
3939
gem 'rdf', '~> 3.1'
40-
gem 'rsolr', '~> 1.0'
40+
gem 'rsolr', '~> 2.0'
4141

4242
# Rails & Samvera Plugins
4343
gem 'about_page', git: 'https://github.com/avalonmediasystem/about_page.git', tag: 'avalon-r6.5'
@@ -54,7 +54,7 @@ gem 'rack-cors', require: 'rack/cors'
5454
gem 'rails_same_site_cookie'
5555
gem 'recaptcha', require: 'recaptcha/rails'
5656
gem 'samvera-persona', '~> 0.3'
57-
gem 'speedy-af', '~> 0.2'
57+
gem 'speedy-af', '~> 0.3'
5858

5959
# Avalon Components
6060
gem 'avalon-workflow', git: "https://github.com/avalonmediasystem/avalon-workflow.git", tag: 'avalon-r6.5'
@@ -70,7 +70,7 @@ gem 'omniauth-lti', git: "https://github.com/avalonmediasystem/omniauth-lti.git"
7070
gem "omniauth-saml", "~> 2.0"
7171

7272
# Media Access & Transcoding
73-
gem 'active_encode', '~> 0.8.2'
73+
gem 'active_encode', '~> 1.0'
7474
gem 'audio_waveform-ruby', '~> 1.0.7', require: 'audio_waveform'
7575
gem 'browse-everything', git: "https://github.com/avalonmediasystem/browse-everything.git", branch: 'v1.2-avalon'
7676
gem 'fastimage'

Gemfile.lock

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ GEM
110110
erubi (~> 1.4)
111111
rails-dom-testing (~> 2.0)
112112
rails-html-sanitizer (~> 1.1, >= 1.2.0)
113-
active-fedora (13.2.7)
113+
active-fedora (13.3.0)
114114
active-triples (>= 0.11.0, < 2.0.0)
115115
activemodel (>= 5.1)
116116
activesupport (>= 5.1)
@@ -132,9 +132,9 @@ GEM
132132
active_elastic_job (3.2.0)
133133
aws-sdk-sqs (~> 1)
134134
rails (>= 5.2.6, < 7.1)
135-
active_encode (0.8.2)
135+
active_encode (1.1.1)
136+
addressable (~> 2.8)
136137
rails
137-
sprockets (< 4)
138138
active_fedora-datastreams (0.4.0)
139139
active-fedora (>= 11.0.0.pre, < 14)
140140
activemodel (< 6.1)
@@ -176,8 +176,8 @@ GEM
176176
zeitwerk (~> 2.2, >= 2.2.2)
177177
acts_as_list (1.0.4)
178178
activerecord (>= 4.2)
179-
addressable (2.8.0)
180-
public_suffix (>= 2.0.2, < 5.0)
179+
addressable (2.8.1)
180+
public_suffix (>= 2.0.2, < 6.0)
181181
airbrussh (1.4.0)
182182
sshkit (>= 1.6.1, != 1.7.0)
183183
amazing_print (1.4.0)
@@ -398,7 +398,7 @@ GEM
398398
mail (~> 2.7)
399399
equivalent-xml (0.6.0)
400400
nokogiri (>= 1.4.3)
401-
erubi (1.10.0)
401+
erubi (1.11.0)
402402
et-orbi (1.2.6)
403403
tzinfo
404404
ethon (0.15.0)
@@ -483,7 +483,7 @@ GEM
483483
hydra-access-controls (= 12.0.1)
484484
hydra-core (= 12.0.1)
485485
rails (>= 5.2, < 7)
486-
i18n (1.11.0)
486+
i18n (1.12.0)
487487
concurrent-ruby (~> 1.0)
488488
iconv (1.0.8)
489489
iiif_manifest (0.6.0)
@@ -548,7 +548,7 @@ GEM
548548
activesupport (>= 4)
549549
railties (>= 4)
550550
request_store (~> 1.0)
551-
loofah (2.18.0)
551+
loofah (2.19.0)
552552
crass (~> 1.0.2)
553553
nokogiri (>= 1.5.9)
554554
mail (2.7.1)
@@ -566,7 +566,7 @@ GEM
566566
mime-types-data (3.2022.0105)
567567
mini_mime (1.1.2)
568568
mini_portile2 (2.8.0)
569-
minitest (5.16.2)
569+
minitest (5.16.3)
570570
msgpack (1.4.5)
571571
multi_json (1.15.0)
572572
multi_xml (0.6.0)
@@ -582,7 +582,7 @@ GEM
582582
noid-rails (3.0.3)
583583
actionpack (>= 5.0.0, < 7)
584584
noid (~> 0.9)
585-
nokogiri (1.13.7)
585+
nokogiri (1.13.9)
586586
mini_portile2 (~> 2.8.0)
587587
racc (~> 1.4)
588588
nom-xml (1.2.0)
@@ -631,7 +631,7 @@ GEM
631631
pry (~> 0.13.0)
632632
pry-rails (0.3.9)
633633
pry (>= 0.10.4)
634-
public_suffix (4.0.7)
634+
public_suffix (5.0.0)
635635
puma (5.6.4)
636636
nio4r (~> 2.0)
637637
raabro (1.4.0)
@@ -757,8 +757,9 @@ GEM
757757
roo (2.8.3)
758758
nokogiri (~> 1)
759759
rubyzip (>= 1.3.0, < 3.0.0)
760-
rsolr (1.1.2)
760+
rsolr (2.5.0)
761761
builder (>= 2.1.2)
762+
faraday (>= 0.9, < 3, != 2.0.0)
762763
rspec-core (3.11.0)
763764
rspec-support (~> 3.11.0)
764765
rspec-expectations (3.11.0)
@@ -850,7 +851,7 @@ GEM
850851
simplecov_json_formatter (~> 0.1)
851852
simplecov-html (0.12.3)
852853
simplecov_json_formatter (0.1.4)
853-
slop (4.9.1)
854+
slop (4.9.3)
854855
solr_wrapper (3.1.2)
855856
http
856857
retriable
@@ -862,9 +863,9 @@ GEM
862863
nokogiri
863864
stomp
864865
xml-simple
865-
speedy-af (0.2.0)
866+
speedy-af (0.3.0)
866867
active-fedora (>= 11.0.0)
867-
activesupport (> 5.2, < 6.1)
868+
activesupport (> 5.2)
868869
sprockets (3.7.2)
869870
concurrent-ruby (~> 1.0)
870871
rack (> 1, < 3)
@@ -898,7 +899,7 @@ GEM
898899
railties (>= 3.1)
899900
typhoeus (1.4.0)
900901
ethon (>= 0.9.0)
901-
tzinfo (1.2.9)
902+
tzinfo (1.2.10)
902903
thread_safe (~> 0.1)
903904
uber (0.0.15)
904905
uglifier (4.2.0)
@@ -907,7 +908,7 @@ GEM
907908
unf_ext
908909
unf_ext (0.0.8)
909910
unicode-display_width (1.8.0)
910-
unicode-types (1.7.0)
911+
unicode-types (1.8.0)
911912
user_agent_parser (2.9.0)
912913
view_component (2.58.0)
913914
activesupport (>= 5.0.0, < 8.0)
@@ -944,7 +945,7 @@ GEM
944945
nokogiri (~> 1.8)
945946
xray-rails (0.3.2)
946947
rails (>= 3.1.0)
947-
zeitwerk (2.6.0)
948+
zeitwerk (2.6.6)
948949
zk (1.10.0)
949950
zookeeper (~> 1.5.0)
950951
zookeeper (1.5.1)
@@ -958,7 +959,7 @@ DEPENDENCIES
958959
active-fedora (~> 13.2, >= 13.2.5)
959960
active_annotations (~> 0.4)
960961
active_elastic_job
961-
active_encode (~> 0.8.2)
962+
active_encode (~> 1.0)
962963
active_fedora-datastreams (~> 0.4)
963964
activejob-traffic_control
964965
activejob-uniqueness
@@ -1052,7 +1053,7 @@ DEPENDENCIES
10521053
redis-rails
10531054
rest-client (~> 2.0)
10541055
roo
1055-
rsolr (~> 1.0)
1056+
rsolr (~> 2.0)
10561057
rspec-its
10571058
rspec-rails
10581059
rspec-retry
@@ -1065,7 +1066,7 @@ DEPENDENCIES
10651066
sidekiq-cron (~> 1.2)!
10661067
simplecov
10671068
solr_wrapper (>= 0.16)
1068-
speedy-af (~> 0.2)
1069+
speedy-af (~> 0.3)
10691070
sprockets (~> 3.7.2)
10701071
sprockets-es6
10711072
sqlite3

app/assets/javascripts/application.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
//= require cropperjs/dist/cropper.min
4242
//= require url-search-params-polyfill/index.js
4343

44+
//= require moment/min/moment-with-locales.min.js
4445
//= require hls.js/dist/hls.min.js
4546

4647
// include all of our vendored js

app/assets/javascripts/avalon_playlists/playlists.js.coffee

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ $('#playlist_title').on('keyup',
5757
)
5858

5959
$('#copy-playlist-form').bind('ajax:success',
60-
(event, data, status, xhr) ->
60+
(event) ->
61+
[data, status, xhr] = event.detail
6162
if (data.errors)
6263
console.log(data.errors.title[0])
6364
else
@@ -67,7 +68,8 @@ $('#copy-playlist-form').bind('ajax:success',
6768
if ( $('#with_refresh').val() )
6869
location.reload()
6970
).bind('ajax:error',
70-
(e, xhr, status, error) ->
71+
(event) ->
72+
[data, status, xhr] = event.detail
7173
console.log(xhr.responseJSON.errors)
7274
)
7375

app/assets/javascripts/button_confirmation.js.coffee

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Copyright 2011-2022, The Trustees of Indiana University and Northwestern
22
# University. Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
4-
#
4+
#
55
# You may obtain a copy of the License at
6-
#
6+
#
77
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
8+
#
99
# Unless required by applicable law or agreed to in writing, software distributed
1010
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
1111
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
@@ -20,11 +20,6 @@ $ ->
2020
apply_button_confirmation()
2121

2222
@apply_button_confirmation = () ->
23-
# Remove popover when clicked outside. Reference: https://jsfiddle.net/guya/fjZja/
24-
$('html').on 'click', (e) ->
25-
if typeof $(e.target).data('original-title') == 'undefined' and !$(e.target).parents().is('.popover.in')
26-
$('[data-original-title]').popover 'hide'
27-
2823
$(document).on 'click', '#special_button_color', ->
2924
$('.btn-confirmation').popover 'hide'
3025
true
@@ -37,7 +32,7 @@ $ ->
3732
if typeof $(this).attr('form') == "undefined"
3833
button = '<a href="' + $(this).attr('href') + '" class="btn btn-sm btn-danger btn-confirm" data-method="delete" rel="nofollow">Yes, Delete</a>'
3934
else
40-
button = '<input class="btn btn-sm btn-danger btn-confirm" form="' + $(this).attr('form') + '" type="submit">'
35+
button = '<input class="btn btn-sm btn-danger btn-confirm" form="' + $(this).attr('form') + '" type="submit" value="Yes, Delete">'
4136
$('#' + $(this).attr('form')).find('[name=\'_method\']').val 'delete'
4237
'<p>Are you sure?</p> ' + button + ' <a href="#" class="btn btn-sm btn-primary" id="special_button_color">No, Cancel</a>'
4338
).click ->

app/assets/javascripts/direct_upload.js.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $ ->
1818
form = $(file_input.parents('form:first'))
1919
submit_button = form.find('input[type="submit"], *[data-trigger="submit"]')
2020
submit_button.on 'click', ->
21+
form.addClass('form-disabled')
2122
$('.directupload input:file').fileupload 'send',
2223
files: $('.directupload input:file').prop('files')
2324
return false
@@ -37,15 +38,14 @@ $ ->
3738
progress = parseInt(data.loaded / data.total * 100, 10)
3839
progress_bar.css('width', "#{progress}%")
3940
start: (e)->
40-
submit_button.prop('disabled', true)
4141
progress_bar.
4242
css('background', 'green').
4343
css('display', 'block').
4444
css('width', '0%').
4545
css('padding', '7px').
4646
text("Loading...")
4747
done: (e, data)->
48-
submit_button.prop('disabled', false)
48+
form.removeClass('form-disabled')
4949
progress_bar.text("Uploading done")
5050

5151
# extract key and generate URL from response
@@ -61,7 +61,7 @@ $ ->
6161
file_input.replaceWith(input)
6262
form.submit()
6363
fail: (e, data)->
64-
submit_button.prop('disabled', false)
64+
form.removeClass('form-disabled')
6565
progress_bar.
6666
css("background", "red").
6767
text("Failed")
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2011-2022, The Trustees of Indiana University and Northwestern
3+
* University. Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
*
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software distributed
11+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
13+
* specific language governing permissions and limitations under the License.
14+
* --- END LICENSE_HEADER BLOCK ---
15+
*/
16+
17+
// Toggle display of returned items on checkouts page
18+
$('#inactive_checkouts').on('change', function() {
19+
var table = $('#checkouts-table').DataTable();
20+
if (this.checked) {
21+
table.ajax.url('/checkouts.json?display_returned=true').load();
22+
} else {
23+
table.ajax.url('/checkouts.json').load();
24+
}
25+
});

app/assets/javascripts/dynamic_fields.js.coffee

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ $ ->
6868
else
6969
current_input_group.after(new_input_group)
7070

71-
$(document).on 'click', '.remove-dynamic-field', (e) ->
72-
e.preventDefault()
73-
current_input_group = $(this).closest('.input-group')
74-
textarea = current_input_group.data('textarea')
75-
if typeof(textarea)!="undefined"
76-
$(document.getElementById(textarea)).remove()
77-
current_input_group.remove()
71+
$(document).on 'click', '.remove-dynamic-field', (e) ->
72+
e.preventDefault()
73+
current_input_group = $(this).closest('.input-group')
74+
textarea = current_input_group.data('textarea')
75+
if typeof(textarea)!="undefined"
76+
$(document.getElementById(textarea)).remove()
77+
current_input_group.remove()
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Requires moment.js
2+
function localize_times() {
3+
$('*[data-utc-time]').each(function() {
4+
$(this).text(moment($(this).data('utc-time')).format('LLL'))
5+
});
6+
}
7+
8+
$(document).ready(localize_times);
9+
$(document).on('draw.dt', localize_times);

0 commit comments

Comments
 (0)