geoblacklight_admin 0.0.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -36
  3. data/Rakefile +47 -14
  4. data/app/assets/javascripts/geoblacklight_admin.js +2 -1
  5. data/app/assets/stylesheets/geoblacklight_admin/_core.scss +5 -0
  6. data/app/assets/stylesheets/geoblacklight_admin/modules/_chosen.scss +425 -0
  7. data/app/assets/stylesheets/geoblacklight_admin/modules/_forms.scss +108 -0
  8. data/app/controllers/admin/admin_controller.rb +4 -2
  9. data/app/controllers/admin/advanced_search_controller.rb +123 -103
  10. data/app/controllers/admin/api_controller.rb +123 -108
  11. data/app/controllers/admin/bookmarks_controller.rb +4 -4
  12. data/app/controllers/admin/bulk_actions_controller.rb +9 -4
  13. data/app/controllers/admin/concerns/upload_util.rb +2 -0
  14. data/app/controllers/admin/document_accesses_controller.rb +10 -4
  15. data/app/controllers/admin/document_assets_controller.rb +14 -11
  16. data/app/controllers/admin/document_downloads_controller.rb +12 -10
  17. data/app/controllers/admin/documents_controller.rb +32 -15
  18. data/app/controllers/admin/elements_controller.rb +6 -5
  19. data/app/controllers/admin/form_elements_controller.rb +4 -4
  20. data/app/controllers/admin/ids_controller.rb +107 -87
  21. data/app/controllers/admin/import_documents_controller.rb +1 -1
  22. data/app/controllers/admin/imports_controller.rb +7 -3
  23. data/app/controllers/admin/mappings_controller.rb +6 -4
  24. data/app/controllers/admin/notifications_controller.rb +1 -1
  25. data/app/controllers/admin/search_controller.rb +3 -2
  26. data/app/controllers/admin/users_controller.rb +2 -2
  27. data/app/helpers/form_input_helper.rb +4 -4
  28. data/app/helpers/geoblacklight_admin_helper.rb +1 -1
  29. data/app/indexers/document_indexer.rb +1 -1
  30. data/app/jobs/export_job.rb +9 -6
  31. data/app/jobs/export_json_bulk_job.rb +95 -0
  32. data/app/jobs/export_json_job.rb +14 -12
  33. data/app/models/admin/bookmark.rb +18 -0
  34. data/app/models/api_search_builder.rb +3 -1
  35. data/app/models/blacklight_api.rb +6 -6
  36. data/app/models/blacklight_api_facets.rb +7 -2
  37. data/app/models/blacklight_api_ids.rb +3 -4
  38. data/app/models/bulk_action.rb +1 -1
  39. data/app/models/document/bbox_validator.rb +9 -5
  40. data/app/models/document/date_range_validator.rb +13 -10
  41. data/app/models/document/geom_validator.rb +4 -2
  42. data/app/models/document.rb +15 -7
  43. data/app/models/element.rb +9 -7
  44. data/app/models/form_control.rb +2 -0
  45. data/app/models/form_element.rb +2 -0
  46. data/app/models/form_feature.rb +2 -0
  47. data/app/models/form_group.rb +2 -0
  48. data/app/models/form_header.rb +2 -0
  49. data/app/models/geoblacklight_admin/schema.rb +5 -2
  50. data/app/models/geoblacklight_admin.rb +2 -0
  51. data/app/models/import/csv_duplicates_validator.rb +2 -1
  52. data/app/models/import/csv_header_validator.rb +2 -1
  53. data/app/models/import.rb +4 -7
  54. data/app/models/user.rb +1 -1
  55. data/app/services/export_csv_service.rb +5 -1
  56. data/app/views/admin/advanced_search/facets.json.jbuilder +9 -8
  57. data/app/views/admin/advanced_search/index.json.jbuilder +8 -7
  58. data/app/views/admin/api/_field.json.jbuilder +1 -1
  59. data/app/views/admin/api/fetch.json.jbuilder +8 -7
  60. data/app/views/admin/api/index.json.jbuilder +8 -7
  61. data/app/views/admin/bookmarks/index.html.erb +2 -2
  62. data/app/views/admin/bulk_actions/index.html.erb +3 -3
  63. data/app/views/admin/bulk_actions/show.html.erb +1 -1
  64. data/app/views/admin/document_accesses/_form.html.erb +1 -1
  65. data/app/views/admin/document_accesses/destroy_all.html.erb +3 -3
  66. data/app/views/admin/document_accesses/edit.html.erb +1 -1
  67. data/app/views/admin/document_accesses/import.html.erb +2 -2
  68. data/app/views/admin/document_accesses/index.html.erb +9 -9
  69. data/app/views/admin/document_accesses/new.html.erb +1 -1
  70. data/app/views/admin/document_downloads/_form.html.erb +1 -1
  71. data/app/views/admin/document_downloads/destroy_all.html.erb +2 -2
  72. data/app/views/admin/document_downloads/edit.html.erb +2 -3
  73. data/app/views/admin/document_downloads/import.html.erb +1 -1
  74. data/app/views/admin/document_downloads/index.html.erb +9 -9
  75. data/app/views/admin/document_downloads/new.html.erb +1 -1
  76. data/app/views/admin/document_downloads/show.html.erb +2 -2
  77. data/app/views/admin/documents/_document_bookmark.html.erb +1 -1
  78. data/app/views/admin/documents/_form_nav.html.erb +3 -1
  79. data/app/views/admin/documents/_json_btaa_aardvark.jbuilder +1 -3
  80. data/app/views/admin/documents/_json_file.jbuilder +14 -0
  81. data/app/views/admin/documents/_result_selected_options.html.erb +3 -1
  82. data/app/views/admin/documents/edit.html.erb +1 -1
  83. data/app/views/admin/documents/features/_multiple_download_links.html.erb +2 -2
  84. data/app/views/admin/documents/fetch.json_file.jbuilder +9 -0
  85. data/app/views/admin/documents/index.html.erb +2 -4
  86. data/app/views/admin/documents/index.json_file.jbuilder +9 -0
  87. data/app/views/admin/documents/versions.html.erb +1 -1
  88. data/app/views/admin/elements/_element.json.jbuilder +4 -1
  89. data/app/views/admin/elements/_form.html.erb +1 -1
  90. data/app/views/admin/elements/edit.html.erb +2 -2
  91. data/app/views/admin/elements/index.html.erb +4 -4
  92. data/app/views/admin/elements/index.json.jbuilder +2 -0
  93. data/app/views/admin/elements/new.html.erb +1 -1
  94. data/app/views/admin/elements/show.html.erb +6 -6
  95. data/app/views/admin/elements/show.json.jbuilder +2 -0
  96. data/app/views/admin/form_elements/_form.html.erb +1 -1
  97. data/app/views/admin/form_elements/_form_element.json.jbuilder +2 -0
  98. data/app/views/admin/form_elements/edit.html.erb +2 -2
  99. data/app/views/admin/form_elements/index.html.erb +2 -2
  100. data/app/views/admin/form_elements/index.json.jbuilder +2 -0
  101. data/app/views/admin/form_elements/new.html.erb +1 -1
  102. data/app/views/admin/form_elements/show.html.erb +2 -2
  103. data/app/views/admin/form_elements/show.json.jbuilder +2 -0
  104. data/app/views/admin/ids/fetch.json.jbuilder +8 -7
  105. data/app/views/admin/ids/index.json.jbuilder +3 -2
  106. data/app/views/admin/import_documents/show.html.haml +1 -1
  107. data/app/views/admin/imports/_import.json.jbuilder +2 -1
  108. data/app/views/admin/imports/_show_failed_tab.html.erb +2 -2
  109. data/app/views/admin/imports/_show_success_tab.html.erb +1 -1
  110. data/app/views/admin/imports/edit.html.erb +3 -3
  111. data/app/views/admin/imports/index.html.erb +3 -3
  112. data/app/views/admin/layouts/application.html.erb +4 -4
  113. data/app/views/admin/mappings/_form.html.erb +1 -1
  114. data/app/views/admin/mappings/_mapping.json.jbuilder +2 -1
  115. data/app/views/admin/mappings/edit.html.erb +2 -2
  116. data/app/views/admin/mappings/new.html.erb +1 -1
  117. data/app/views/admin/mappings/show.html.erb +2 -2
  118. data/app/views/admin/notifications/index.html.erb +3 -3
  119. data/app/views/admin/search/index.html.erb +2 -2
  120. data/app/views/admin/shared/_navbar.html.erb +11 -6
  121. data/app/views/admin/shared/_toast.html.erb +1 -1
  122. data/app/views/admin/users/index.html.erb +1 -1
  123. data/app/views/catalog/_show_gbl_admin.html.erb +3 -0
  124. data/config/locales/documents.en.yml +3 -0
  125. data/config/routes.rb +37 -33
  126. data/db/migrate/20230316183001_add_geoblacklight_admin_gem.rb +409 -0
  127. data/db/seeds.rb +7 -6
  128. data/db/seeds_elements.csv +56 -55
  129. data/db/seeds_elements.numbers +0 -0
  130. data/db/seeds_form_elements.csv +65 -64
  131. data/db/seeds_form_elements.numbers +0 -0
  132. data/lib/generators/geoblacklight_admin/config_generator.rb +61 -94
  133. data/lib/generators/geoblacklight_admin/install_generator.rb +3 -12
  134. data/lib/generators/geoblacklight_admin/jobs_generator.rb +3 -2
  135. data/lib/generators/geoblacklight_admin/models_generator.rb +0 -1
  136. data/lib/generators/geoblacklight_admin/templates/_show_sidebar.html.erb +19 -0
  137. data/lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb +1 -1
  138. data/lib/generators/geoblacklight_admin/templates/config/database.yml +9 -5
  139. data/lib/generators/geoblacklight_admin/templates/config/geomg_aardvark_schema.json +12 -6
  140. data/lib/generators/geoblacklight_admin/templates/config/initializers/devise.rb +315 -0
  141. data/lib/generators/geoblacklight_admin/templates/config/initializers/geoblacklight_admin.rb +1 -2
  142. data/lib/generators/geoblacklight_admin/templates/config/initializers/kithe.rb +2 -0
  143. data/lib/generators/geoblacklight_admin/templates/config/initializers/mime_types.rb +15 -0
  144. data/lib/generators/geoblacklight_admin/templates/config/initializers/pagy.rb +152 -68
  145. data/lib/generators/geoblacklight_admin/templates/config/initializers/simple_form.rb +178 -0
  146. data/lib/generators/geoblacklight_admin/templates/config/initializers/simple_form_bootstrap.rb +365 -0
  147. data/lib/generators/geoblacklight_admin/templates/config/settings.yml +293 -0
  148. data/lib/generators/geoblacklight_admin/templates/javascript/controllers/results_controller.js +10 -0
  149. data/lib/generators/geoblacklight_admin/templates/package.json +3 -0
  150. data/lib/generators/geoblacklight_admin/templates/solr/conf/schema.xml +3 -3
  151. data/lib/generators/geoblacklight_admin/views_generator.rb +2 -3
  152. data/lib/geoblacklight_admin/engine.rb +5 -6
  153. data/lib/geoblacklight_admin/version.rb +1 -1
  154. data/lib/geoblacklight_admin.rb +1 -1
  155. data/lib/tasks/geoblacklight_admin.rake +15 -11
  156. metadata +101 -63
  157. data/.editorconfig +0 -18
  158. data/.gitignore +0 -75
  159. data/.standard.yml +0 -4
  160. data/Gemfile +0 -59
  161. data/LICENSE +0 -21
  162. data/app/assets/images/.keep +0 -0
  163. data/app/controllers/admin/concerns/.keep +0 -0
  164. data/app/models/bookmark.rb +0 -17
  165. data/app/models/concerns/.keep +0 -0
  166. data/db/migrate/20230316183001_add_geoblacklight_admin.rb +0 -399
  167. data/geoblacklight_admin.gemspec +0 -67
  168. data/lib/generators/geoblacklight_admin/example_docs_generator.rb +0 -18
  169. data/lib/generators/geoblacklight_admin/templates/.env.development.example +0 -28
  170. data/lib/generators/geoblacklight_admin/templates/.solr_wrapper.yml +0 -7
  171. data/lib/generators/geoblacklight_admin/templates/solr/snapshots/.keep +0 -0
  172. data/lib/tasks/.keep +0 -0
  173. data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -35
  174. data/template.rb +0 -16
  175. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/confirmations/new.html.erb +0 -0
  176. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/invitations/edit.html.erb +0 -0
  177. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/invitations/new.html.erb +0 -0
  178. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/mailer/invitation_instructions.html.erb +0 -0
  179. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/mailer/invitation_instructions.text.erb +0 -0
  180. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/passwords/edit.html.erb +0 -0
  181. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/passwords/new.html.erb +0 -0
  182. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/registrations/edit.html.erb +0 -0
  183. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/registrations/new.html.erb +0 -0
  184. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/sessions/new.html.erb +0 -0
  185. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/shared/_links.html.erb +0 -0
  186. /data/{app/views/admin → lib/generators/geoblacklight_admin/templates}/devise/unlocks/new.html.erb +0 -0
@@ -18,9 +18,9 @@
18
18
  <dynamicField name="*_dtsi" type="pdate" stored="true" indexed="true" multiValued="false"/>
19
19
  <!-- END Kithe -->
20
20
 
21
- <!-- GEOMG -->
21
+ <!-- GBLADMIN -->
22
22
  <field name="geomg_id_s" type="string" stored="true" indexed="true" required="true"/>
23
- <!-- END GEOMG -->
23
+ <!-- END GBLADMIN -->
24
24
 
25
25
  <!-- GeoBlacklight -->
26
26
  <!-- Spatial Field Type: Represents the exent of the resource and powers map search functionality.
@@ -224,6 +224,6 @@
224
224
  <!-- for bbox value -->
225
225
  <copyField source="dcat_bbox" dest="solr_bboxtype"/>
226
226
 
227
- <!-- for GEOMG reporting -->
227
+ <!-- for GBLADMIN reporting -->
228
228
  <copyField source="date_created_dtsi" dest="date_created_drsim"/>
229
229
  </schema>
@@ -8,12 +8,11 @@ module GeoblacklightAdmin
8
8
 
9
9
  desc <<-DESCRIPTION
10
10
  This generator makes the following changes to your application:
11
- 1. Creates an app/views/catalog directory
11
+ 1. Creates an app/views/devise directory
12
12
  DESCRIPTION
13
13
 
14
14
  def create_views
15
- # @TODO
15
+ directory "devise", "app/views/devise", force: true
16
16
  end
17
-
18
17
  end
19
18
  end
@@ -3,17 +3,16 @@
3
3
  module GeoblacklightAdmin
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace GeoblacklightAdmin
6
-
7
6
 
8
7
  # GeoblacklightAdminHelper is needed by all helpers, so we inject it
9
8
  # into action view base here.
10
9
  initializer "geoblacklight_admin.helpers" do
11
10
  config.after_initialize do
12
- ActionView::Base.send :include, GeoblacklightAdminHelper
13
- ActionView::Base.send :include, BulkActionsHelper
14
- ActionView::Base.send :include, DocumentHelper
15
- ActionView::Base.send :include, FormInputHelper
16
- ActionView::Base.send :include, MappingsHelper
11
+ ActionView::Base.include GeoblacklightAdminHelper
12
+ ActionView::Base.include BulkActionsHelper
13
+ ActionView::Base.include DocumentHelper
14
+ ActionView::Base.include FormInputHelper
15
+ ActionView::Base.include MappingsHelper
17
16
  end
18
17
  end
19
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightAdmin
4
- VERSION = "0.0.1"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/dependencies"
3
4
  require "geoblacklight_admin/engine"
4
5
 
5
6
  module GeoblacklightAdmin
6
- # Your code goes here...
7
7
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  task stats: :environment do
4
- Rake::Task["geomg:stats"].invoke
4
+ Rake::Task["gbl_admin:stats"].invoke
5
5
  end
6
6
 
7
7
  namespace :gbl_admin do
@@ -9,7 +9,10 @@ namespace :gbl_admin do
9
9
  task :server, [:rails_server_args] do |_t, args|
10
10
  require "solr_wrapper"
11
11
  SolrWrapper.wrap(port: "8983") do |solr|
12
- solr.with_collection(name: "blacklight-core", dir: File.join(File.expand_path(Rails.root, File.dirname(__FILE__)), "solr", "conf")) do
12
+ solr.with_collection(name: "blacklight-core",
13
+ dir: File.join(
14
+ File.expand_path(Rails.root, File.dirname(__FILE__)), "solr", "conf"
15
+ )) do
13
16
  puts "\nSolr server running: http://localhost:#{solr.port}/solr/#/blacklight-core"
14
17
  puts "\n^C to stop"
15
18
  puts " "
@@ -24,8 +27,6 @@ namespace :gbl_admin do
24
27
  end
25
28
  end
26
29
 
27
-
28
-
29
30
  desc "Run test suite"
30
31
  task ci: :environment do
31
32
  Rails.env = "test"
@@ -42,7 +43,7 @@ task ci: :environment do
42
43
  exit!(1) unless success
43
44
  end
44
45
 
45
- namespace :geomg do
46
+ namespace :gbl_admin do
46
47
  desc "Set everything to published state"
47
48
  task publish_all: :environment do
48
49
  Document.all.each do |doc|
@@ -67,7 +68,7 @@ namespace :geomg do
67
68
  CodeStatistics::TEST_TYPES << "Indexers Tests"
68
69
  end
69
70
 
70
- desc "Run Solr and GEOMG for development"
71
+ desc "Run Solr and GBLADMIN for development"
71
72
  task server: :environment do
72
73
  require "solr_wrapper"
73
74
 
@@ -79,8 +80,10 @@ namespace :geomg do
79
80
  puts "Solr running at http://localhost:8983/solr/blacklight-core/, ^C to exit"
80
81
  puts " "
81
82
  begin
82
- # Rake::Task['geomg:solr:restore'].invoke
83
- system "bundle exec rails s --binding=#{ENV.fetch("GEOMG_SERVER_BIND_INTERFACE", "0.0.0.0")} --port=#{ENV.fetch("GEOMG_SERVER_PORT", "3000")}"
83
+ # Rake::Task['gbl_admin:solr:restore'].invoke
84
+ system "bundle exec rails s --binding=#{ENV.fetch("GEOMG_SERVER_BIND_INTERFACE",
85
+ "0.0.0.0")} --port=#{ENV.fetch("GEOMG_SERVER_PORT",
86
+ "3000")}"
84
87
  sleep
85
88
  rescue Interrupt
86
89
  puts "\nShutting down..."
@@ -100,7 +103,7 @@ namespace :geomg do
100
103
  puts "Solr running at http://localhost:8983/solr/#/blacklight-core/, ^C to exit"
101
104
  begin
102
105
  Rake::Task["db:fixtures:load"].invoke
103
- Rake::Task["geomg:solr:reindex"].invoke
106
+ # Rake::Task["gbl_admin:solr:reindex"].invoke
104
107
  sleep
105
108
  rescue Interrupt
106
109
  puts "\nShutting down..."
@@ -108,7 +111,7 @@ namespace :geomg do
108
111
  end
109
112
  end
110
113
  else
111
- system("rake geomg:test RAILS_ENV=test")
114
+ system("rake gbl_admin:test RAILS_ENV=test")
112
115
  end
113
116
  end
114
117
 
@@ -200,7 +203,8 @@ namespace :geomg do
200
203
 
201
204
  snapshot = Dir.glob(Rails.root.join("solr/snapshots/snapshot.*").to_s).last
202
205
 
203
- FileUtils.cp_r(snapshot, Rails.root.join("tmp/geoportal-core-development/server/solr/geoportal-core-development/data").to_s)
206
+ FileUtils.cp_r(snapshot,
207
+ Rails.root.join("tmp/geoportal-core-development/server/solr/geoportal-core-development/data").to_s)
204
208
 
205
209
  res = Faraday.get "#{solr}/#{replication}"
206
210
  puts res.body
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -39,35 +39,49 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: bootstrap
42
+ name: blacklight
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
47
+ version: '7.33'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.0'
54
+ version: '7.33'
55
55
  - !ruby/object:Gem::Dependency
56
- name: cocoon
56
+ name: blacklight_advanced_search
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.2'
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.2'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: config
70
+ name: blacklight_range_limit
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bootstrap
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
@@ -95,75 +109,89 @@ dependencies:
95
109
  - !ruby/object:Gem::Version
96
110
  version: '1.0'
97
111
  - !ruby/object:Gem::Dependency
98
- name: devise
112
+ name: cocoon
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '4.7'
117
+ version: '1.2'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '4.7'
124
+ version: '1.2'
111
125
  - !ruby/object:Gem::Dependency
112
- name: devise-bootstrap-views
126
+ name: config
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '1.0'
131
+ version: '4.0'
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '1.0'
138
+ version: '4.0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: devise_invitable
140
+ name: devise
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '2.0'
145
+ version: '4.7'
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '2.0'
152
+ version: '4.7'
139
153
  - !ruby/object:Gem::Dependency
140
- name: blacklight
154
+ name: devise-bootstrap-views
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - "~>"
144
158
  - !ruby/object:Gem::Version
145
- version: '7.33'
159
+ version: '1.0'
146
160
  type: :runtime
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: '7.33'
166
+ version: '1.0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: blacklight_advanced_search
168
+ name: devise_invitable
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - ">="
171
+ - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: '0'
173
+ version: '2.0'
160
174
  type: :runtime
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - ">="
178
+ - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: '0'
180
+ version: '2.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: dotenv-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.8'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.8'
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: geoblacklight
169
197
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +212,14 @@ dependencies:
184
212
  requirements:
185
213
  - - "~>"
186
214
  - !ruby/object:Gem::Version
187
- version: 5.2.0
215
+ version: '5.2'
188
216
  type: :runtime
189
217
  prerelease: false
190
218
  version_requirements: !ruby/object:Gem::Requirement
191
219
  requirements:
192
220
  - - "~>"
193
221
  - !ruby/object:Gem::Version
194
- version: 5.2.0
222
+ version: '5.2'
195
223
  - !ruby/object:Gem::Dependency
196
224
  name: httparty
197
225
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +296,14 @@ dependencies:
268
296
  requirements:
269
297
  - - "~>"
270
298
  - !ruby/object:Gem::Version
271
- version: '3.8'
299
+ version: '6.0'
272
300
  type: :runtime
273
301
  prerelease: false
274
302
  version_requirements: !ruby/object:Gem::Requirement
275
303
  requirements:
276
304
  - - "~>"
277
305
  - !ruby/object:Gem::Version
278
- version: '3.8'
306
+ version: '6.0'
279
307
  - !ruby/object:Gem::Dependency
280
308
  name: paper_trail
281
309
  requirement: !ruby/object:Gem::Requirement
@@ -660,6 +688,20 @@ dependencies:
660
688
  - - ">="
661
689
  - !ruby/object:Gem::Version
662
690
  version: '0'
691
+ - !ruby/object:Gem::Dependency
692
+ name: web-console
693
+ requirement: !ruby/object:Gem::Requirement
694
+ requirements:
695
+ - - ">="
696
+ - !ruby/object:Gem::Version
697
+ version: '0'
698
+ type: :development
699
+ prerelease: false
700
+ version_requirements: !ruby/object:Gem::Requirement
701
+ requirements:
702
+ - - ">="
703
+ - !ruby/object:Gem::Version
704
+ version: '0'
663
705
  description:
664
706
  email:
665
707
  - ewlarson@gmail.com
@@ -667,14 +709,8 @@ executables: []
667
709
  extensions: []
668
710
  extra_rdoc_files: []
669
711
  files:
670
- - ".editorconfig"
671
- - ".gitignore"
672
- - ".standard.yml"
673
- - Gemfile
674
- - LICENSE
675
712
  - README.md
676
713
  - Rakefile
677
- - app/assets/images/.keep
678
714
  - app/assets/images/aerial_photo.jpg
679
715
  - app/assets/images/archive-solid.svg
680
716
  - app/assets/images/bookmark-regular.svg
@@ -699,6 +735,7 @@ files:
699
735
  - app/assets/stylesheets/geoblacklight_admin/_core.scss
700
736
  - app/assets/stylesheets/geoblacklight_admin/modules/_autocomplete.scss
701
737
  - app/assets/stylesheets/geoblacklight_admin/modules/_blazer.scss
738
+ - app/assets/stylesheets/geoblacklight_admin/modules/_chosen.scss
702
739
  - app/assets/stylesheets/geoblacklight_admin/modules/_code.scss
703
740
  - app/assets/stylesheets/geoblacklight_admin/modules/_datepicker.scss
704
741
  - app/assets/stylesheets/geoblacklight_admin/modules/_elements.scss
@@ -715,7 +752,6 @@ files:
715
752
  - app/controllers/admin/api_controller.rb
716
753
  - app/controllers/admin/bookmarks_controller.rb
717
754
  - app/controllers/admin/bulk_actions_controller.rb
718
- - app/controllers/admin/concerns/.keep
719
755
  - app/controllers/admin/concerns/upload_util.rb
720
756
  - app/controllers/admin/document_accesses_controller.rb
721
757
  - app/controllers/admin/document_assets_controller.rb
@@ -742,24 +778,24 @@ files:
742
778
  - app/jobs/bulk_action_run_document_job.rb
743
779
  - app/jobs/bulk_action_run_job.rb
744
780
  - app/jobs/export_job.rb
781
+ - app/jobs/export_json_bulk_job.rb
745
782
  - app/jobs/export_json_job.rb
746
783
  - app/jobs/import_document_job.rb
747
784
  - app/jobs/import_run_job.rb
748
785
  - app/models/active_storage_attachment.rb
749
786
  - app/models/active_storage_blob.rb
787
+ - app/models/admin/bookmark.rb
750
788
  - app/models/api_search_builder.rb
751
789
  - app/models/application_record.rb
752
790
  - app/models/blacklight_api.rb
753
791
  - app/models/blacklight_api_facets.rb
754
792
  - app/models/blacklight_api_ids.rb
755
- - app/models/bookmark.rb
756
793
  - app/models/bulk_action.rb
757
794
  - app/models/bulk_action_document.rb
758
795
  - app/models/bulk_action_document_state_machine.rb
759
796
  - app/models/bulk_action_document_transition.rb
760
797
  - app/models/bulk_action_state_machine.rb
761
798
  - app/models/bulk_action_transition.rb
762
- - app/models/concerns/.keep
763
799
  - app/models/document.rb
764
800
  - app/models/document/bbox_validator.rb
765
801
  - app/models/document/controlled_lists.rb
@@ -819,18 +855,6 @@ files:
819
855
  - app/views/admin/bulk_actions/new.html.erb
820
856
  - app/views/admin/bulk_actions/show.html.erb
821
857
  - app/views/admin/bulk_actions/show.json.jbuilder
822
- - app/views/admin/devise/confirmations/new.html.erb
823
- - app/views/admin/devise/invitations/edit.html.erb
824
- - app/views/admin/devise/invitations/new.html.erb
825
- - app/views/admin/devise/mailer/invitation_instructions.html.erb
826
- - app/views/admin/devise/mailer/invitation_instructions.text.erb
827
- - app/views/admin/devise/passwords/edit.html.erb
828
- - app/views/admin/devise/passwords/new.html.erb
829
- - app/views/admin/devise/registrations/edit.html.erb
830
- - app/views/admin/devise/registrations/new.html.erb
831
- - app/views/admin/devise/sessions/new.html.erb
832
- - app/views/admin/devise/shared/_links.html.erb
833
- - app/views/admin/devise/unlocks/new.html.erb
834
858
  - app/views/admin/document_accesses/_document_access.json.jbuilder
835
859
  - app/views/admin/document_accesses/_form.html.erb
836
860
  - app/views/admin/document_accesses/destroy_all.html.erb
@@ -863,6 +887,7 @@ files:
863
887
  - app/views/admin/documents/_form_nav.html.erb
864
888
  - app/views/admin/documents/_json_aardvark.jbuilder
865
889
  - app/views/admin/documents/_json_btaa_aardvark.jbuilder
890
+ - app/views/admin/documents/_json_file.jbuilder
866
891
  - app/views/admin/documents/_json_gbl_v1.jbuilder
867
892
  - app/views/admin/documents/_result_facets.html.erb
868
893
  - app/views/admin/documents/_result_pagination.html.erb
@@ -875,10 +900,12 @@ files:
875
900
  - app/views/admin/documents/features/_multiple_download_links.html.erb
876
901
  - app/views/admin/documents/fetch.json_aardvark.jbuilder
877
902
  - app/views/admin/documents/fetch.json_btaa_aardvark.jbuilder
903
+ - app/views/admin/documents/fetch.json_file.jbuilder
878
904
  - app/views/admin/documents/fetch.json_gbl_v1.jbuilder
879
905
  - app/views/admin/documents/index.html.erb
880
906
  - app/views/admin/documents/index.json_aardvark.jbuilder
881
907
  - app/views/admin/documents/index.json_btaa_aardvark.jbuilder
908
+ - app/views/admin/documents/index.json_file.jbuilder
882
909
  - app/views/admin/documents/index.json_gbl_v1.jbuilder
883
910
  - app/views/admin/documents/show.json_aardvark.jbuilder
884
911
  - app/views/admin/documents/show.json_btaa_aardvark.jbuilder
@@ -937,6 +964,7 @@ files:
937
964
  - app/views/admin/shared/_schema_timestamp.html.erb
938
965
  - app/views/admin/shared/_toast.html.erb
939
966
  - app/views/admin/users/index.html.erb
967
+ - app/views/catalog/_show_gbl_admin.html.erb
940
968
  - config/authorities/formats.yml
941
969
  - config/authorities/languages.yml
942
970
  - config/authorities/resource_type.yml
@@ -951,29 +979,43 @@ files:
951
979
  - config/locales/geoblacklight.en.yml
952
980
  - config/locales/simple_form.en.yml
953
981
  - config/routes.rb
954
- - db/migrate/20230316183001_add_geoblacklight_admin.rb
982
+ - db/migrate/20230316183001_add_geoblacklight_admin_gem.rb
955
983
  - db/seeds.rb
956
984
  - db/seeds_elements.csv
957
985
  - db/seeds_elements.numbers
958
986
  - db/seeds_form_elements.csv
959
987
  - db/seeds_form_elements.numbers
960
988
  - db/structure.sql
961
- - geoblacklight_admin.gemspec
962
989
  - lib/generators/geoblacklight_admin/config_generator.rb
963
- - lib/generators/geoblacklight_admin/example_docs_generator.rb
964
990
  - lib/generators/geoblacklight_admin/helpers_generator.rb
965
991
  - lib/generators/geoblacklight_admin/install_generator.rb
966
992
  - lib/generators/geoblacklight_admin/jobs_generator.rb
967
993
  - lib/generators/geoblacklight_admin/models_generator.rb
968
- - lib/generators/geoblacklight_admin/templates/.env.development.example
969
- - lib/generators/geoblacklight_admin/templates/.solr_wrapper.yml
994
+ - lib/generators/geoblacklight_admin/templates/_show_sidebar.html.erb
970
995
  - lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
971
996
  - lib/generators/geoblacklight_admin/templates/config/database.yml
972
997
  - lib/generators/geoblacklight_admin/templates/config/geomg_aardvark_schema.json
998
+ - lib/generators/geoblacklight_admin/templates/config/initializers/devise.rb
973
999
  - lib/generators/geoblacklight_admin/templates/config/initializers/geoblacklight_admin.rb
974
1000
  - lib/generators/geoblacklight_admin/templates/config/initializers/kithe.rb
1001
+ - lib/generators/geoblacklight_admin/templates/config/initializers/mime_types.rb
975
1002
  - lib/generators/geoblacklight_admin/templates/config/initializers/pagy.rb
1003
+ - lib/generators/geoblacklight_admin/templates/config/initializers/simple_form.rb
1004
+ - lib/generators/geoblacklight_admin/templates/config/initializers/simple_form_bootstrap.rb
976
1005
  - lib/generators/geoblacklight_admin/templates/config/initializers/statesman.rb
1006
+ - lib/generators/geoblacklight_admin/templates/config/settings.yml
1007
+ - lib/generators/geoblacklight_admin/templates/devise/confirmations/new.html.erb
1008
+ - lib/generators/geoblacklight_admin/templates/devise/invitations/edit.html.erb
1009
+ - lib/generators/geoblacklight_admin/templates/devise/invitations/new.html.erb
1010
+ - lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.html.erb
1011
+ - lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.text.erb
1012
+ - lib/generators/geoblacklight_admin/templates/devise/passwords/edit.html.erb
1013
+ - lib/generators/geoblacklight_admin/templates/devise/passwords/new.html.erb
1014
+ - lib/generators/geoblacklight_admin/templates/devise/registrations/edit.html.erb
1015
+ - lib/generators/geoblacklight_admin/templates/devise/registrations/new.html.erb
1016
+ - lib/generators/geoblacklight_admin/templates/devise/sessions/new.html.erb
1017
+ - lib/generators/geoblacklight_admin/templates/devise/shared/_links.html.erb
1018
+ - lib/generators/geoblacklight_admin/templates/devise/unlocks/new.html.erb
977
1019
  - lib/generators/geoblacklight_admin/templates/javascript/channels/consumer.js
978
1020
  - lib/generators/geoblacklight_admin/templates/javascript/channels/export_channel.js
979
1021
  - lib/generators/geoblacklight_admin/templates/javascript/channels/index.js
@@ -1002,15 +1044,11 @@ files:
1002
1044
  - lib/generators/geoblacklight_admin/templates/solr/conf/xslt/example_atom.xsl
1003
1045
  - lib/generators/geoblacklight_admin/templates/solr/conf/xslt/example_rss.xsl
1004
1046
  - lib/generators/geoblacklight_admin/templates/solr/conf/xslt/luke.xsl
1005
- - lib/generators/geoblacklight_admin/templates/solr/snapshots/.keep
1006
1047
  - lib/generators/geoblacklight_admin/views_generator.rb
1007
1048
  - lib/geoblacklight_admin.rb
1008
1049
  - lib/geoblacklight_admin/engine.rb
1009
1050
  - lib/geoblacklight_admin/version.rb
1010
- - lib/tasks/.keep
1011
1051
  - lib/tasks/geoblacklight_admin.rake
1012
- - spec/test_app_templates/lib/generators/test_app_generator.rb
1013
- - template.rb
1014
1052
  homepage: https://github.com/geobtaa/geoblacklight_admin
1015
1053
  licenses:
1016
1054
  - MIT
@@ -1030,7 +1068,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1030
1068
  - !ruby/object:Gem::Version
1031
1069
  version: '0'
1032
1070
  requirements: []
1033
- rubygems_version: 3.1.6
1071
+ rubygems_version: 3.3.7
1034
1072
  signing_key:
1035
1073
  specification_version: 4
1036
1074
  summary: Administrative UI for GeoBlacklight. Built on Kithe.
data/.editorconfig DELETED
@@ -1,18 +0,0 @@
1
- # EditorConfig is awesome: http://EditorConfig.org
2
-
3
- # top-most EditorConfig file for the repo
4
- root = true
5
-
6
- # Quasi-universal defaults
7
- [*]
8
- end_of_line = lf
9
- insert_final_newline = true
10
- charset = utf-8
11
-
12
- # Defaults that seem fairly common
13
- indent_style = space
14
- indent_size = 2
15
-
16
- # file-specific overrides
17
- [CODEOWNERS]
18
- indent_size = 8
data/.gitignore DELETED
@@ -1,75 +0,0 @@
1
- *.gem
2
- .bundle/
3
- Gemfile.lock
4
- coverage
5
- .internal_test_app
6
- .ruby-version
7
- .byebug_history
8
-
9
- *.rbc
10
- capybara-*.html
11
- .rspec
12
- /db/*.sqlite3
13
- /db/*.sqlite3-journal
14
- /db/*.sqlite3-[0-9]*
15
- /public/system
16
- /coverage/
17
- /spec/tmp
18
- *.orig
19
- rerun.txt
20
- pickle-email-*.html
21
-
22
- # Ignore all logfiles and tempfiles.
23
- /log/*
24
- /tmp/*
25
- !/log/.keep
26
- !/tmp/.keep
27
-
28
- # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
29
- config/initializers/secret_token.rb
30
- config/master.key
31
-
32
- # Only include if you have production secrets in this file, which is no longer a Rails default
33
- # config/secrets.yml
34
-
35
- # dotenv
36
- # TODO Comment out this rule if environment variables can be committed
37
- .env
38
-
39
- ## Environment normalization:
40
- /.bundle
41
- /vendor/bundle
42
-
43
- # these should all be checked in to normalize the environment:
44
- # Gemfile.lock, .ruby-version, .ruby-gemset
45
-
46
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
47
- .rvmrc
48
-
49
- # if using bower-rails ignore default bower_components path bower.json files
50
- /vendor/assets/bower_components
51
- *.bowerrc
52
- bower.json
53
-
54
- # Ignore pow environment settings
55
- .powenv
56
-
57
- # Ignore Byebug command history file.
58
- .byebug_history
59
-
60
- # Ignore node_modules
61
- node_modules/
62
-
63
- # Ignore precompiled javascript packs
64
- /public/packs
65
- /public/packs-test
66
- /public/assets
67
-
68
- # Ignore yarn files
69
- /yarn-error.log
70
- yarn-debug.log*
71
- .yarn-integrity
72
-
73
- # Ignore uploaded files in development
74
- /storage/*
75
- !/storage/.keep
data/.standard.yml DELETED
@@ -1,4 +0,0 @@
1
- format: progress
2
- ignore:
3
- - 'db/seeds.rb'
4
- - 'db/migrate/**'