geoblacklight_admin 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -11
- data/Rakefile +83 -47
- data/app/assets/javascripts/geoblacklight_admin/chosen.js +1 -0
- data/app/assets/stylesheets/geoblacklight_admin/_core.scss +24 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_nav.scss +0 -5
- data/app/assets/stylesheets/geoblacklight_admin/modules/_tables.scss +1 -1
- data/app/controllers/admin/admin_controller.rb +16 -0
- data/app/controllers/admin/advanced_search_controller.rb +7 -1
- data/app/controllers/admin/assets_controller.rb +47 -32
- data/app/controllers/admin/bookmarks_controller.rb +17 -5
- data/app/controllers/admin/bulk_actions_controller.rb +32 -1
- data/app/controllers/admin/document_accesses_controller.rb +38 -0
- data/app/controllers/admin/document_assets_controller.rb +47 -89
- data/app/controllers/admin/document_distributions_controller.rb +172 -0
- data/app/controllers/admin/documents_controller.rb +43 -57
- data/app/controllers/admin/elements_controller.rb +24 -0
- data/app/controllers/admin/form_elements_controller.rb +33 -0
- data/app/controllers/admin/ids_controller.rb +6 -0
- data/app/controllers/admin/import_documents_controller.rb +11 -1
- data/app/controllers/admin/imports_controller.rb +34 -4
- data/app/controllers/admin/mappings_controller.rb +15 -0
- data/app/controllers/admin/notifications_controller.rb +27 -0
- data/app/controllers/admin/reference_types_controller.rb +106 -0
- data/app/controllers/admin/search_controller.rb +7 -0
- data/app/controllers/admin/users_controller.rb +10 -0
- data/app/helpers/asset_helper.rb +6 -0
- data/app/helpers/bulk_actions_helper.rb +10 -1
- data/app/helpers/document_helper.rb +36 -0
- data/app/helpers/geoblacklight_admin_helper.rb +88 -8
- data/app/helpers/mappings_helper.rb +26 -0
- data/app/indexers/document_indexer.rb +22 -2
- data/app/javascript/channels/consumer.js +6 -0
- data/app/javascript/channels/export_channel.js +30 -0
- data/app/javascript/channels/index.js +3 -0
- data/app/javascript/controllers/results_controller.js +14 -0
- data/app/javascript/index.js +8 -2
- data/app/jobs/bulk_action_revert_document_job.rb +4 -12
- data/app/jobs/bulk_action_run_document_job.rb +2 -10
- data/app/jobs/export_job.rb +35 -8
- data/app/jobs/geoblacklight_admin/delete_thumbnail_job.rb +19 -0
- data/app/jobs/geoblacklight_admin/remove_parent_dct_references_uri_job.rb +16 -0
- data/app/jobs/geoblacklight_admin/set_parent_dct_references_uri_job.rb +17 -0
- data/app/jobs/geoblacklight_admin/store_image_job.rb +22 -0
- data/app/jobs/import_document_job.rb +1 -4
- data/app/jobs/import_run_job.rb +1 -1
- data/app/models/admin/bookmark.rb +1 -1
- data/app/models/asset.rb +20 -0
- data/app/models/bulk_action.rb +2 -1
- data/app/models/bulk_actions/change_publication_state.rb +0 -25
- data/app/models/bulk_actions/delete_thumbnails.rb +6 -0
- data/app/models/bulk_actions/draft_document.rb +6 -0
- data/app/models/bulk_actions/harvest_thumbnails.rb +6 -0
- data/app/models/bulk_actions/publish_document.rb +6 -0
- data/app/models/bulk_actions/unpublish_document.rb +6 -0
- data/app/models/document/geom_validator.rb +8 -0
- data/app/models/document/reference.rb +65 -65
- data/app/models/document.rb +129 -72
- data/app/models/document_distribution.rb +145 -0
- data/app/models/element.rb +2 -0
- data/app/models/geoblacklight_admin/schema.rb +10 -2
- data/app/models/import/csv_duplicates_validator.rb +2 -0
- data/app/models/import/csv_header_validator.rb +3 -1
- data/app/models/import_btaa_aardvark.rb +2 -2
- data/app/models/import_document_state_machine.rb +1 -0
- data/app/models/import_gblv1.rb +2 -2
- data/app/models/reference_type.rb +40 -0
- data/app/models/user.rb +4 -2
- data/app/services/export_csv_document_distributions_service.rb +61 -0
- data/app/services/geoblacklight_admin/image_service/iiif_manifest.rb +39 -43
- data/app/services/geoblacklight_admin/image_service/tms.rb +0 -8
- data/app/services/geoblacklight_admin/image_service.rb +1 -1
- data/app/services/geoblacklight_admin/item_viewer.rb +4 -4
- data/app/views/admin/bookmarks/index.html.erb +19 -14
- data/app/views/admin/bulk_actions/show.html.erb +1 -1
- data/app/views/admin/document_accesses/import.html.erb +6 -2
- data/app/views/admin/document_assets/_assets_table.html.erb +49 -0
- data/app/views/admin/document_assets/_form.html.erb +2 -3
- data/app/views/admin/document_assets/index.html.erb +1 -47
- data/app/views/admin/document_distributions/_document_distribution.html.erb +39 -0
- data/app/views/admin/document_distributions/_document_distribution.json.jbuilder +2 -0
- data/app/views/admin/document_distributions/_form.html.erb +34 -0
- data/app/views/admin/document_distributions/destroy_all.html.erb +82 -0
- data/app/views/admin/document_distributions/edit.html.erb +12 -0
- data/app/views/admin/document_distributions/import.html.erb +80 -0
- data/app/views/admin/document_distributions/index.html.erb +143 -0
- data/app/views/admin/document_distributions/index.json.jbuilder +1 -0
- data/app/views/admin/document_distributions/new.html.erb +11 -0
- data/app/views/admin/document_distributions/show.html.erb +10 -0
- data/app/views/admin/document_distributions/show.json.jbuilder +1 -0
- data/app/views/admin/documents/_document.html.erb +1 -3
- data/app/views/admin/documents/_form.html.erb +2 -4
- data/app/views/admin/documents/_form_control.html.erb +5 -2
- data/app/views/admin/documents/_form_nav.html.erb +14 -5
- data/app/views/admin/documents/_form_nav_kithe.html.erb +4 -1
- data/app/views/admin/documents/_json_aardvark.jbuilder +1 -1
- data/app/views/admin/documents/_json_gbl_v1.jbuilder +1 -1
- data/app/views/admin/documents/_result_selected_options.html.erb +5 -2
- data/app/views/admin/documents/admin.html.erb +5 -5
- data/app/views/admin/documents/features/_document_references.html.erb +23 -0
- data/app/views/admin/documents/features/_multiple_download_links.html.erb +29 -26
- data/app/views/admin/ids/fetch.json.jbuilder +0 -2
- data/app/views/admin/ids/index.json.jbuilder +0 -2
- data/app/views/admin/imports/_form.html.erb +1 -1
- data/app/views/admin/imports/show.html.erb +1 -1
- data/app/views/admin/layouts/application.html.erb +4 -2
- data/app/views/admin/mappings/index.html.erb +1 -1
- data/app/views/admin/notifications/_notification.html.haml +29 -28
- data/app/views/admin/reference_types/_form.html.erb +25 -0
- data/app/views/admin/reference_types/_reference_type.html.erb +52 -0
- data/app/views/admin/reference_types/_reference_type.json.jbuilder +2 -0
- data/app/views/admin/reference_types/edit.html.erb +12 -0
- data/app/views/admin/reference_types/index.html.erb +52 -0
- data/app/views/admin/reference_types/index.json.jbuilder +1 -0
- data/app/views/admin/reference_types/new.html.erb +11 -0
- data/app/views/admin/reference_types/show.html.erb +3 -0
- data/app/views/admin/reference_types/show.json.jbuilder +1 -0
- data/app/views/admin/shared/_footer.html.erb +5 -2
- data/app/views/admin/shared/_js_behaviors.html.erb +2 -3
- data/app/views/admin/shared/_navbar.html.erb +9 -2
- data/app/views/admin/users/index.html.erb +0 -1
- data/app/views/catalog/_show_gbl_admin.html.erb +1 -1
- data/config/initializers/defaults.yml +310 -0
- data/config/initializers/rails_config.rb +8 -0
- data/config/locales/documents.en.yml +14 -0
- data/config/routes.rb +30 -5
- data/db/import_references_schema_support.numbers +0 -0
- data/db/migrate/20230316183001_add_geoblacklight_admin_gem.rb +0 -12
- data/db/migrate/20241009200524_create_admin_reference_types.rb +13 -0
- data/db/migrate/20241010161420_create_document_references.rb +14 -0
- data/db/migrate/20241120238823_rename_references_to_distributions.rb +5 -0
- data/db/seeds.rb +5 -0
- data/db/seeds_elements.csv +1 -1
- data/db/seeds_elements.numbers +0 -0
- data/db/seeds_reference_types.csv +29 -0
- data/db/seeds_reference_types.numbers +0 -0
- data/db/structure.sql +1 -38
- data/lib/compose.yml +31 -0
- data/lib/generators/geoblacklight_admin/config_generator.rb +53 -12
- data/lib/generators/geoblacklight_admin/install_generator.rb +8 -0
- data/lib/generators/geoblacklight_admin/templates/btaa_sample_records.csv +5 -0
- data/lib/generators/geoblacklight_admin/templates/config/database.yml +1 -1
- data/lib/generators/geoblacklight_admin/templates/config/initializers/devise.rb +0 -2
- data/lib/generators/geoblacklight_admin/templates/config/initializers/mime_types.rb +1 -0
- data/lib/generators/geoblacklight_admin/templates/demo-app/Dockerfile +31 -0
- data/lib/generators/geoblacklight_admin/templates/demo-app/compose.yml +42 -0
- data/lib/generators/geoblacklight_admin/templates/demo-app/start-server.sh +21 -0
- data/lib/geoblacklight_admin/engine.rb +4 -0
- data/lib/geoblacklight_admin/rake_task.rb +2 -0
- data/lib/geoblacklight_admin/tasks/distributions.rake +69 -0
- data/lib/geoblacklight_admin/tasks/images.rake +1 -0
- data/lib/geoblacklight_admin/tasks/solr.rake +31 -0
- data/lib/geoblacklight_admin/version.rb +1 -1
- data/lib/geoblacklight_admin.rb +4 -0
- metadata +137 -53
- data/app/helpers/import_documents_helper.rb +0 -5
- data/app/javascript/entrypoints/engine.js +0 -8
- data/config/locales/devise_invitable.en.yml +0 -31
- data/lib/generators/geoblacklight_admin/templates/devise/invitations/edit.html.erb +0 -15
- data/lib/generators/geoblacklight_admin/templates/devise/invitations/new.html.erb +0 -15
- data/lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.html.erb +0 -11
- data/lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.text.erb +0 -11
data/lib/geoblacklight_admin.rb
CHANGED
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Larson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_storage_validations
|
@@ -164,20 +164,6 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '1.0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: devise_invitable
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '2.0'
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '2.0'
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: dotenv-rails
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -276,6 +262,20 @@ dependencies:
|
|
276
262
|
- - "~>"
|
277
263
|
- !ruby/object:Gem::Version
|
278
264
|
version: '2.0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: mutex_m
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - "~>"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 0.2.0
|
272
|
+
type: :runtime
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 0.2.0
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: noticed
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -355,7 +355,7 @@ dependencies:
|
|
355
355
|
version: '7.0'
|
356
356
|
- - "<"
|
357
357
|
- !ruby/object:Gem::Version
|
358
|
-
version: '
|
358
|
+
version: '7.3'
|
359
359
|
type: :runtime
|
360
360
|
prerelease: false
|
361
361
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -365,7 +365,7 @@ dependencies:
|
|
365
365
|
version: '7.0'
|
366
366
|
- - "<"
|
367
367
|
- !ruby/object:Gem::Version
|
368
|
-
version: '
|
368
|
+
version: '7.3'
|
369
369
|
- !ruby/object:Gem::Dependency
|
370
370
|
name: ruby-progressbar
|
371
371
|
requirement: !ruby/object:Gem::Requirement
|
@@ -398,30 +398,30 @@ dependencies:
|
|
398
398
|
name: sprockets
|
399
399
|
requirement: !ruby/object:Gem::Requirement
|
400
400
|
requirements:
|
401
|
-
- - "
|
401
|
+
- - "~>"
|
402
402
|
- !ruby/object:Gem::Version
|
403
|
-
version: '
|
403
|
+
version: '3.0'
|
404
404
|
type: :runtime
|
405
405
|
prerelease: false
|
406
406
|
version_requirements: !ruby/object:Gem::Requirement
|
407
407
|
requirements:
|
408
|
-
- - "
|
408
|
+
- - "~>"
|
409
409
|
- !ruby/object:Gem::Version
|
410
|
-
version: '
|
410
|
+
version: '3.0'
|
411
411
|
- !ruby/object:Gem::Dependency
|
412
412
|
name: statesman
|
413
413
|
requirement: !ruby/object:Gem::Requirement
|
414
414
|
requirements:
|
415
415
|
- - "~>"
|
416
416
|
- !ruby/object:Gem::Version
|
417
|
-
version: '
|
417
|
+
version: '12.0'
|
418
418
|
type: :runtime
|
419
419
|
prerelease: false
|
420
420
|
version_requirements: !ruby/object:Gem::Requirement
|
421
421
|
requirements:
|
422
422
|
- - "~>"
|
423
423
|
- !ruby/object:Gem::Version
|
424
|
-
version: '
|
424
|
+
version: '12.0'
|
425
425
|
- !ruby/object:Gem::Dependency
|
426
426
|
name: vite_rails
|
427
427
|
requirement: !ruby/object:Gem::Requirement
|
@@ -450,6 +450,20 @@ dependencies:
|
|
450
450
|
- - ">="
|
451
451
|
- !ruby/object:Gem::Version
|
452
452
|
version: '3.5'
|
453
|
+
- !ruby/object:Gem::Dependency
|
454
|
+
name: zeitwerk
|
455
|
+
requirement: !ruby/object:Gem::Requirement
|
456
|
+
requirements:
|
457
|
+
- - "~>"
|
458
|
+
- !ruby/object:Gem::Version
|
459
|
+
version: '2.6'
|
460
|
+
type: :runtime
|
461
|
+
prerelease: false
|
462
|
+
version_requirements: !ruby/object:Gem::Requirement
|
463
|
+
requirements:
|
464
|
+
- - "~>"
|
465
|
+
- !ruby/object:Gem::Version
|
466
|
+
version: '2.6'
|
453
467
|
- !ruby/object:Gem::Dependency
|
454
468
|
name: byebug
|
455
469
|
requirement: !ruby/object:Gem::Requirement
|
@@ -605,89 +619,103 @@ dependencies:
|
|
605
619
|
- !ruby/object:Gem::Version
|
606
620
|
version: '1.6'
|
607
621
|
- !ruby/object:Gem::Dependency
|
608
|
-
name:
|
622
|
+
name: mocha
|
609
623
|
requirement: !ruby/object:Gem::Requirement
|
610
624
|
requirements:
|
611
625
|
- - "~>"
|
612
626
|
- !ruby/object:Gem::Version
|
613
|
-
version: '
|
627
|
+
version: '2.0'
|
614
628
|
type: :development
|
615
629
|
prerelease: false
|
616
630
|
version_requirements: !ruby/object:Gem::Requirement
|
617
631
|
requirements:
|
618
632
|
- - "~>"
|
619
633
|
- !ruby/object:Gem::Version
|
620
|
-
version: '
|
634
|
+
version: '2.0'
|
621
635
|
- !ruby/object:Gem::Dependency
|
622
|
-
name:
|
636
|
+
name: rails-controller-testing
|
623
637
|
requirement: !ruby/object:Gem::Requirement
|
624
638
|
requirements:
|
625
|
-
- - "
|
639
|
+
- - "~>"
|
626
640
|
- !ruby/object:Gem::Version
|
627
|
-
version: '0'
|
641
|
+
version: '1.0'
|
628
642
|
type: :development
|
629
643
|
prerelease: false
|
630
644
|
version_requirements: !ruby/object:Gem::Requirement
|
631
645
|
requirements:
|
632
|
-
- - "
|
646
|
+
- - "~>"
|
633
647
|
- !ruby/object:Gem::Version
|
634
|
-
version: '0'
|
648
|
+
version: '1.0'
|
635
649
|
- !ruby/object:Gem::Dependency
|
636
|
-
name:
|
650
|
+
name: rspec-rails
|
637
651
|
requirement: !ruby/object:Gem::Requirement
|
638
652
|
requirements:
|
639
653
|
- - "~>"
|
640
654
|
- !ruby/object:Gem::Version
|
641
|
-
version: '
|
655
|
+
version: '3.0'
|
642
656
|
type: :development
|
643
657
|
prerelease: false
|
644
658
|
version_requirements: !ruby/object:Gem::Requirement
|
645
659
|
requirements:
|
646
660
|
- - "~>"
|
647
661
|
- !ruby/object:Gem::Version
|
648
|
-
version: '
|
662
|
+
version: '3.0'
|
649
663
|
- !ruby/object:Gem::Dependency
|
650
|
-
name:
|
664
|
+
name: selenium-webdriver
|
651
665
|
requirement: !ruby/object:Gem::Requirement
|
652
666
|
requirements:
|
653
667
|
- - "~>"
|
654
668
|
- !ruby/object:Gem::Version
|
655
|
-
version: '
|
669
|
+
version: '4.25'
|
656
670
|
type: :development
|
657
671
|
prerelease: false
|
658
672
|
version_requirements: !ruby/object:Gem::Requirement
|
659
673
|
requirements:
|
660
674
|
- - "~>"
|
661
675
|
- !ruby/object:Gem::Version
|
662
|
-
version: '
|
676
|
+
version: '4.25'
|
663
677
|
- !ruby/object:Gem::Dependency
|
664
|
-
name:
|
678
|
+
name: shoulda-context
|
665
679
|
requirement: !ruby/object:Gem::Requirement
|
666
680
|
requirements:
|
667
681
|
- - "~>"
|
668
682
|
- !ruby/object:Gem::Version
|
669
|
-
version: '
|
683
|
+
version: '2.0'
|
670
684
|
type: :development
|
671
685
|
prerelease: false
|
672
686
|
version_requirements: !ruby/object:Gem::Requirement
|
673
687
|
requirements:
|
674
688
|
- - "~>"
|
675
689
|
- !ruby/object:Gem::Version
|
676
|
-
version: '
|
690
|
+
version: '2.0'
|
691
|
+
- !ruby/object:Gem::Dependency
|
692
|
+
name: simplecov
|
693
|
+
requirement: !ruby/object:Gem::Requirement
|
694
|
+
requirements:
|
695
|
+
- - "~>"
|
696
|
+
- !ruby/object:Gem::Version
|
697
|
+
version: '0.22'
|
698
|
+
type: :development
|
699
|
+
prerelease: false
|
700
|
+
version_requirements: !ruby/object:Gem::Requirement
|
701
|
+
requirements:
|
702
|
+
- - "~>"
|
703
|
+
- !ruby/object:Gem::Version
|
704
|
+
version: '0.22'
|
677
705
|
- !ruby/object:Gem::Dependency
|
678
706
|
name: sprockets
|
679
707
|
requirement: !ruby/object:Gem::Requirement
|
680
708
|
requirements:
|
681
|
-
- - "
|
709
|
+
- - "~>"
|
682
710
|
- !ruby/object:Gem::Version
|
683
|
-
version: '
|
711
|
+
version: '3.0'
|
684
712
|
type: :development
|
685
713
|
prerelease: false
|
686
714
|
version_requirements: !ruby/object:Gem::Requirement
|
687
715
|
requirements:
|
688
|
-
- - "
|
716
|
+
- - "~>"
|
689
717
|
- !ruby/object:Gem::Version
|
690
|
-
version: '
|
718
|
+
version: '3.0'
|
691
719
|
- !ruby/object:Gem::Dependency
|
692
720
|
name: standard
|
693
721
|
requirement: !ruby/object:Gem::Requirement
|
@@ -730,6 +758,20 @@ dependencies:
|
|
730
758
|
- - ">="
|
731
759
|
- !ruby/object:Gem::Version
|
732
760
|
version: '0'
|
761
|
+
- !ruby/object:Gem::Dependency
|
762
|
+
name: webmock
|
763
|
+
requirement: !ruby/object:Gem::Requirement
|
764
|
+
requirements:
|
765
|
+
- - "~>"
|
766
|
+
- !ruby/object:Gem::Version
|
767
|
+
version: '3.23'
|
768
|
+
type: :development
|
769
|
+
prerelease: false
|
770
|
+
version_requirements: !ruby/object:Gem::Requirement
|
771
|
+
requirements:
|
772
|
+
- - "~>"
|
773
|
+
- !ruby/object:Gem::Version
|
774
|
+
version: '3.23'
|
733
775
|
description:
|
734
776
|
email:
|
735
777
|
- ewlarson@gmail.com
|
@@ -784,6 +826,7 @@ files:
|
|
784
826
|
- app/controllers/admin/bulk_actions_controller.rb
|
785
827
|
- app/controllers/admin/document_accesses_controller.rb
|
786
828
|
- app/controllers/admin/document_assets_controller.rb
|
829
|
+
- app/controllers/admin/document_distributions_controller.rb
|
787
830
|
- app/controllers/admin/document_downloads_controller.rb
|
788
831
|
- app/controllers/admin/documents_controller.rb
|
789
832
|
- app/controllers/admin/elements_controller.rb
|
@@ -793,6 +836,7 @@ files:
|
|
793
836
|
- app/controllers/admin/imports_controller.rb
|
794
837
|
- app/controllers/admin/mappings_controller.rb
|
795
838
|
- app/controllers/admin/notifications_controller.rb
|
839
|
+
- app/controllers/admin/reference_types_controller.rb
|
796
840
|
- app/controllers/admin/search_controller.rb
|
797
841
|
- app/controllers/admin/users_controller.rb
|
798
842
|
- app/helpers/asset_helper.rb
|
@@ -800,11 +844,12 @@ files:
|
|
800
844
|
- app/helpers/document_helper.rb
|
801
845
|
- app/helpers/form_input_helper.rb
|
802
846
|
- app/helpers/geoblacklight_admin_helper.rb
|
803
|
-
- app/helpers/import_documents_helper.rb
|
804
847
|
- app/helpers/mappings_helper.rb
|
805
848
|
- app/indexers/document_indexer.rb
|
849
|
+
- app/javascript/channels/consumer.js
|
850
|
+
- app/javascript/channels/export_channel.js
|
851
|
+
- app/javascript/channels/index.js
|
806
852
|
- app/javascript/controllers/results_controller.js
|
807
|
-
- app/javascript/entrypoints/engine.js
|
808
853
|
- app/javascript/index.js
|
809
854
|
- app/jobs/bulk_action_collect_documents.rb
|
810
855
|
- app/jobs/bulk_action_revert_document_job.rb
|
@@ -836,6 +881,11 @@ files:
|
|
836
881
|
- app/models/bulk_action_state_machine.rb
|
837
882
|
- app/models/bulk_action_transition.rb
|
838
883
|
- app/models/bulk_actions/change_publication_state.rb
|
884
|
+
- app/models/bulk_actions/delete_thumbnails.rb
|
885
|
+
- app/models/bulk_actions/draft_document.rb
|
886
|
+
- app/models/bulk_actions/harvest_thumbnails.rb
|
887
|
+
- app/models/bulk_actions/publish_document.rb
|
888
|
+
- app/models/bulk_actions/unpublish_document.rb
|
839
889
|
- app/models/concerns/geoblacklight_admin/publication_state_search_behavior.rb
|
840
890
|
- app/models/document.rb
|
841
891
|
- app/models/document/bbox_validator.rb
|
@@ -845,6 +895,7 @@ files:
|
|
845
895
|
- app/models/document/geom_validator.rb
|
846
896
|
- app/models/document/reference.rb
|
847
897
|
- app/models/document_access.rb
|
898
|
+
- app/models/document_distribution.rb
|
848
899
|
- app/models/document_download.rb
|
849
900
|
- app/models/document_state_machine.rb
|
850
901
|
- app/models/document_thumbnail_state_machine.rb
|
@@ -876,9 +927,11 @@ files:
|
|
876
927
|
- app/models/kithe/vips_cli_image_to_png.rb
|
877
928
|
- app/models/mapping.rb
|
878
929
|
- app/models/notification.rb
|
930
|
+
- app/models/reference_type.rb
|
879
931
|
- app/models/user.rb
|
880
932
|
- app/notifications/export_notification.rb
|
881
933
|
- app/services/export_csv_document_access_links_service.rb
|
934
|
+
- app/services/export_csv_document_distributions_service.rb
|
882
935
|
- app/services/export_csv_document_downloads_service.rb
|
883
936
|
- app/services/export_csv_service.rb
|
884
937
|
- app/services/export_json_service.rb
|
@@ -926,10 +979,22 @@ files:
|
|
926
979
|
- app/views/admin/document_accesses/new.html.erb
|
927
980
|
- app/views/admin/document_accesses/show.html.erb
|
928
981
|
- app/views/admin/document_accesses/show.json.jbuilder
|
982
|
+
- app/views/admin/document_assets/_assets_table.html.erb
|
929
983
|
- app/views/admin/document_assets/_form.html.erb
|
930
984
|
- app/views/admin/document_assets/display_attach_form.html.erb
|
931
985
|
- app/views/admin/document_assets/edit.html.erb
|
932
986
|
- app/views/admin/document_assets/index.html.erb
|
987
|
+
- app/views/admin/document_distributions/_document_distribution.html.erb
|
988
|
+
- app/views/admin/document_distributions/_document_distribution.json.jbuilder
|
989
|
+
- app/views/admin/document_distributions/_form.html.erb
|
990
|
+
- app/views/admin/document_distributions/destroy_all.html.erb
|
991
|
+
- app/views/admin/document_distributions/edit.html.erb
|
992
|
+
- app/views/admin/document_distributions/import.html.erb
|
993
|
+
- app/views/admin/document_distributions/index.html.erb
|
994
|
+
- app/views/admin/document_distributions/index.json.jbuilder
|
995
|
+
- app/views/admin/document_distributions/new.html.erb
|
996
|
+
- app/views/admin/document_distributions/show.html.erb
|
997
|
+
- app/views/admin/document_distributions/show.json.jbuilder
|
933
998
|
- app/views/admin/document_downloads/_document_download.json.jbuilder
|
934
999
|
- app/views/admin/document_downloads/_form.html.erb
|
935
1000
|
- app/views/admin/document_downloads/destroy_all.html.erb
|
@@ -962,6 +1027,7 @@ files:
|
|
962
1027
|
- app/views/admin/documents/admin.html.erb
|
963
1028
|
- app/views/admin/documents/edit.html.erb
|
964
1029
|
- app/views/admin/documents/features/_assets.html.erb
|
1030
|
+
- app/views/admin/documents/features/_document_references.html.erb
|
965
1031
|
- app/views/admin/documents/features/_institutional_access_links.html.erb
|
966
1032
|
- app/views/admin/documents/features/_multiple_download_links.html.erb
|
967
1033
|
- app/views/admin/documents/fetch.json_aardvark.jbuilder
|
@@ -1021,6 +1087,15 @@ files:
|
|
1021
1087
|
- app/views/admin/notifications/_notification.html.haml
|
1022
1088
|
- app/views/admin/notifications/index.html.erb
|
1023
1089
|
- app/views/admin/notifications/update.js.erb
|
1090
|
+
- app/views/admin/reference_types/_form.html.erb
|
1091
|
+
- app/views/admin/reference_types/_reference_type.html.erb
|
1092
|
+
- app/views/admin/reference_types/_reference_type.json.jbuilder
|
1093
|
+
- app/views/admin/reference_types/edit.html.erb
|
1094
|
+
- app/views/admin/reference_types/index.html.erb
|
1095
|
+
- app/views/admin/reference_types/index.json.jbuilder
|
1096
|
+
- app/views/admin/reference_types/new.html.erb
|
1097
|
+
- app/views/admin/reference_types/show.html.erb
|
1098
|
+
- app/views/admin/reference_types/show.json.jbuilder
|
1024
1099
|
- app/views/admin/search/index.html.erb
|
1025
1100
|
- app/views/admin/shared/_flash_messages.html.erb
|
1026
1101
|
- app/views/admin/shared/_footer.html.erb
|
@@ -1038,23 +1113,31 @@ files:
|
|
1038
1113
|
- config/gbl_v1_schema.json
|
1039
1114
|
- config/geomg_aardvark_schema.json
|
1040
1115
|
- config/geomg_schema.json
|
1116
|
+
- config/initializers/defaults.yml
|
1117
|
+
- config/initializers/rails_config.rb
|
1041
1118
|
- config/locales/devise.en.yml
|
1042
|
-
- config/locales/devise_invitable.en.yml
|
1043
1119
|
- config/locales/documents.en.yml
|
1044
1120
|
- config/locales/en.yml
|
1045
1121
|
- config/locales/geoblacklight.en.yml
|
1046
1122
|
- config/locales/simple_form.en.yml
|
1047
1123
|
- config/routes.rb
|
1048
1124
|
- config/vite.json
|
1125
|
+
- db/import_references_schema_support.numbers
|
1049
1126
|
- db/migrate/20230316183001_add_geoblacklight_admin_gem.rb
|
1050
1127
|
- db/migrate/20231106215104_bulk_action_sti.rb
|
1051
1128
|
- db/migrate/20240619171628_create_document_thumbnail_statesman.rb
|
1129
|
+
- db/migrate/20241009200524_create_admin_reference_types.rb
|
1130
|
+
- db/migrate/20241010161420_create_document_references.rb
|
1131
|
+
- db/migrate/20241120238823_rename_references_to_distributions.rb
|
1052
1132
|
- db/seeds.rb
|
1053
1133
|
- db/seeds_elements.csv
|
1054
1134
|
- db/seeds_elements.numbers
|
1055
1135
|
- db/seeds_form_elements.csv
|
1056
1136
|
- db/seeds_form_elements.numbers
|
1137
|
+
- db/seeds_reference_types.csv
|
1138
|
+
- db/seeds_reference_types.numbers
|
1057
1139
|
- db/structure.sql
|
1140
|
+
- lib/compose.yml
|
1058
1141
|
- lib/generators/geoblacklight_admin/config_generator.rb
|
1059
1142
|
- lib/generators/geoblacklight_admin/helpers_generator.rb
|
1060
1143
|
- lib/generators/geoblacklight_admin/install_generator.rb
|
@@ -1064,6 +1147,7 @@ files:
|
|
1064
1147
|
- lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
|
1065
1148
|
- lib/generators/geoblacklight_admin/templates/api_controller.rb
|
1066
1149
|
- lib/generators/geoblacklight_admin/templates/base.html.erb
|
1150
|
+
- lib/generators/geoblacklight_admin/templates/btaa_sample_records.csv
|
1067
1151
|
- lib/generators/geoblacklight_admin/templates/config/database.yml
|
1068
1152
|
- lib/generators/geoblacklight_admin/templates/config/geomg_aardvark_schema.json
|
1069
1153
|
- lib/generators/geoblacklight_admin/templates/config/initializers/devise.rb
|
@@ -1078,11 +1162,10 @@ files:
|
|
1078
1162
|
- lib/generators/geoblacklight_admin/templates/config/settings.yml
|
1079
1163
|
- lib/generators/geoblacklight_admin/templates/config/sidekiq.yml
|
1080
1164
|
- lib/generators/geoblacklight_admin/templates/config/vite.json
|
1165
|
+
- lib/generators/geoblacklight_admin/templates/demo-app/Dockerfile
|
1166
|
+
- lib/generators/geoblacklight_admin/templates/demo-app/compose.yml
|
1167
|
+
- lib/generators/geoblacklight_admin/templates/demo-app/start-server.sh
|
1081
1168
|
- lib/generators/geoblacklight_admin/templates/devise/confirmations/new.html.erb
|
1082
|
-
- lib/generators/geoblacklight_admin/templates/devise/invitations/edit.html.erb
|
1083
|
-
- lib/generators/geoblacklight_admin/templates/devise/invitations/new.html.erb
|
1084
|
-
- lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.html.erb
|
1085
|
-
- lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.text.erb
|
1086
1169
|
- lib/generators/geoblacklight_admin/templates/devise/passwords/edit.html.erb
|
1087
1170
|
- lib/generators/geoblacklight_admin/templates/devise/passwords/new.html.erb
|
1088
1171
|
- lib/generators/geoblacklight_admin/templates/devise/registrations/edit.html.erb
|
@@ -1124,6 +1207,7 @@ files:
|
|
1124
1207
|
- lib/geoblacklight_admin.rb
|
1125
1208
|
- lib/geoblacklight_admin/engine.rb
|
1126
1209
|
- lib/geoblacklight_admin/rake_task.rb
|
1210
|
+
- lib/geoblacklight_admin/tasks/distributions.rake
|
1127
1211
|
- lib/geoblacklight_admin/tasks/images.rake
|
1128
1212
|
- lib/geoblacklight_admin/tasks/solr.rake
|
1129
1213
|
- lib/geoblacklight_admin/version.rb
|
@@ -1146,7 +1230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1146
1230
|
- !ruby/object:Gem::Version
|
1147
1231
|
version: '0'
|
1148
1232
|
requirements: []
|
1149
|
-
rubygems_version: 3.5.
|
1233
|
+
rubygems_version: 3.5.16
|
1150
1234
|
signing_key:
|
1151
1235
|
specification_version: 4
|
1152
1236
|
summary: Administrative UI for GeoBlacklight. Built on Kithe.
|
@@ -1,8 +0,0 @@
|
|
1
|
-
console.log('Vite ⚡️ Rails - GBL Admin')
|
2
|
-
|
3
|
-
// Stimulus
|
4
|
-
import { Application } from '@hotwired/stimulus'
|
5
|
-
import ResultsController from "../controllers/results_controller"
|
6
|
-
|
7
|
-
window.Stimulus = Application.start()
|
8
|
-
Stimulus.register("results", ResultsController)
|
@@ -1,31 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
devise:
|
3
|
-
failure:
|
4
|
-
invited: "You have a pending invitation, accept it to finish creating your account."
|
5
|
-
invitations:
|
6
|
-
send_instructions: "An invitation email has been sent to %{email}."
|
7
|
-
invitation_token_invalid: "The invitation token provided is not valid!"
|
8
|
-
updated: "Your password was set successfully. You are now signed in."
|
9
|
-
updated_not_active: "Your password was set successfully."
|
10
|
-
no_invitations_remaining: "No invitations remaining"
|
11
|
-
invitation_removed: "Your invitation was removed."
|
12
|
-
new:
|
13
|
-
header: "Send invitation"
|
14
|
-
submit_button: "Send an invitation"
|
15
|
-
edit:
|
16
|
-
header: "Set your password"
|
17
|
-
submit_button: "Set my password"
|
18
|
-
mailer:
|
19
|
-
invitation_instructions:
|
20
|
-
subject: "Invitation instructions"
|
21
|
-
hello: "Hello %{email}"
|
22
|
-
someone_invited_you: "Someone has invited you to %{url}, you can accept it through the link below."
|
23
|
-
accept: "Accept invitation"
|
24
|
-
accept_until: "This invitation will be due in %{due_date}."
|
25
|
-
ignore: "If you don't want to accept the invitation, please ignore this email. Your account won't be created until you access the link above and set your password."
|
26
|
-
time:
|
27
|
-
formats:
|
28
|
-
devise:
|
29
|
-
mailer:
|
30
|
-
invitation_instructions:
|
31
|
-
accept_until_format: "%B %d, %Y %I:%M %p"
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<h2><%= t "devise.invitations.edit.header" %></h2>
|
2
|
-
|
3
|
-
<%= simple_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :put }) do |f| %>
|
4
|
-
<%= f.error_notification %>
|
5
|
-
<%= f.hidden_field :invitation_token %>
|
6
|
-
|
7
|
-
<div class="form-inputs">
|
8
|
-
<%= f.input :password %>
|
9
|
-
<%= f.input :password_confirmation %>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div class="form-actions">
|
13
|
-
<%= f.button :submit, t("devise.invitations.edit.submit_button"), class: 'btn btn-primary' %>
|
14
|
-
</div>
|
15
|
-
<% end %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<h2><%= t "devise.invitations.new.header" %></h2>
|
2
|
-
|
3
|
-
<%= simple_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post }) do |f| %>
|
4
|
-
<%= f.error_notification %>
|
5
|
-
|
6
|
-
<% resource.class.invite_key_fields.each do |field| -%>
|
7
|
-
<div class="form-inputs">
|
8
|
-
<%= f.input field %>
|
9
|
-
</div>
|
10
|
-
<% end -%>
|
11
|
-
|
12
|
-
<div class="form-actions">
|
13
|
-
<%= f.button :submit, t("devise.invitations.new.submit_button"), class: 'btn btn-primary' %>
|
14
|
-
</div>
|
15
|
-
<% end %>
|
data/lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.html.erb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
<p><%= t("devise.mailer.invitation_instructions.hello", email: @resource.email) %></p>
|
2
|
-
|
3
|
-
<p><%= t("devise.mailer.invitation_instructions.someone_invited_you", url: root_url) %></p>
|
4
|
-
|
5
|
-
<p><%= link_to t("devise.mailer.invitation_instructions.accept"), accept_invitation_url(@resource, invitation_token: @token) %></p>
|
6
|
-
|
7
|
-
<% if @resource.invitation_due_at %>
|
8
|
-
<p><%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :'devise.mailer.invitation_instructions.accept_until_format')) %></p>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<p><%= t("devise.mailer.invitation_instructions.ignore") %></p>
|
data/lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.text.erb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
<%= t("devise.mailer.invitation_instructions.hello", email: @resource.email) %>
|
2
|
-
|
3
|
-
<%= t("devise.mailer.invitation_instructions.someone_invited_you", url: root_url) %>
|
4
|
-
|
5
|
-
<%= accept_invitation_url(@resource, invitation_token: @token) %>
|
6
|
-
|
7
|
-
<% if @resource.invitation_due_at %>
|
8
|
-
<%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :'devise.mailer.invitation_instructions.accept_until_format')) %>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<%= t("devise.mailer.invitation_instructions.ignore") %>
|