blacklight-spotlight 4.0.1 → 4.0.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: 2fc52e049da8686762d5f9755ab41238d51106834ba849e0bac4b2fcce07d73f
4
- data.tar.gz: 960be72555edc6d08de8bfb7dd0085cec5a8ae4d89766743c4925829278cf7d2
3
+ metadata.gz: 32f18f140c36b39b7bca19c58d24166cddfaf1207a96463b4e9056717f5d4bc2
4
+ data.tar.gz: 9bc8343e689f3bbb28e31d88717f695de88d276ff9a8209a4cf8a3258758d39b
5
5
  SHA512:
6
- metadata.gz: 724d3939b9780ec47eb616ed580e8e832c8d01192113c7d20321af85237704bd04f7aea9fab1594d4941fd067337d451cedb940c244797702e52a27e87b357de
7
- data.tar.gz: d1f469073ca74df4352dad644938894a2260eef5f8a3980c26c5fa01b04c49569eff108294bcef1ae33bbdb6a9788e8b5423eef66ebad3ad60c5a49f561dcd4b
6
+ metadata.gz: ec713d378bff4ea14fb1abb60469a3306bb57195b1eaace499830e7f70714f5d8119b0e45377970615bb633184ca9a2cda883f3b65374b0a39702cb653c1015c
7
+ data.tar.gz: b63cb0138dc8117ce84f19b59d074854cb74b5220551f6097b5050ccb1794c288d0f7e60ecec06228a9918c78e70cbac7916c0eda8d0cf18996a42adc85d1815
data/README.md CHANGED
@@ -114,16 +114,24 @@ See [developer-facing instructions for enabling translation](https://github.com/
114
114
  - [Blacklight Development Google group](https://groups.google.com/forum/#!forum/blacklight-development)
115
115
  - [Spotlight Community Group](https://groups.google.com/forum/#!forum/spotlight-community) (equivalent to #spotlight-service)
116
116
 
117
-
118
- ## Building the javascript
119
- The javascript is built by npm from sources in `app/javascript` into a bundle
117
+ ## Updating the JavaScript bundle
118
+ The JavaScript is built by npm from sources in `app/javascript` into a bundle
120
119
  in `app/assets/javascripts/spotlight/spotlight.js`. This file should not be edited
121
- by hand as any changes would be overwritten. When any of the javascript
120
+ by hand as any changes would be overwritten. When any of the JavaScript
122
121
  components in the gem are changed, this bundle should be rebuilt with the
123
122
  following steps:
124
123
  1. [Install npm](https://www.npmjs.com/get-npm)
125
- 2. run `npm install` to download dependencies
126
- 3. make sure that the version in `package.json` matches your intended release version
127
- 4. commit the new `package-lock.json` that reflects the desired version number
128
- 6. run `npm run prepare` to build the bundle
129
- 6. run `npm publish` to push the javascript package to https://npmjs.org/package/spotlight-frontend
124
+ 2. Run `npm install` to download dependencies
125
+ 3. Run `npm run prepare` to build the bundle
126
+ 4. If you are releasing a new version of the gem, follow the release instructions below.
127
+
128
+ ## Releasing a new version and publishing the JavaScript
129
+ You only need to update `package.json` and prepare/publish the JavaScript package for npm if there are changes to the JavaScript.
130
+ 1. Edit `version.rb` and `package.json` to set the new version
131
+ 2. Run `npm run prepare` to build the JavaScript bundle
132
+ 3. Run `npm i --package-lock-only` to update the version in `package-lock.json`
133
+ 4. Commit the changes e.g. `git commit -am "Bump version to X.X.X"`
134
+ 5. Push the release to rubygems and GitHub: `bundle exec rake release`
135
+ 6. Run `npm publish` to push the JavaScript package to https://npmjs.org/package/spotlight-frontend
136
+
137
+ See "Updating the JavaScript bundle" above for more details.
data/Rakefile CHANGED
@@ -78,10 +78,10 @@ namespace :spotlight do
78
78
 
79
79
  Dir.mktmpdir do |dir|
80
80
  Dir.chdir(dir) do
81
- Bundler.with_clean_env do
81
+ Bundler.with_unbundled_env do
82
82
  version = "_#{Gem.loaded_specs['rails'].version}_" if Gem.loaded_specs['rails']
83
83
 
84
- Bundler.with_clean_env do
84
+ Bundler.with_unbundled_env do
85
85
  IO.popen({ 'SPOTLIGHT_GEM' => File.dirname(__FILE__) },
86
86
  ['rails', version, 'new', 'internal', '--skip-spring', '-m', template_path] +
87
87
  [err: %i[child out]]) do |io|
@@ -93,7 +93,7 @@ namespace :spotlight do
93
93
  end
94
94
  end
95
95
 
96
- Bundler.with_clean_env do
96
+ Bundler.with_unbundled_env do
97
97
  Dir.chdir('internal') do
98
98
  APP_ROOT = Dir.pwd
99
99
  SolrWrapper.wrap(port: '8983') do |solr|
@@ -809,102 +809,6 @@ class UserIndex {
809
809
 
810
810
  })(window.jQuery || window.Zepto, window, document);
811
811
 
812
- /*
813
- https://gist.github.com/pjambet/3710461
814
- */
815
- var LATIN_MAP = {
816
- 'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE', 'Ç':
817
- 'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I', 'Î': 'I',
818
- 'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O', 'Õ': 'O', 'Ö':
819
- 'O', 'Ő': 'O', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U', 'Ü': 'U', 'Ű': 'U',
820
- 'Ý': 'Y', 'Þ': 'TH', 'ß': 'ss', 'à':'a', 'á':'a', 'â': 'a', 'ã': 'a', 'ä':
821
- 'a', 'å': 'a', 'æ': 'ae', 'ç': 'c', 'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e',
822
- 'ì': 'i', 'í': 'i', 'î': 'i', 'ï': 'i', 'ð': 'd', 'ñ': 'n', 'ò': 'o', 'ó':
823
- 'o', 'ô': 'o', 'õ': 'o', 'ö': 'o', 'ő': 'o', 'ø': 'o', 'ù': 'u', 'ú': 'u',
824
- 'û': 'u', 'ü': 'u', 'ű': 'u', 'ý': 'y', 'þ': 'th', 'ÿ': 'y'
825
- };
826
- var LATIN_SYMBOLS_MAP = {
827
- '©':'(c)'
828
- };
829
- var GREEK_MAP = {
830
- 'α':'a', 'β':'b', 'γ':'g', 'δ':'d', 'ε':'e', 'ζ':'z', 'η':'h', 'θ':'8',
831
- 'ι':'i', 'κ':'k', 'λ':'l', 'μ':'m', 'ν':'n', 'ξ':'3', 'ο':'o', 'π':'p',
832
- 'ρ':'r', 'σ':'s', 'τ':'t', 'υ':'y', 'φ':'f', 'χ':'x', 'ψ':'ps', 'ω':'w',
833
- 'ά':'a', 'έ':'e', 'ί':'i', 'ό':'o', 'ύ':'y', 'ή':'h', 'ώ':'w', 'ς':'s',
834
- 'ϊ':'i', 'ΰ':'y', 'ϋ':'y', 'ΐ':'i',
835
- 'Α':'A', 'Β':'B', 'Γ':'G', 'Δ':'D', 'Ε':'E', 'Ζ':'Z', 'Η':'H', 'Θ':'8',
836
- 'Ι':'I', 'Κ':'K', 'Λ':'L', 'Μ':'M', 'Ν':'N', 'Ξ':'3', 'Ο':'O', 'Π':'P',
837
- 'Ρ':'R', 'Σ':'S', 'Τ':'T', 'Υ':'Y', 'Φ':'F', 'Χ':'X', 'Ψ':'PS', 'Ω':'W',
838
- 'Ά':'A', 'Έ':'E', 'Ί':'I', 'Ό':'O', 'Ύ':'Y', 'Ή':'H', 'Ώ':'W', 'Ϊ':'I',
839
- 'Ϋ':'Y'
840
- };
841
- var TURKISH_MAP = {
842
- 'ş':'s', 'Ş':'S', 'ı':'i', 'İ':'I', 'ç':'c', 'Ç':'C', 'ü':'u', 'Ü':'U',
843
- 'ö':'o', 'Ö':'O', 'ğ':'g', 'Ğ':'G'
844
- };
845
- var RUSSIAN_MAP = {
846
- 'а':'a', 'б':'b', 'в':'v', 'г':'g', 'д':'d', 'е':'e', 'ё':'yo', 'ж':'zh',
847
- 'з':'z', 'и':'i', 'й':'j', 'к':'k', 'л':'l', 'м':'m', 'н':'n', 'о':'o',
848
- 'п':'p', 'р':'r', 'с':'s', 'т':'t', 'у':'u', 'ф':'f', 'х':'h', 'ц':'c',
849
- 'ч':'ch', 'ш':'sh', 'щ':'sh', 'ъ':'', 'ы':'y', 'ь':'', 'э':'e', 'ю':'yu',
850
- 'я':'ya',
851
- 'А':'A', 'Б':'B', 'В':'V', 'Г':'G', 'Д':'D', 'Е':'E', 'Ё':'Yo', 'Ж':'Zh',
852
- 'З':'Z', 'И':'I', 'Й':'J', 'К':'K', 'Л':'L', 'М':'M', 'Н':'N', 'О':'O',
853
- 'П':'P', 'Р':'R', 'С':'S', 'Т':'T', 'У':'U', 'Ф':'F', 'Х':'H', 'Ц':'C',
854
- 'Ч':'Ch', 'Ш':'Sh', 'Щ':'Sh', 'Ъ':'', 'Ы':'Y', 'Ь':'', 'Э':'E', 'Ю':'Yu',
855
- 'Я':'Ya'
856
- };
857
- var UKRAINIAN_MAP = {
858
- 'Є':'Ye', 'І':'I', 'Ї':'Yi', 'Ґ':'G', 'є':'ye', 'і':'i', 'ї':'yi', 'ґ':'g'
859
- };
860
- var CZECH_MAP = {
861
- 'č':'c', 'ď':'d', 'ě':'e', 'ň': 'n', 'ř':'r', 'š':'s', 'ť':'t', 'ů':'u',
862
- 'ž':'z', 'Č':'C', 'Ď':'D', 'Ě':'E', 'Ň': 'N', 'Ř':'R', 'Š':'S', 'Ť':'T',
863
- 'Ů':'U', 'Ž':'Z'
864
- };
865
-
866
- var POLISH_MAP = {
867
- 'ą':'a', 'ć':'c', 'ę':'e', 'ł':'l', 'ń':'n', 'ó':'o', 'ś':'s', 'ź':'z',
868
- 'ż':'z', 'Ą':'A', 'Ć':'C', 'Ę':'e', 'Ł':'L', 'Ń':'N', 'Ó':'o', 'Ś':'S',
869
- 'Ź':'Z', 'Ż':'Z'
870
- };
871
-
872
- var LATVIAN_MAP = {
873
- 'ā':'a', 'č':'c', 'ē':'e', 'ģ':'g', 'ī':'i', 'ķ':'k', 'ļ':'l', 'ņ':'n',
874
- 'š':'s', 'ū':'u', 'ž':'z', 'Ā':'A', 'Č':'C', 'Ē':'E', 'Ģ':'G', 'Ī':'i',
875
- 'Ķ':'k', 'Ļ':'L', 'Ņ':'N', 'Š':'S', 'Ū':'u', 'Ž':'Z'
876
- };
877
-
878
- var ALL_DOWNCODE_MAPS=new Array();
879
- ALL_DOWNCODE_MAPS[0]=LATIN_MAP;
880
- ALL_DOWNCODE_MAPS[1]=LATIN_SYMBOLS_MAP;
881
- ALL_DOWNCODE_MAPS[2]=GREEK_MAP;
882
- ALL_DOWNCODE_MAPS[3]=TURKISH_MAP;
883
- ALL_DOWNCODE_MAPS[4]=RUSSIAN_MAP;
884
- ALL_DOWNCODE_MAPS[5]=UKRAINIAN_MAP;
885
- ALL_DOWNCODE_MAPS[6]=CZECH_MAP;
886
- ALL_DOWNCODE_MAPS[7]=POLISH_MAP;
887
- ALL_DOWNCODE_MAPS[8]=LATVIAN_MAP;
888
-
889
- var Downcoder = new Object();
890
- Downcoder.Initialize = function()
891
- {
892
- if (Downcoder.map) // already made
893
- return ;
894
- Downcoder.map ={};
895
- Downcoder.chars = '' ;
896
- for(var i in ALL_DOWNCODE_MAPS)
897
- {
898
- var lookup = ALL_DOWNCODE_MAPS[i];
899
- for (var c in lookup)
900
- {
901
- Downcoder.map[c] = lookup[c] ;
902
- Downcoder.chars += c ;
903
- }
904
- }
905
- Downcoder.regex = new RegExp('[' + Downcoder.chars + ']|[^' + Downcoder.chars + ']+','g') ;
906
- };
907
-
908
812
  /* From https://github.com/TimSchlechter/bootstrap-tagsinput/blob/2661784c2c281d3a69b93897ff3f39e4ffa5cbd1/dist/bootstrap-tagsinput.js */
909
813
 
910
814
  /* The MIT License (MIT)
@@ -4768,6 +4672,144 @@ class ExhibitTagAutocomplete {
4768
4672
  }
4769
4673
  }
4770
4674
 
4675
+ /*
4676
+ https://gist.github.com/pjambet/3710461
4677
+ */
4678
+ var LATIN_MAP = {
4679
+ 'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE', 'Ç':
4680
+ 'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I', 'Î': 'I',
4681
+ 'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O', 'Õ': 'O', 'Ö':
4682
+ 'O', 'Ő': 'O', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U', 'Ü': 'U', 'Ű': 'U',
4683
+ 'Ý': 'Y', 'Þ': 'TH', 'ß': 'ss', 'à':'a', 'á':'a', 'â': 'a', 'ã': 'a', 'ä':
4684
+ 'a', 'å': 'a', 'æ': 'ae', 'ç': 'c', 'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e',
4685
+ 'ì': 'i', 'í': 'i', 'î': 'i', 'ï': 'i', 'ð': 'd', 'ñ': 'n', 'ò': 'o', 'ó':
4686
+ 'o', 'ô': 'o', 'õ': 'o', 'ö': 'o', 'ő': 'o', 'ø': 'o', 'ù': 'u', 'ú': 'u',
4687
+ 'û': 'u', 'ü': 'u', 'ű': 'u', 'ý': 'y', 'þ': 'th', 'ÿ': 'y'
4688
+ };
4689
+ var LATIN_SYMBOLS_MAP = {
4690
+ '©':'(c)'
4691
+ };
4692
+ var GREEK_MAP = {
4693
+ 'α':'a', 'β':'b', 'γ':'g', 'δ':'d', 'ε':'e', 'ζ':'z', 'η':'h', 'θ':'8',
4694
+ 'ι':'i', 'κ':'k', 'λ':'l', 'μ':'m', 'ν':'n', 'ξ':'3', 'ο':'o', 'π':'p',
4695
+ 'ρ':'r', 'σ':'s', 'τ':'t', 'υ':'y', 'φ':'f', 'χ':'x', 'ψ':'ps', 'ω':'w',
4696
+ 'ά':'a', 'έ':'e', 'ί':'i', 'ό':'o', 'ύ':'y', 'ή':'h', 'ώ':'w', 'ς':'s',
4697
+ 'ϊ':'i', 'ΰ':'y', 'ϋ':'y', 'ΐ':'i',
4698
+ 'Α':'A', 'Β':'B', 'Γ':'G', 'Δ':'D', 'Ε':'E', 'Ζ':'Z', 'Η':'H', 'Θ':'8',
4699
+ 'Ι':'I', 'Κ':'K', 'Λ':'L', 'Μ':'M', 'Ν':'N', 'Ξ':'3', 'Ο':'O', 'Π':'P',
4700
+ 'Ρ':'R', 'Σ':'S', 'Τ':'T', 'Υ':'Y', 'Φ':'F', 'Χ':'X', 'Ψ':'PS', 'Ω':'W',
4701
+ 'Ά':'A', 'Έ':'E', 'Ί':'I', 'Ό':'O', 'Ύ':'Y', 'Ή':'H', 'Ώ':'W', 'Ϊ':'I',
4702
+ 'Ϋ':'Y'
4703
+ };
4704
+ var TURKISH_MAP = {
4705
+ 'ş':'s', 'Ş':'S', 'ı':'i', 'İ':'I', 'ç':'c', 'Ç':'C', 'ü':'u', 'Ü':'U',
4706
+ 'ö':'o', 'Ö':'O', 'ğ':'g', 'Ğ':'G'
4707
+ };
4708
+ var RUSSIAN_MAP = {
4709
+ 'а':'a', 'б':'b', 'в':'v', 'г':'g', 'д':'d', 'е':'e', 'ё':'yo', 'ж':'zh',
4710
+ 'з':'z', 'и':'i', 'й':'j', 'к':'k', 'л':'l', 'м':'m', 'н':'n', 'о':'o',
4711
+ 'п':'p', 'р':'r', 'с':'s', 'т':'t', 'у':'u', 'ф':'f', 'х':'h', 'ц':'c',
4712
+ 'ч':'ch', 'ш':'sh', 'щ':'sh', 'ъ':'', 'ы':'y', 'ь':'', 'э':'e', 'ю':'yu',
4713
+ 'я':'ya',
4714
+ 'А':'A', 'Б':'B', 'В':'V', 'Г':'G', 'Д':'D', 'Е':'E', 'Ё':'Yo', 'Ж':'Zh',
4715
+ 'З':'Z', 'И':'I', 'Й':'J', 'К':'K', 'Л':'L', 'М':'M', 'Н':'N', 'О':'O',
4716
+ 'П':'P', 'Р':'R', 'С':'S', 'Т':'T', 'У':'U', 'Ф':'F', 'Х':'H', 'Ц':'C',
4717
+ 'Ч':'Ch', 'Ш':'Sh', 'Щ':'Sh', 'Ъ':'', 'Ы':'Y', 'Ь':'', 'Э':'E', 'Ю':'Yu',
4718
+ 'Я':'Ya'
4719
+ };
4720
+ var UKRAINIAN_MAP = {
4721
+ 'Є':'Ye', 'І':'I', 'Ї':'Yi', 'Ґ':'G', 'є':'ye', 'і':'i', 'ї':'yi', 'ґ':'g'
4722
+ };
4723
+ var CZECH_MAP = {
4724
+ 'č':'c', 'ď':'d', 'ě':'e', 'ň': 'n', 'ř':'r', 'š':'s', 'ť':'t', 'ů':'u',
4725
+ 'ž':'z', 'Č':'C', 'Ď':'D', 'Ě':'E', 'Ň': 'N', 'Ř':'R', 'Š':'S', 'Ť':'T',
4726
+ 'Ů':'U', 'Ž':'Z'
4727
+ };
4728
+
4729
+ var POLISH_MAP = {
4730
+ 'ą':'a', 'ć':'c', 'ę':'e', 'ł':'l', 'ń':'n', 'ó':'o', 'ś':'s', 'ź':'z',
4731
+ 'ż':'z', 'Ą':'A', 'Ć':'C', 'Ę':'e', 'Ł':'L', 'Ń':'N', 'Ó':'o', 'Ś':'S',
4732
+ 'Ź':'Z', 'Ż':'Z'
4733
+ };
4734
+
4735
+ var LATVIAN_MAP = {
4736
+ 'ā':'a', 'č':'c', 'ē':'e', 'ģ':'g', 'ī':'i', 'ķ':'k', 'ļ':'l', 'ņ':'n',
4737
+ 'š':'s', 'ū':'u', 'ž':'z', 'Ā':'A', 'Č':'C', 'Ē':'E', 'Ģ':'G', 'Ī':'i',
4738
+ 'Ķ':'k', 'Ļ':'L', 'Ņ':'N', 'Š':'S', 'Ū':'u', 'Ž':'Z'
4739
+ };
4740
+
4741
+ var ALL_DOWNCODE_MAPS=new Array();
4742
+ ALL_DOWNCODE_MAPS[0]=LATIN_MAP;
4743
+ ALL_DOWNCODE_MAPS[1]=LATIN_SYMBOLS_MAP;
4744
+ ALL_DOWNCODE_MAPS[2]=GREEK_MAP;
4745
+ ALL_DOWNCODE_MAPS[3]=TURKISH_MAP;
4746
+ ALL_DOWNCODE_MAPS[4]=RUSSIAN_MAP;
4747
+ ALL_DOWNCODE_MAPS[5]=UKRAINIAN_MAP;
4748
+ ALL_DOWNCODE_MAPS[6]=CZECH_MAP;
4749
+ ALL_DOWNCODE_MAPS[7]=POLISH_MAP;
4750
+ ALL_DOWNCODE_MAPS[8]=LATVIAN_MAP;
4751
+
4752
+ var Downcoder = new Object();
4753
+ Downcoder.Initialize = function()
4754
+ {
4755
+ if (Downcoder.map) // already made
4756
+ return ;
4757
+ Downcoder.map ={};
4758
+ Downcoder.chars = '' ;
4759
+ for(var i in ALL_DOWNCODE_MAPS)
4760
+ {
4761
+ var lookup = ALL_DOWNCODE_MAPS[i];
4762
+ for (var c in lookup)
4763
+ {
4764
+ Downcoder.map[c] = lookup[c] ;
4765
+ Downcoder.chars += c ;
4766
+ }
4767
+ }
4768
+ Downcoder.regex = new RegExp('[' + Downcoder.chars + ']|[^' + Downcoder.chars + ']+','g') ;
4769
+ };
4770
+
4771
+ const downcode = function( slug )
4772
+ {
4773
+ Downcoder.Initialize() ;
4774
+ var downcoded ="";
4775
+ var pieces = slug.match(Downcoder.regex);
4776
+ if(pieces)
4777
+ {
4778
+ for (var i = 0 ; i < pieces.length ; i++)
4779
+ {
4780
+ if (pieces[i].length == 1)
4781
+ {
4782
+ var mapped = Downcoder.map[pieces[i]] ;
4783
+ if (mapped != null)
4784
+ {
4785
+ downcoded+=mapped;
4786
+ continue ;
4787
+ }
4788
+ }
4789
+ downcoded+=pieces[i];
4790
+ }
4791
+ }
4792
+ else
4793
+ {
4794
+ downcoded = slug;
4795
+ }
4796
+ return downcoded;
4797
+ };
4798
+
4799
+
4800
+ function URLify(s, num_chars) {
4801
+ // changes, e.g., "Petty theft" to "petty_theft"
4802
+ // remove all these words from the string before urlifying
4803
+ s = downcode(s);
4804
+ //
4805
+ // if downcode doesn't hit, the char will be stripped here
4806
+ s = s.replace(/[^-\w\s]/g, ' '); // remove unneeded chars
4807
+ s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces
4808
+ s = s.replace(/[-\s]+/g, '-'); // convert spaces to hyphens
4809
+ s = s.toLowerCase(); // convert to lowercase
4810
+ return s.substring(0, num_chars);// trim to first num_chars chars
4811
+ }
4812
+
4771
4813
  class Exhibits {
4772
4814
  connect() {
4773
4815
  // auto-fill the exhibit slug on the new exhibit form
@@ -4828,7 +4870,7 @@ class Exhibits {
4828
4870
  }
4829
4871
  }
4830
4872
 
4831
- (function($, undefined$1) {
4873
+ (function($, _) {
4832
4874
 
4833
4875
  /*
4834
4876
  * SerializedForm is built as a singleton jQuery plugin. It needs to be able to
@@ -4996,7 +5038,7 @@ class Locks {
4996
5038
  $('li', thumbList).each(function(){
4997
5039
  var thisThumb = $(this),
4998
5040
  image = $('img', thisThumb),
4999
- totalWidth = width += thisThumb.width();
5041
+ totalWidth = width += thisThumb.width(),
5000
5042
  position = (thumbList.position().left + totalWidth) - thisThumb.width();
5001
5043
 
5002
5044
  if(position >= 0 && position < viewportWidth) {
@@ -5289,7 +5331,7 @@ class ReadonlyCheckbox {
5289
5331
  addAutocompleteBehavior($(this));
5290
5332
  });
5291
5333
 
5292
- function addAutocompleteBehavior( typeAheadInput, settings ) {
5334
+ function addAutocompleteBehavior( typeAheadInput, _ ) {
5293
5335
  var settings = $.extend({
5294
5336
  displayKey: 'title',
5295
5337
  minLength: 0,
@@ -5414,7 +5456,7 @@ const Module = (function() {
5414
5456
  var children = data[i]['children'];
5415
5457
  for(var child in children){
5416
5458
  var id = children[child]['id'];
5417
- child_node = findNode(id, container);
5459
+ var child_node = findNode(id, container);
5418
5460
  setWeight(child_node, weight++);
5419
5461
  setParent(child_node, parent_id);
5420
5462
  }
@@ -6279,8 +6321,8 @@ SirTrevor.Blocks.Oembed = (function(){
6279
6321
  </div>
6280
6322
  <div class="row">
6281
6323
  <div class="form-group mb-3 col-md-8">
6282
- <label for="${this.formId(id_key)}">${i18n.t("blocks:oembed:url")}</label>
6283
- <input name="${id_key}" class="form-control col-md-6" type="text" id="${this.formId(id_key)}" />
6324
+ <label for="${this.formId(this.id_key)}">${i18n.t("blocks:oembed:url")}</label>
6325
+ <input name="${this.id_key}" class="form-control col-md-6" type="text" id="${this.formId(this.id_key)}" />
6284
6326
  </div>
6285
6327
  </div>
6286
6328
  ${this.text_area()}
@@ -6535,8 +6577,6 @@ SirTrevor.Blocks.SolrDocumentsCarousel = (function(){
6535
6577
  auto_play_images_interval_key: "auto-play-images-interval",
6536
6578
  max_height_key: "max-height",
6537
6579
 
6538
- item_options: function() { return "" },
6539
-
6540
6580
  carouselCycleTimesInSeconds: {
6541
6581
  values: [ 3, 5, 8, 12, 20 ],
6542
6582
  selected: 5