geoblacklight_admin 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +18 -0
- data/.gitignore +75 -0
- data/.standard.yml +4 -0
- data/Gemfile +59 -0
- data/LICENSE +21 -0
- data/README.md +84 -0
- data/Rakefile +72 -0
- data/app/assets/images/.keep +0 -0
- data/app/assets/images/aerial_photo.jpg +0 -0
- data/app/assets/images/archive-solid.svg +1 -0
- data/app/assets/images/bookmark-regular.svg +1 -0
- data/app/assets/images/bookmark-solid.svg +1 -0
- data/app/assets/images/btaa-logo.jpg +0 -0
- data/app/assets/images/cloud-download-alt-solid.svg +1 -0
- data/app/assets/images/file-import-solid.svg +1 -0
- data/app/assets/images/trash-alt-solid.svg +1 -0
- data/app/assets/javascripts/geoblacklight_admin/chosen.js +4 -0
- data/app/assets/javascripts/geoblacklight_admin/date_range_picker.js +173 -0
- data/app/assets/javascripts/geoblacklight_admin/datepicker.js +22 -0
- data/app/assets/javascripts/geoblacklight_admin/elements.js +38 -0
- data/app/assets/javascripts/geoblacklight_admin/exports.js +3 -0
- data/app/assets/javascripts/geoblacklight_admin/fields.js +11 -0
- data/app/assets/javascripts/geoblacklight_admin/geoblacklight_admin.js +2 -0
- data/app/assets/javascripts/geoblacklight_admin/inputmask.js +4 -0
- data/app/assets/javascripts/geoblacklight_admin/locale.js +5 -0
- data/app/assets/javascripts/geoblacklight_admin/sortable.js +2544 -0
- data/app/assets/javascripts/geoblacklight_admin/tooltips.js +3 -0
- data/app/assets/javascripts/geoblacklight_admin/truncate.js +4 -0
- data/app/assets/javascripts/geoblacklight_admin.js +40 -0
- data/app/assets/stylesheets/geoblacklight_admin/_core.scss +47 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_autocomplete.scss +32 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_blazer.scss +3 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_code.scss +3 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_datepicker.scss +477 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_elements.scss +3 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_forms.scss +28 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_icons.scss +15 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_nav.scss +9 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_tables.scss +4 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_toasts.scss +7 -0
- data/app/assets/stylesheets/geoblacklight_admin/modules/_visibility.scss +3 -0
- data/app/assets/stylesheets/geoblacklight_admin/settings/_variables.scss +1 -0
- data/app/channels/export_channel.rb +12 -0
- data/app/controllers/admin/admin_controller.rb +16 -0
- data/app/controllers/admin/advanced_search_controller.rb +365 -0
- data/app/controllers/admin/api_controller.rb +386 -0
- data/app/controllers/admin/bookmarks_controller.rb +68 -0
- data/app/controllers/admin/bulk_actions_controller.rb +94 -0
- data/app/controllers/admin/concerns/.keep +0 -0
- data/app/controllers/admin/concerns/upload_util.rb +8 -0
- data/app/controllers/admin/document_accesses_controller.rb +125 -0
- data/app/controllers/admin/document_assets_controller.rb +198 -0
- data/app/controllers/admin/document_downloads_controller.rb +127 -0
- data/app/controllers/admin/documents_controller.rb +219 -0
- data/app/controllers/admin/elements_controller.rb +81 -0
- data/app/controllers/admin/form_elements_controller.rb +81 -0
- data/app/controllers/admin/ids_controller.rb +379 -0
- data/app/controllers/admin/import_documents_controller.rb +18 -0
- data/app/controllers/admin/imports_controller.rb +105 -0
- data/app/controllers/admin/mappings_controller.rb +95 -0
- data/app/controllers/admin/notifications_controller.rb +51 -0
- data/app/controllers/admin/search_controller.rb +10 -0
- data/app/controllers/admin/users_controller.rb +10 -0
- data/app/helpers/bulk_actions_helper.rb +9 -0
- data/app/helpers/document_helper.rb +60 -0
- data/app/helpers/form_input_helper.rb +73 -0
- data/app/helpers/geoblacklight_admin_helper.rb +118 -0
- data/app/helpers/import_documents_helper.rb +5 -0
- data/app/helpers/mappings_helper.rb +27 -0
- data/app/indexers/document_indexer.rb +34 -0
- data/app/jobs/bulk_action_revert_document_job.rb +49 -0
- data/app/jobs/bulk_action_revert_job.rb +25 -0
- data/app/jobs/bulk_action_run_document_job.rb +42 -0
- data/app/jobs/bulk_action_run_job.rb +27 -0
- data/app/jobs/export_job.rb +72 -0
- data/app/jobs/export_json_job.rb +120 -0
- data/app/jobs/import_document_job.rb +25 -0
- data/app/jobs/import_run_job.rb +33 -0
- data/app/models/active_storage_attachment.rb +5 -0
- data/app/models/active_storage_blob.rb +5 -0
- data/app/models/api_search_builder.rb +12 -0
- data/app/models/application_record.rb +6 -0
- data/app/models/blacklight_api.rb +93 -0
- data/app/models/blacklight_api_facets.rb +15 -0
- data/app/models/blacklight_api_ids.rb +103 -0
- data/app/models/bookmark.rb +17 -0
- data/app/models/bulk_action.rb +88 -0
- data/app/models/bulk_action_document.rb +22 -0
- data/app/models/bulk_action_document_state_machine.rb +16 -0
- data/app/models/bulk_action_document_transition.rb +19 -0
- data/app/models/bulk_action_state_machine.rb +16 -0
- data/app/models/bulk_action_transition.rb +26 -0
- data/app/models/concerns/.keep +0 -0
- data/app/models/document/bbox_validator.rb +70 -0
- data/app/models/document/controlled_lists.rb +104 -0
- data/app/models/document/date_range_validator.rb +63 -0
- data/app/models/document/geom_validator.rb +117 -0
- data/app/models/document/reference.rb +107 -0
- data/app/models/document.rb +264 -0
- data/app/models/document_access.rb +35 -0
- data/app/models/document_download.rb +35 -0
- data/app/models/document_state_machine.rb +14 -0
- data/app/models/document_transition.rb +26 -0
- data/app/models/element.rb +90 -0
- data/app/models/form_control.rb +2 -0
- data/app/models/form_element.rb +19 -0
- data/app/models/form_feature.rb +2 -0
- data/app/models/form_group.rb +2 -0
- data/app/models/form_header.rb +2 -0
- data/app/models/geoblacklight_admin/field_mappings_btaa_aardvark.rb +379 -0
- data/app/models/geoblacklight_admin/field_mappings_gblv1.rb +344 -0
- data/app/models/geoblacklight_admin/iso_language_codes.rb +515 -0
- data/app/models/geoblacklight_admin/schema.rb +194 -0
- data/app/models/geoblacklight_admin.rb +3 -0
- data/app/models/import/csv_duplicates_validator.rb +36 -0
- data/app/models/import/csv_header_validator.rb +24 -0
- data/app/models/import.rb +186 -0
- data/app/models/import_btaa.rb +91 -0
- data/app/models/import_btaa_aardvark.rb +109 -0
- data/app/models/import_document.rb +34 -0
- data/app/models/import_document_state_machine.rb +12 -0
- data/app/models/import_document_transition.rb +19 -0
- data/app/models/import_gblv1.rb +92 -0
- data/app/models/import_state_machine.rb +16 -0
- data/app/models/import_transition.rb +26 -0
- data/app/models/mapping.rb +10 -0
- data/app/models/notification.rb +9 -0
- data/app/models/user.rb +26 -0
- data/app/notifications/export_notification.rb +30 -0
- data/app/services/export_csv_document_access_links_service.rb +47 -0
- data/app/services/export_csv_document_downloads_service.rb +47 -0
- data/app/services/export_csv_service.rb +44 -0
- data/app/services/export_json_service.rb +35 -0
- data/app/services/zip_file_generator.rb +56 -0
- data/app/views/admin/advanced_search/facets.json.jbuilder +80 -0
- data/app/views/admin/advanced_search/index.json.jbuilder +90 -0
- data/app/views/admin/api/_field.json.jbuilder +10 -0
- data/app/views/admin/api/fetch.json.jbuilder +86 -0
- data/app/views/admin/api/index.json.jbuilder +90 -0
- data/app/views/admin/bookmarks/_bookmark.json.jbuilder +4 -0
- data/app/views/admin/bookmarks/create.js.erb +7 -0
- data/app/views/admin/bookmarks/destroy.js.erb +7 -0
- data/app/views/admin/bookmarks/index.html.erb +21 -0
- data/app/views/admin/bookmarks/index.json.jbuilder +3 -0
- data/app/views/admin/bulk_actions/_bulk_action.json.jbuilder +4 -0
- data/app/views/admin/bulk_actions/_form.html.erb +17 -0
- data/app/views/admin/bulk_actions/edit.html.erb +6 -0
- data/app/views/admin/bulk_actions/index.html.erb +54 -0
- data/app/views/admin/bulk_actions/index.json.jbuilder +3 -0
- data/app/views/admin/bulk_actions/new.html.erb +5 -0
- data/app/views/admin/bulk_actions/show.html.erb +100 -0
- data/app/views/admin/bulk_actions/show.json.jbuilder +3 -0
- data/app/views/admin/devise/confirmations/new.html.erb +16 -0
- data/app/views/admin/devise/invitations/edit.html.erb +15 -0
- data/app/views/admin/devise/invitations/new.html.erb +15 -0
- data/app/views/admin/devise/mailer/invitation_instructions.html.erb +11 -0
- data/app/views/admin/devise/mailer/invitation_instructions.text.erb +11 -0
- data/app/views/admin/devise/passwords/edit.html.erb +26 -0
- data/app/views/admin/devise/passwords/new.html.erb +16 -0
- data/app/views/admin/devise/registrations/edit.html.erb +35 -0
- data/app/views/admin/devise/registrations/new.html.erb +30 -0
- data/app/views/admin/devise/sessions/new.html.erb +28 -0
- data/app/views/admin/devise/shared/_links.html.erb +27 -0
- data/app/views/admin/devise/unlocks/new.html.erb +16 -0
- data/app/views/admin/document_accesses/_document_access.json.jbuilder +4 -0
- data/app/views/admin/document_accesses/_form.html.erb +17 -0
- data/app/views/admin/document_accesses/destroy_all.html.erb +70 -0
- data/app/views/admin/document_accesses/edit.html.erb +5 -0
- data/app/views/admin/document_accesses/import.html.erb +70 -0
- data/app/views/admin/document_accesses/index.html.erb +74 -0
- data/app/views/admin/document_accesses/index.json.jbuilder +3 -0
- data/app/views/admin/document_accesses/new.html.erb +6 -0
- data/app/views/admin/document_accesses/show.html.erb +19 -0
- data/app/views/admin/document_accesses/show.json.jbuilder +3 -0
- data/app/views/admin/document_assets/display_attach_form.html.erb +44 -0
- data/app/views/admin/document_assets/index.html.erb +65 -0
- data/app/views/admin/document_downloads/_document_download.json.jbuilder +4 -0
- data/app/views/admin/document_downloads/_form.html.erb +15 -0
- data/app/views/admin/document_downloads/destroy_all.html.erb +70 -0
- data/app/views/admin/document_downloads/edit.html.erb +6 -0
- data/app/views/admin/document_downloads/import.html.erb +74 -0
- data/app/views/admin/document_downloads/index.html.erb +70 -0
- data/app/views/admin/document_downloads/index.json.jbuilder +3 -0
- data/app/views/admin/document_downloads/new.html.erb +5 -0
- data/app/views/admin/document_downloads/show.html.erb +24 -0
- data/app/views/admin/document_downloads/show.json.jbuilder +3 -0
- data/app/views/admin/documents/_document.html.erb +29 -0
- data/app/views/admin/documents/_document_bookmark.html.erb +17 -0
- data/app/views/admin/documents/_document_fields.html.erb +24 -0
- data/app/views/admin/documents/_form.html.erb +49 -0
- data/app/views/admin/documents/_form_control.html.erb +86 -0
- data/app/views/admin/documents/_form_group.html.erb +1 -0
- data/app/views/admin/documents/_form_header.html.erb +1 -0
- data/app/views/admin/documents/_form_nav.html.erb +21 -0
- data/app/views/admin/documents/_json_aardvark.jbuilder +47 -0
- data/app/views/admin/documents/_json_btaa_aardvark.jbuilder +16 -0
- data/app/views/admin/documents/_json_gbl_v1.jbuilder +32 -0
- data/app/views/admin/documents/_result_facets.html.erb +35 -0
- data/app/views/admin/documents/_result_pagination.html.erb +21 -0
- data/app/views/admin/documents/_result_selected_options.html.erb +54 -0
- data/app/views/admin/documents/_result_selection_options.html.erb +10 -0
- data/app/views/admin/documents/_result_toggle.html.erb +13 -0
- data/app/views/admin/documents/edit.html.erb +7 -0
- data/app/views/admin/documents/features/_assets.html.erb +3 -0
- data/app/views/admin/documents/features/_institutional_access_links.html.erb +3 -0
- data/app/views/admin/documents/features/_multiple_download_links.html.erb +27 -0
- data/app/views/admin/documents/fetch.json_aardvark.jbuilder +9 -0
- data/app/views/admin/documents/fetch.json_btaa_aardvark.jbuilder +9 -0
- data/app/views/admin/documents/fetch.json_gbl_v1.jbuilder +9 -0
- data/app/views/admin/documents/index.html.erb +49 -0
- data/app/views/admin/documents/index.json_aardvark.jbuilder +9 -0
- data/app/views/admin/documents/index.json_btaa_aardvark.jbuilder +9 -0
- data/app/views/admin/documents/index.json_gbl_v1.jbuilder +9 -0
- data/app/views/admin/documents/show.json_aardvark.jbuilder +3 -0
- data/app/views/admin/documents/show.json_btaa_aardvark.jbuilder +3 -0
- data/app/views/admin/documents/show.json_gbl_v1.jbuilder +3 -0
- data/app/views/admin/documents/versions.html.erb +110 -0
- data/app/views/admin/elements/_element.json.jbuilder +2 -0
- data/app/views/admin/elements/_form.html.erb +45 -0
- data/app/views/admin/elements/edit.html.erb +6 -0
- data/app/views/admin/elements/index.html.erb +68 -0
- data/app/views/admin/elements/index.json.jbuilder +1 -0
- data/app/views/admin/elements/new.html.erb +5 -0
- data/app/views/admin/elements/show.html.erb +121 -0
- data/app/views/admin/elements/show.json.jbuilder +1 -0
- data/app/views/admin/form_elements/_form.html.erb +46 -0
- data/app/views/admin/form_elements/_form_element.json.jbuilder +2 -0
- data/app/views/admin/form_elements/edit.html.erb +6 -0
- data/app/views/admin/form_elements/index.html.erb +49 -0
- data/app/views/admin/form_elements/index.json.jbuilder +1 -0
- data/app/views/admin/form_elements/new.html.erb +5 -0
- data/app/views/admin/form_elements/show.html.erb +19 -0
- data/app/views/admin/form_elements/show.json.jbuilder +1 -0
- data/app/views/admin/ids/fetch.json.jbuilder +86 -0
- data/app/views/admin/ids/index.json.jbuilder +41 -0
- data/app/views/admin/import_documents/show.html.haml +20 -0
- data/app/views/admin/imports/_form.html.erb +27 -0
- data/app/views/admin/imports/_import.json.jbuilder +4 -0
- data/app/views/admin/imports/_show_failed_tab.html.erb +37 -0
- data/app/views/admin/imports/_show_success_tab.html.erb +31 -0
- data/app/views/admin/imports/edit.html.erb +8 -0
- data/app/views/admin/imports/index.html.erb +56 -0
- data/app/views/admin/imports/index.json.jbuilder +3 -0
- data/app/views/admin/imports/new.html.erb +7 -0
- data/app/views/admin/imports/show.html.erb +123 -0
- data/app/views/admin/imports/show.json.jbuilder +3 -0
- data/app/views/admin/layouts/application.html.erb +30 -0
- data/app/views/admin/layouts/blazer/application.html.erb +23 -0
- data/app/views/admin/layouts/mailer.html.erb +13 -0
- data/app/views/admin/layouts/mailer.text.erb +1 -0
- data/app/views/admin/mappings/_form.html.erb +17 -0
- data/app/views/admin/mappings/_mapping.json.jbuilder +4 -0
- data/app/views/admin/mappings/edit.html.erb +6 -0
- data/app/views/admin/mappings/index.html.erb +37 -0
- data/app/views/admin/mappings/index.json.jbuilder +3 -0
- data/app/views/admin/mappings/new.html.erb +5 -0
- data/app/views/admin/mappings/show.html.erb +27 -0
- data/app/views/admin/mappings/show.json.jbuilder +3 -0
- data/app/views/admin/notifications/_notification.html.haml +31 -0
- data/app/views/admin/notifications/index.html.erb +54 -0
- data/app/views/admin/notifications/update.js.erb +7 -0
- data/app/views/admin/search/index.html.erb +38 -0
- data/app/views/admin/shared/_flash_messages.html.erb +5 -0
- data/app/views/admin/shared/_footer.html.erb +56 -0
- data/app/views/admin/shared/_js_behaviors.html.erb +147 -0
- data/app/views/admin/shared/_navbar.html.erb +78 -0
- data/app/views/admin/shared/_navbar_blazer.html.erb +42 -0
- data/app/views/admin/shared/_schema_timestamp.html.erb +16 -0
- data/app/views/admin/shared/_toast.html.erb +13 -0
- data/app/views/admin/users/index.html.erb +21 -0
- data/config/authorities/formats.yml +25 -0
- data/config/authorities/languages.yml +50 -0
- data/config/authorities/resource_type.yml +82 -0
- data/config/blazer.yml +79 -0
- data/config/gbl_v1_schema.json +118 -0
- data/config/geomg_aardvark_schema.json +211 -0
- data/config/geomg_schema.json +123 -0
- data/config/locales/devise.en.yml +65 -0
- data/config/locales/devise_invitable.en.yml +31 -0
- data/config/locales/documents.en.yml +189 -0
- data/config/locales/en.yml +51 -0
- data/config/locales/geoblacklight.en.yml +178 -0
- data/config/locales/simple_form.en.yml +31 -0
- data/config/routes.rb +162 -0
- data/db/migrate/20230316183001_add_geoblacklight_admin.rb +399 -0
- data/db/seeds.rb +26 -0
- data/db/seeds_elements.csv +56 -0
- data/db/seeds_elements.numbers +0 -0
- data/db/seeds_form_elements.csv +71 -0
- data/db/seeds_form_elements.numbers +0 -0
- data/db/structure.sql +816 -0
- data/geoblacklight_admin.gemspec +67 -0
- data/lib/generators/geoblacklight_admin/config_generator.rb +336 -0
- data/lib/generators/geoblacklight_admin/example_docs_generator.rb +18 -0
- data/lib/generators/geoblacklight_admin/helpers_generator.rb +18 -0
- data/lib/generators/geoblacklight_admin/install_generator.rb +60 -0
- data/lib/generators/geoblacklight_admin/jobs_generator.rb +21 -0
- data/lib/generators/geoblacklight_admin/models_generator.rb +23 -0
- data/lib/generators/geoblacklight_admin/templates/.env.development.example +28 -0
- data/lib/generators/geoblacklight_admin/templates/.solr_wrapper.yml +7 -0
- data/lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb +30 -0
- data/lib/generators/geoblacklight_admin/templates/config/database.yml +18 -0
- data/lib/generators/geoblacklight_admin/templates/config/geomg_aardvark_schema.json +211 -0
- data/lib/generators/geoblacklight_admin/templates/config/initializers/geoblacklight_admin.rb +25 -0
- data/lib/generators/geoblacklight_admin/templates/config/initializers/kithe.rb +31 -0
- data/lib/generators/geoblacklight_admin/templates/config/initializers/pagy.rb +158 -0
- data/lib/generators/geoblacklight_admin/templates/config/initializers/statesman.rb +7 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/channels/consumer.js +6 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/channels/export_channel.js +30 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/channels/index.js +5 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/controllers/application_controller.js +17 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js +26 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/controllers/index.js +10 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/controllers/results_controller.js +310 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/packs/application.js +23 -0
- data/lib/generators/geoblacklight_admin/templates/javascript/src/js/admin/qa_autocomplete.js +1134 -0
- data/lib/generators/geoblacklight_admin/templates/package.json +32 -0
- data/lib/generators/geoblacklight_admin/templates/solr/README-geoblacklight-solr-development.txt +3 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/_rest_managed.json +3 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/admin-extra.html +31 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/core.properties +5 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/elevate.xml +36 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/protwords.txt +21 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/schema.xml +229 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/scripts.conf +24 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/solrconfig.xml +266 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/spellings.txt +2 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/stopwords.txt +58 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/stopwords_en.txt +58 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/synonyms.txt +43 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/xslt/example.xsl +132 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/xslt/example_atom.xsl +67 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/xslt/example_rss.xsl +66 -0
- data/lib/generators/geoblacklight_admin/templates/solr/conf/xslt/luke.xsl +337 -0
- data/lib/generators/geoblacklight_admin/templates/solr/snapshots/.keep +0 -0
- data/lib/generators/geoblacklight_admin/views_generator.rb +19 -0
- data/lib/geoblacklight_admin/engine.rb +20 -0
- data/lib/geoblacklight_admin/version.rb +5 -0
- data/lib/geoblacklight_admin.rb +7 -0
- data/lib/tasks/.keep +0 -0
- data/lib/tasks/geoblacklight_admin.rake +209 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +35 -0
- data/template.rb +16 -0
- metadata +1037 -0
@@ -0,0 +1,344 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# @TODO
|
4
|
+
# - Centroids
|
5
|
+
# - GeoNames
|
6
|
+
module GeoblacklightAdmin
|
7
|
+
class FieldMappingsGblv1
|
8
|
+
def self.call
|
9
|
+
{
|
10
|
+
dc_title_s: {
|
11
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:title],
|
12
|
+
delimited: false,
|
13
|
+
transformation_method: nil
|
14
|
+
},
|
15
|
+
alternativeTitle_sm: {
|
16
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:alternative_title],
|
17
|
+
delimited: true,
|
18
|
+
transformation_method: nil
|
19
|
+
},
|
20
|
+
dct_alternativeTitle_sm: {
|
21
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:alternative_title],
|
22
|
+
delimited: true,
|
23
|
+
transformation_method: nil
|
24
|
+
},
|
25
|
+
dc_description_s: {
|
26
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:description],
|
27
|
+
delimited: false,
|
28
|
+
transformation_method: nil
|
29
|
+
},
|
30
|
+
dc_language_s: {
|
31
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:language],
|
32
|
+
delimited: true,
|
33
|
+
transformation_method: nil
|
34
|
+
},
|
35
|
+
dc_language_sm: {
|
36
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:language],
|
37
|
+
delimited: true,
|
38
|
+
transformation_method: nil
|
39
|
+
},
|
40
|
+
dc_publisher_s: {
|
41
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:publisher],
|
42
|
+
delimited: true,
|
43
|
+
transformation_method: nil
|
44
|
+
},
|
45
|
+
dc_publisher_sm: {
|
46
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:publisher],
|
47
|
+
delimited: true,
|
48
|
+
transformation_method: nil
|
49
|
+
},
|
50
|
+
dc_creator_sm: {
|
51
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:creator],
|
52
|
+
delimited: true,
|
53
|
+
transformation_method: nil
|
54
|
+
},
|
55
|
+
b1g_genre_sm: {
|
56
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:resource_class],
|
57
|
+
delimited: true,
|
58
|
+
transformation_method: nil
|
59
|
+
},
|
60
|
+
dc_subject_sm: {
|
61
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:subject],
|
62
|
+
delimited: true,
|
63
|
+
transformation_method: nil
|
64
|
+
},
|
65
|
+
b1g_keyword_sm: {
|
66
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:keyword],
|
67
|
+
delimited: true,
|
68
|
+
transformation_method: nil
|
69
|
+
},
|
70
|
+
dct_issued_s: {
|
71
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_issued],
|
72
|
+
delimited: false,
|
73
|
+
transformation_method: nil
|
74
|
+
},
|
75
|
+
dct_temporal_sm: {
|
76
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:temporal_coverage],
|
77
|
+
delimited: true,
|
78
|
+
transformation_method: nil
|
79
|
+
},
|
80
|
+
b1g_date_range_drsim: {
|
81
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_range],
|
82
|
+
delimited: true,
|
83
|
+
transformation_method: nil
|
84
|
+
},
|
85
|
+
dct_spatial_sm: {
|
86
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:spatial_coverage],
|
87
|
+
delimited: true,
|
88
|
+
transformation_method: nil
|
89
|
+
},
|
90
|
+
b1g_geonames_sm: {
|
91
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:geonames],
|
92
|
+
delimited: true,
|
93
|
+
transformation_method: nil
|
94
|
+
},
|
95
|
+
solr_geom: {
|
96
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:geometry],
|
97
|
+
delimited: false,
|
98
|
+
transformation_method: nil
|
99
|
+
},
|
100
|
+
dc_format_s: {
|
101
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:format],
|
102
|
+
delimited: false,
|
103
|
+
transformation_method: nil
|
104
|
+
},
|
105
|
+
layer_geom_type_s: {
|
106
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:resource_type],
|
107
|
+
delimited: false,
|
108
|
+
transformation_method: nil
|
109
|
+
},
|
110
|
+
layer_id_s: {
|
111
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:wxs_identifier],
|
112
|
+
delimited: false,
|
113
|
+
transformation_method: nil
|
114
|
+
},
|
115
|
+
dct_references_s: {
|
116
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:reference],
|
117
|
+
delimited: false,
|
118
|
+
transformation_method: "build_dct_references"
|
119
|
+
},
|
120
|
+
b1g_image_ss: {
|
121
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:b1g_image_url],
|
122
|
+
delimited: false,
|
123
|
+
transformation_method: nil
|
124
|
+
},
|
125
|
+
dc_identifier_s: {
|
126
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:identifier],
|
127
|
+
delimited: false,
|
128
|
+
transformation_method: nil
|
129
|
+
},
|
130
|
+
layer_slug_s: {
|
131
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:id],
|
132
|
+
delimited: false,
|
133
|
+
transformation_method: nil
|
134
|
+
},
|
135
|
+
dct_provenance_s: {
|
136
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:provider],
|
137
|
+
delimited: false,
|
138
|
+
transformation_method: nil
|
139
|
+
},
|
140
|
+
b1g_code_s: {
|
141
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:code],
|
142
|
+
delimited: false,
|
143
|
+
transformation_method: nil
|
144
|
+
},
|
145
|
+
dct_isPartOf_sm: {
|
146
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:is_part_of],
|
147
|
+
delimited: true,
|
148
|
+
transformation_method: nil
|
149
|
+
},
|
150
|
+
dc_source_sm: {
|
151
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:source],
|
152
|
+
delimited: true,
|
153
|
+
transformation_method: nil
|
154
|
+
},
|
155
|
+
b1g_status_s: {
|
156
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:status],
|
157
|
+
delimited: false,
|
158
|
+
transformation_method: nil
|
159
|
+
},
|
160
|
+
dct_accrualMethod_s: {
|
161
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:accrual_method],
|
162
|
+
delimited: false,
|
163
|
+
transformation_method: nil
|
164
|
+
},
|
165
|
+
"Accrual Periodicity": {
|
166
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:accrual_periodicity],
|
167
|
+
delimited: false,
|
168
|
+
transformation_method: nil
|
169
|
+
},
|
170
|
+
b1g_dateAccessioned_s: {
|
171
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_accessioned],
|
172
|
+
delimited: false,
|
173
|
+
transformation_method: nil
|
174
|
+
},
|
175
|
+
b1g_dateRetired_s: {
|
176
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_retired],
|
177
|
+
delimited: false,
|
178
|
+
transformation_method: nil
|
179
|
+
},
|
180
|
+
dc_rights_s: {
|
181
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:rights],
|
182
|
+
delimited: false,
|
183
|
+
transformation_method: nil
|
184
|
+
},
|
185
|
+
dct_accessRights_sm: {
|
186
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:access_rights],
|
187
|
+
delimited: true,
|
188
|
+
transformation_method: nil
|
189
|
+
},
|
190
|
+
suppressed_b: {
|
191
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:suppressed_record],
|
192
|
+
delimited: false,
|
193
|
+
transformation_method: nil
|
194
|
+
},
|
195
|
+
b1g_child_record_b: {
|
196
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:child_record],
|
197
|
+
delimited: false,
|
198
|
+
transformation_method: nil
|
199
|
+
},
|
200
|
+
solr_year_i: {
|
201
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:index_year],
|
202
|
+
delimited: false,
|
203
|
+
transformation_method: nil
|
204
|
+
},
|
205
|
+
layer_modified_dt: {
|
206
|
+
destination: "layer_modified_dt",
|
207
|
+
delimited: false,
|
208
|
+
transformation_method: nil
|
209
|
+
},
|
210
|
+
dct_mediator_sm: {
|
211
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:mediator],
|
212
|
+
delimited: false,
|
213
|
+
transformation_method: nil
|
214
|
+
},
|
215
|
+
score: {
|
216
|
+
destination: "Discard",
|
217
|
+
delimited: false,
|
218
|
+
transformation_method: nil
|
219
|
+
},
|
220
|
+
cugir_category_sm: {
|
221
|
+
destination: "cugir_category_sm",
|
222
|
+
delimited: false,
|
223
|
+
transformation_method: nil
|
224
|
+
},
|
225
|
+
solr_bboxtype: {
|
226
|
+
destination: "Discard",
|
227
|
+
delimited: false,
|
228
|
+
transformation_method: nil
|
229
|
+
},
|
230
|
+
b1g_access_s: {
|
231
|
+
destination: GeoblacklightAdmin::Schema.instance.solr_fields[:access],
|
232
|
+
delimited: false,
|
233
|
+
transformation_method: nil
|
234
|
+
},
|
235
|
+
geoblacklight_version: {
|
236
|
+
destination: "Discard",
|
237
|
+
delimited: false,
|
238
|
+
transformation_method: nil
|
239
|
+
},
|
240
|
+
nyu_addl_dspace_s: {
|
241
|
+
destination: "nyu_addl_dspace_s",
|
242
|
+
delimited: false,
|
243
|
+
transformation_method: nil
|
244
|
+
},
|
245
|
+
b1g_collection_sm: {
|
246
|
+
destination: "b1g_collection_sm",
|
247
|
+
delimited: false,
|
248
|
+
transformation_method: nil
|
249
|
+
},
|
250
|
+
georss_polygon_s: {
|
251
|
+
destination: "georss_polygon_s",
|
252
|
+
delimited: false,
|
253
|
+
transformation_method: nil
|
254
|
+
},
|
255
|
+
dct_accrual_sm: {
|
256
|
+
destination: "dct_accrual_sm",
|
257
|
+
delimited: false,
|
258
|
+
transformation_method: nil
|
259
|
+
},
|
260
|
+
solr_bboxtype__maxX: {
|
261
|
+
destination: "Discard",
|
262
|
+
delimited: false,
|
263
|
+
transformation_method: nil
|
264
|
+
},
|
265
|
+
solr_bboxtype__minX: {
|
266
|
+
destination: "Discard",
|
267
|
+
delimited: false,
|
268
|
+
transformation_method: nil
|
269
|
+
},
|
270
|
+
solr_bboxtype__maxY: {
|
271
|
+
destination: "Discard",
|
272
|
+
delimited: false,
|
273
|
+
transformation_method: nil
|
274
|
+
},
|
275
|
+
solr_bboxtype__minY: {
|
276
|
+
destination: "Discard",
|
277
|
+
delimited: false,
|
278
|
+
transformation_method: nil
|
279
|
+
},
|
280
|
+
call_number_s: {
|
281
|
+
destination: "call_number_s",
|
282
|
+
delimited: false,
|
283
|
+
transformation_method: nil
|
284
|
+
},
|
285
|
+
timestamp: {
|
286
|
+
destination: "Discard",
|
287
|
+
delimited: false,
|
288
|
+
transformation_method: nil
|
289
|
+
},
|
290
|
+
b1g_centroid_ss: {
|
291
|
+
destination: "Discard",
|
292
|
+
delimited: false,
|
293
|
+
transformation_method: nil
|
294
|
+
},
|
295
|
+
cugir_addl_downloads_s: {
|
296
|
+
destination: "cugir_addl_downloads_s",
|
297
|
+
delimited: false,
|
298
|
+
transformation_method: nil
|
299
|
+
},
|
300
|
+
cugir_filesize_s: {
|
301
|
+
destination: "cugir_filesize_s",
|
302
|
+
delimited: false,
|
303
|
+
transformation_method: nil
|
304
|
+
},
|
305
|
+
_version_: {
|
306
|
+
destination: "Discard",
|
307
|
+
delimited: false,
|
308
|
+
transformation_method: nil
|
309
|
+
},
|
310
|
+
stanford_rights_metadata_s: {
|
311
|
+
destination: "stanford_rights_metadata_s",
|
312
|
+
delimited: false,
|
313
|
+
transformation_method: nil
|
314
|
+
}
|
315
|
+
}
|
316
|
+
end
|
317
|
+
|
318
|
+
def self.uri_2_category_references_mappings
|
319
|
+
ActiveSupport::HashWithIndifferentAccess.new({
|
320
|
+
"http://www.opengis.net/def/serviceType/ogc/wcs": "wcs",
|
321
|
+
"http://www.opengis.net/def/serviceType/ogc/wms": "wms",
|
322
|
+
"http://www.opengis.net/def/serviceType/ogc/wfs": "wfs",
|
323
|
+
"http://iiif.io/api/image": "iiif_image",
|
324
|
+
"http://iiif.io/api/presentation#manifest": "iiif_manifest",
|
325
|
+
"http://schema.org/image": "image",
|
326
|
+
"http://schema.org/downloadUrl": "download",
|
327
|
+
"http://schema.org/thumbnailUrl": "thumbnail",
|
328
|
+
"http://lccn.loc.gov/sh85035852": "documentation_download",
|
329
|
+
"http://schema.org/url": "documentation_external",
|
330
|
+
"http://www.isotc211.org/schemas/2005/gmd/": "metadata_iso",
|
331
|
+
"http://www.opengis.net/cat/csw/csdgm": "metadata_fgdc",
|
332
|
+
"http://www.loc.gov/mods/v3": "metadata_mods",
|
333
|
+
"http://www.w3.org/1999/xhtml": "metadata_html",
|
334
|
+
"urn:x-esri:serviceType:ArcGIS#FeatureLayer": "arcgis_feature_layer",
|
335
|
+
"urn:x-esri:serviceType:ArcGIS#TiledMapLayer": "arcgis_tiled_map_layer",
|
336
|
+
"urn:x-esri:serviceType:ArcGIS#DynamicMapLayer": "arcgis_dynamic_map_layer",
|
337
|
+
"urn:x-esri:serviceType:ArcGIS#ImageMapLayer": "arcgis_image_map_layer",
|
338
|
+
"http://schema.org/DownloadAction": "harvard",
|
339
|
+
"https://openindexmaps.org": "open_index_map",
|
340
|
+
"https://oembed.com": "oembed"
|
341
|
+
})
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|