lib/object_factory_writer.rb
def put(context)
    relators = parse_relators(context.delete("names"),
                              context.delete("relators"))
    if relators.blank?
      logger.warn "Skipping #{context["identifier"]}: "\
                  "Names in field 720a don't match relators in field 720e"
      return
    end

    attributes = base_attributes(
      context.with_indifferent_access,
      relators
    ).with_indifferent_access

    build_object(
      attributes,
      find_files_to_attach(attributes)
    )
  end
# Add a single context to fedora
Add a single context to fedora
Add a single context to fedora
def put(context)
    relators = parse_relators(context.delete("names"),
                              context.delete("relators"))
    if relators.blank?
      logger.warn "Skipping #{context["identifier"]}: "\
                  "Names in field 720a don't match relators in field 720e"
      return
    end
    attributes = base_attributes(
      context.with_indifferent_access,
      relators
    ).with_indifferent_access
    build_object(
      attributes,
      find_files_to_attach(attributes)
    )
  end
def put ( context ) relators = parse_relators ( context . delete ( "names" ) , context . delete ( "relators" ) ) if relators . blank? logger . warn "Skipping #{context["identifier"]}: " "Names in field 720a don't match relators in field 720e" return end attributes = base_attributes ( context . with_indifferent_access , relators ) . with_indifferent_access build_object ( attributes , find_files_to_attach ( attributes ) ) end
Add a single context to fedora
Add a single context to fedora
context