Module: Zizia

Defined in:
lib/zizia.rb,
lib/zizia/spec.rb,
lib/zizia/engine.rb,
lib/zizia/parser.rb,
lib/zizia/version.rb,
lib/zizia/importer.rb,
lib/zizia/validator.rb,
lib/zizia/hash_mapper.rb,
lib/zizia/csv_template.rb,
lib/zizia/input_record.rb,
lib/zizia/metadata_mapper.rb,
lib/zizia/record_importer.rb,
app/models/zizia/csv_import.rb,
app/lib/zizia/metadata_usage.rb,
lib/zizia/parsers/csv_parser.rb,
app/lib/zizia/work_attributes.rb,
app/jobs/zizia/application_job.rb,
app/lib/zizia/metadata_details.rb,
app/models/zizia/pre_ingest_file.rb,
app/models/zizia/pre_ingest_work.rb,
app/models/zizia/csv_import_detail.rb,
lib/zizia/always_invalid_validator.rb,
app/jobs/zizia/start_csv_import_job.rb,
lib/zizia/hyrax/metadata_only_stack.rb,
app/helpers/zizia/application_helper.rb,
lib/zizia/validators/title_validator.rb,
lib/zizia/hyrax/based_near_attributes.rb,
lib/zizia/hyrax/hyrax_default_updater.rb,
lib/zizia/hyrax/hyrax_record_importer.rb,
app/helpers/zizia/metadata_details_helper.rb,
app/uploaders/zizia/csv_manifest_uploader.rb,
lib/zizia/validators/csv_format_validator.rb,
app/uploaders/zizia/csv_manifest_validator.rb,
lib/zizia/hyrax/hyrax_delete_files_updater.rb,
lib/zizia/hyrax/hyrax_basic_metadata_mapper.rb,
lib/zizia/hyrax/hyrax_metadata_only_updater.rb,
app/controllers/zizia/csv_imports_controller.rb,
app/controllers/zizia/metadata_details_controller.rb,
app/controllers/zizia/csv_import_details_controller.rb,
app/controllers/zizia/importer_documentation_controller.rb

Overview

Validate a CSV file.

Don't put expensive validations in this class. This is meant to be used for running a few quick validations before starting a CSV-based import. It will be called during the HTTP request/response, so long-running validations will make the page load slowly for the user. Any validations that are slow should be run in background jobs during the import instead of here.

Defined Under Namespace

Modules: ApplicationHelper, MetadataDetailsHelper, Spec Classes: AlwaysInvalidValidator, ApplicationJob, BasedNearAttributes, Configuration, CsvFormatValidator, CsvImport, CsvImportDetail, CsvImportDetailsController, CsvImportsController, CsvManifestUploader, CsvManifestValidator, CsvParser, CsvTemplate, Engine, HashMapper, HyraxBasicMetadataMapper, HyraxDefaultUpdater, HyraxDeleteFilesUpdater, HyraxMetadataOnlyUpdater, HyraxRecordImporter, Importer, ImporterDocumentationController, InputRecord, MetadataDetails, MetadataDetailsController, MetadataMapper, MetadataOnlyStack, MetadataUsage, Parser, PreIngestFile, PreIngestWork, RecordImporter, StartCsvImportJob, TitleValidator, Validator, WorkAttributes

Constant Summary collapse

VERSION =
'6.0.0'

Class Method Summary collapse

Class Method Details

.config {|config| ... } ⇒ Zizia::Configuration

Returns the current configuration.

Yields:

  • the current configuration

Yield Parameters:

Returns:


29
30
31
32
# File 'lib/zizia.rb', line 29

def config
  yield @configuration if block_given?
  @configuration
end