lib/gedcom/association_record.rb
#validate that the record referenced by the XREF actually exists in this transmission.
#Genearte a warning if it does not. It does not stop the processing of this line.
#Association_records default to :individual, but the TYPE field can override this.
validate that the record referenced by the XREF actually exists in this transmission.
Genearte a warning if it does not. It does not stop the processing of this line.
Association_records default to :individual, but the TYPE field can override this.
validate that the record referenced by the XREF actually exists in this transmission . Genearte a warning if it does not . It does not stop the processing of this line . Association_records default to : individual but the TYPE field can override this .
def xref_check(level, tag, xref)
    asso_index = case @associated_record_tag
    when nil then xref.index 
    when 'FAM'  then :family
    when 'INDI' then :individual
    when 'NOTE' then :note
    when 'OBJE' then :multimedia
    when 'REPO' then :repository
    when 'SOUR' then :source
    when 'SUBM' then :submitter
    when 'SUBM' then :submission
    else :individual 
    end
    super(level, tag, Xref.new(asso_index, xref.xref_value) )
  end
def xref_check ( level , tag , xref ) asso_index = case @associated_record_tag when nil then xref . index when 'FAM' then :family when 'INDI' then :individual when 'NOTE' then :note when 'OBJE' then :multimedia when 'REPO' then :repository when 'SOUR' then :source when 'SUBM' then :submitter when 'SUBM' then :submission else :individual end super ( level , tag , Xref . new ( asso_index , xref . xref_value ) ) end
validate that the record referenced by the XREF actually exists in this transmission.
validate that the record referenced by the XREF actually exists in this transmission .
#this should be the default :individual #which will be the default individual index.
level
tag
xref