Class: MarcXMLAccessionConverter

Inherits:
MarcXMLConverter show all
Defined in:
backend/app/converters/marcxml_accession_converter.rb

Constant Summary

Constants included from MarcXMLBaseMap

MarcXMLBaseMap::AUTH_SUBJECT_SOURCE, MarcXMLBaseMap::BIB_SUBJECT_SOURCE

Class Method Summary (collapse)

Methods inherited from MarcXMLConverter

configure, for_subjects_and_agents_only, profile

Methods included from MarcXMLBaseMap

#BASE_RECORD_MAP, #adds_agent_term, #adds_prefixed_qualifier, #agent_as_subject, #agent_template, #appends_subordinate_name_2, #bibliography_note_template, #concatenate_subfields, #corp_template, #corp_variation, #creators_and_sources, #family_template, #is_fallback_resource_title, #make_term, #multipart_note, #name_corp_map, #name_family_map, #name_person_map, #person_template, #record_type, #sets_name_order_from_ind1, #sets_name_source_from_code, #sets_other_name_source, #sets_primary_and_rest_of_name, #sets_subject_source, #sets_use_date_from_code_d, #singlepart_note, #subfield_template, #subject_template

Methods included from ASpaceImport::XML::DOM

#config, included, #object, #process_field, #run

Methods inherited from Converter

for, #get_output_path, inherited, #initialize, list_import_types, register_converter, #remove_files

Constructor Details

This class inherits a constructor from Converter

Class Method Details

+ (Object) import_types(show_hidden = false)



4
5
6
7
8
9
10
11
# File 'backend/app/converters/marcxml_accession_converter.rb', line 4

def self.import_types(show_hidden = false)
  [
   {
     :name => "marcxml_accession",
     :description => "Import MARC XML records as Accessions"
   }
  ]
end

+ (Object) instance_for(type, input_file)



13
14
15
16
17
18
19
# File 'backend/app/converters/marcxml_accession_converter.rb', line 13

def self.instance_for(type, input_file)
  if type == "marcxml_accession"
    self.new(input_file)
  else
    nil
  end
end