geoblacklight_admin 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/assets/stylesheets/geoblacklight_admin/_core.scss +1 -1
  4. data/app/assets/stylesheets/geoblacklight_admin/modules/_icons.scss +9 -0
  5. data/app/controllers/admin/document_data_dictionaries_controller.rb +126 -0
  6. data/app/controllers/admin/document_data_dictionary_entries_controller.rb +124 -0
  7. data/app/controllers/admin/document_distributions_controller.rb +0 -38
  8. data/app/controllers/admin/import_distributions_controller.rb +126 -0
  9. data/app/javascript/index.js +1 -1
  10. data/app/jobs/import_distributions_run_job.rb +32 -0
  11. data/app/jobs/import_document_distribution_job.rb +23 -0
  12. data/app/models/document.rb +5 -0
  13. data/app/models/document_data_dictionary/csv_header_validator.rb +30 -0
  14. data/app/models/document_data_dictionary.rb +39 -0
  15. data/app/models/document_data_dictionary_entry.rb +9 -0
  16. data/app/models/import_distribution/csv_header_validator.rb +32 -0
  17. data/app/models/import_distribution.rb +55 -0
  18. data/app/models/import_distribution_state_machine.rb +14 -0
  19. data/app/models/import_distribution_transition.rb +26 -0
  20. data/app/models/import_document_distribution.rb +25 -0
  21. data/app/models/import_document_distribution_state_machine.rb +13 -0
  22. data/app/models/import_document_distribution_transition.rb +19 -0
  23. data/app/views/admin/document_data_dictionaries/_data_dictionaries_table.html.erb +40 -0
  24. data/app/views/admin/document_data_dictionaries/_document_data_dictionary.html.erb +37 -0
  25. data/app/views/admin/document_data_dictionaries/_document_data_dictionary.json.jbuilder +2 -0
  26. data/app/views/admin/document_data_dictionaries/_form.html.erb +17 -0
  27. data/app/views/admin/document_data_dictionaries/edit.html.erb +12 -0
  28. data/app/views/admin/document_data_dictionaries/index.html.erb +45 -0
  29. data/app/views/admin/document_data_dictionaries/index.json.jbuilder +1 -0
  30. data/app/views/admin/document_data_dictionaries/new.html.erb +78 -0
  31. data/app/views/admin/document_data_dictionaries/show.html.erb +78 -0
  32. data/app/views/admin/document_data_dictionaries/show.json.jbuilder +1 -0
  33. data/app/views/admin/document_data_dictionary_entries/_form.html.erb +19 -0
  34. data/app/views/admin/document_data_dictionary_entries/edit.html.erb +12 -0
  35. data/app/views/admin/document_data_dictionary_entries/new.html.erb +16 -0
  36. data/app/views/admin/document_distributions/index.html.erb +2 -2
  37. data/app/views/admin/documents/_form_nav.html.erb +4 -0
  38. data/app/views/admin/import_distributions/_form.html.erb +21 -0
  39. data/app/views/admin/import_distributions/_import_distribution.json.jbuilder +5 -0
  40. data/app/views/admin/import_distributions/_show_failed_tab.html.erb +36 -0
  41. data/app/views/admin/import_distributions/_show_success_tab.html.erb +35 -0
  42. data/app/views/admin/import_distributions/edit.html.erb +8 -0
  43. data/app/views/admin/import_distributions/index.html.erb +58 -0
  44. data/app/views/admin/import_distributions/index.json.jbuilder +3 -0
  45. data/app/views/admin/import_distributions/new.html.erb +7 -0
  46. data/app/views/admin/import_distributions/show.html.erb +121 -0
  47. data/app/views/admin/import_distributions/show.json.jbuilder +3 -0
  48. data/app/views/admin/imports/index.html.erb +2 -2
  49. data/app/views/admin/shared/_navbar.html.erb +2 -2
  50. data/app/views/catalog/_gbl_admin_data_dictionaries.html.erb +3 -0
  51. data/app/views/catalog/_show_gbl_admin_data_dictionaries.html.erb +44 -0
  52. data/app/views/catalog/data_dictionaries.html.erb +12 -0
  53. data/db/migrate/20241204163117_create_document_data_dictionaries.rb +14 -0
  54. data/db/migrate/20241218174455_create_document_data_dictionary_entries.rb +17 -0
  55. data/db/migrate/20250113213655_import_distributions.rb +56 -0
  56. data/lib/generators/geoblacklight_admin/config_generator.rb +61 -4
  57. data/lib/generators/geoblacklight_admin/templates/btaa_sample_document_data_dictionary_entries.csv +9 -0
  58. data/lib/generators/geoblacklight_admin/templates/btaa_sample_document_distributions.csv +17 -0
  59. data/lib/geoblacklight_admin/routes/data_dictionariesable.rb +17 -0
  60. data/lib/geoblacklight_admin/version.rb +1 -1
  61. metadata +49 -2
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.6.3
4
+ version: 0.7.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: 2025-01-06 00:00:00.000000000 Z
11
+ date: 2025-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -826,12 +826,15 @@ files:
826
826
  - app/controllers/admin/bulk_actions_controller.rb
827
827
  - app/controllers/admin/document_accesses_controller.rb
828
828
  - app/controllers/admin/document_assets_controller.rb
829
+ - app/controllers/admin/document_data_dictionaries_controller.rb
830
+ - app/controllers/admin/document_data_dictionary_entries_controller.rb
829
831
  - app/controllers/admin/document_distributions_controller.rb
830
832
  - app/controllers/admin/document_downloads_controller.rb
831
833
  - app/controllers/admin/documents_controller.rb
832
834
  - app/controllers/admin/elements_controller.rb
833
835
  - app/controllers/admin/form_elements_controller.rb
834
836
  - app/controllers/admin/ids_controller.rb
837
+ - app/controllers/admin/import_distributions_controller.rb
835
838
  - app/controllers/admin/import_documents_controller.rb
836
839
  - app/controllers/admin/imports_controller.rb
837
840
  - app/controllers/admin/mappings_controller.rb
@@ -863,6 +866,8 @@ files:
863
866
  - app/jobs/geoblacklight_admin/remove_parent_dct_references_uri_job.rb
864
867
  - app/jobs/geoblacklight_admin/set_parent_dct_references_uri_job.rb
865
868
  - app/jobs/geoblacklight_admin/store_image_job.rb
869
+ - app/jobs/import_distributions_run_job.rb
870
+ - app/jobs/import_document_distribution_job.rb
866
871
  - app/jobs/import_document_job.rb
867
872
  - app/jobs/import_run_job.rb
868
873
  - app/models/active_storage_attachment.rb
@@ -895,6 +900,9 @@ files:
895
900
  - app/models/document/geom_validator.rb
896
901
  - app/models/document/reference.rb
897
902
  - app/models/document_access.rb
903
+ - app/models/document_data_dictionary.rb
904
+ - app/models/document_data_dictionary/csv_header_validator.rb
905
+ - app/models/document_data_dictionary_entry.rb
898
906
  - app/models/document_distribution.rb
899
907
  - app/models/document_download.rb
900
908
  - app/models/document_state_machine.rb
@@ -918,7 +926,14 @@ files:
918
926
  - app/models/import/csv_header_validator.rb
919
927
  - app/models/import_btaa.rb
920
928
  - app/models/import_btaa_aardvark.rb
929
+ - app/models/import_distribution.rb
930
+ - app/models/import_distribution/csv_header_validator.rb
931
+ - app/models/import_distribution_state_machine.rb
932
+ - app/models/import_distribution_transition.rb
921
933
  - app/models/import_document.rb
934
+ - app/models/import_document_distribution.rb
935
+ - app/models/import_document_distribution_state_machine.rb
936
+ - app/models/import_document_distribution_transition.rb
922
937
  - app/models/import_document_state_machine.rb
923
938
  - app/models/import_document_transition.rb
924
939
  - app/models/import_gblv1.rb
@@ -984,6 +999,19 @@ files:
984
999
  - app/views/admin/document_assets/display_attach_form.html.erb
985
1000
  - app/views/admin/document_assets/edit.html.erb
986
1001
  - app/views/admin/document_assets/index.html.erb
1002
+ - app/views/admin/document_data_dictionaries/_data_dictionaries_table.html.erb
1003
+ - app/views/admin/document_data_dictionaries/_document_data_dictionary.html.erb
1004
+ - app/views/admin/document_data_dictionaries/_document_data_dictionary.json.jbuilder
1005
+ - app/views/admin/document_data_dictionaries/_form.html.erb
1006
+ - app/views/admin/document_data_dictionaries/edit.html.erb
1007
+ - app/views/admin/document_data_dictionaries/index.html.erb
1008
+ - app/views/admin/document_data_dictionaries/index.json.jbuilder
1009
+ - app/views/admin/document_data_dictionaries/new.html.erb
1010
+ - app/views/admin/document_data_dictionaries/show.html.erb
1011
+ - app/views/admin/document_data_dictionaries/show.json.jbuilder
1012
+ - app/views/admin/document_data_dictionary_entries/_form.html.erb
1013
+ - app/views/admin/document_data_dictionary_entries/edit.html.erb
1014
+ - app/views/admin/document_data_dictionary_entries/new.html.erb
987
1015
  - app/views/admin/document_distributions/_document_distribution.html.erb
988
1016
  - app/views/admin/document_distributions/_document_distribution.json.jbuilder
989
1017
  - app/views/admin/document_distributions/_form.html.erb
@@ -1061,6 +1089,16 @@ files:
1061
1089
  - app/views/admin/form_elements/show.json.jbuilder
1062
1090
  - app/views/admin/ids/fetch.json.jbuilder
1063
1091
  - app/views/admin/ids/index.json.jbuilder
1092
+ - app/views/admin/import_distributions/_form.html.erb
1093
+ - app/views/admin/import_distributions/_import_distribution.json.jbuilder
1094
+ - app/views/admin/import_distributions/_show_failed_tab.html.erb
1095
+ - app/views/admin/import_distributions/_show_success_tab.html.erb
1096
+ - app/views/admin/import_distributions/edit.html.erb
1097
+ - app/views/admin/import_distributions/index.html.erb
1098
+ - app/views/admin/import_distributions/index.json.jbuilder
1099
+ - app/views/admin/import_distributions/new.html.erb
1100
+ - app/views/admin/import_distributions/show.html.erb
1101
+ - app/views/admin/import_distributions/show.json.jbuilder
1064
1102
  - app/views/admin/import_documents/show.html.haml
1065
1103
  - app/views/admin/imports/_form.html.erb
1066
1104
  - app/views/admin/imports/_import.json.jbuilder
@@ -1105,7 +1143,10 @@ files:
1105
1143
  - app/views/admin/shared/_schema_timestamp.html.erb
1106
1144
  - app/views/admin/shared/_toast.html.erb
1107
1145
  - app/views/admin/users/index.html.erb
1146
+ - app/views/catalog/_gbl_admin_data_dictionaries.html.erb
1108
1147
  - app/views/catalog/_show_gbl_admin.html.erb
1148
+ - app/views/catalog/_show_gbl_admin_data_dictionaries.html.erb
1149
+ - app/views/catalog/data_dictionaries.html.erb
1109
1150
  - config/authorities/formats.yml
1110
1151
  - config/authorities/languages.yml
1111
1152
  - config/authorities/resource_type.yml
@@ -1129,6 +1170,9 @@ files:
1129
1170
  - db/migrate/20241009200524_create_admin_reference_types.rb
1130
1171
  - db/migrate/20241010161420_create_document_references.rb
1131
1172
  - db/migrate/20241120238823_rename_references_to_distributions.rb
1173
+ - db/migrate/20241204163117_create_document_data_dictionaries.rb
1174
+ - db/migrate/20241218174455_create_document_data_dictionary_entries.rb
1175
+ - db/migrate/20250113213655_import_distributions.rb
1132
1176
  - db/seeds.rb
1133
1177
  - db/seeds_elements.csv
1134
1178
  - db/seeds_elements.numbers
@@ -1147,6 +1191,8 @@ files:
1147
1191
  - lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
1148
1192
  - lib/generators/geoblacklight_admin/templates/api_controller.rb
1149
1193
  - lib/generators/geoblacklight_admin/templates/base.html.erb
1194
+ - lib/generators/geoblacklight_admin/templates/btaa_sample_document_data_dictionary_entries.csv
1195
+ - lib/generators/geoblacklight_admin/templates/btaa_sample_document_distributions.csv
1150
1196
  - lib/generators/geoblacklight_admin/templates/btaa_sample_records.csv
1151
1197
  - lib/generators/geoblacklight_admin/templates/config/database.yml
1152
1198
  - lib/generators/geoblacklight_admin/templates/config/geomg_aardvark_schema.json
@@ -1207,6 +1253,7 @@ files:
1207
1253
  - lib/geoblacklight_admin.rb
1208
1254
  - lib/geoblacklight_admin/engine.rb
1209
1255
  - lib/geoblacklight_admin/rake_task.rb
1256
+ - lib/geoblacklight_admin/routes/data_dictionariesable.rb
1210
1257
  - lib/geoblacklight_admin/tasks/distributions.rake
1211
1258
  - lib/geoblacklight_admin/tasks/images.rake
1212
1259
  - lib/geoblacklight_admin/tasks/solr.rake