Class: MarcXMLBibAccessionConverter

Inherits:
MarcXMLBibConverter show all
Defined in:
backend/app/converters/marcxml_bib_accession_converter.rb

Class Method Summary collapse

Methods inherited from MarcXMLBibConverter

configure, for_subjects_and_agents_only

Methods inherited from Converter

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

Constructor Details

This class inherits a constructor from Converter

Class Method Details

.import_types(show_hidden = false) ⇒ Object



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

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

.instance_for(type, input_file) ⇒ Object



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

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