lib/berkeley_library/tind/mapping/alma_base.rb
# id can be:
# 1) Alma mms id
# 2) Oskicat No
# 3) BarCode No
# When alma record is nil or un-qualified, raise error
# Input datafields - an array of record specific datafields:  for example, fft datafields, datafield 035 etc.
id can be:
1) Alma mms id
2) Oskicat No
3) BarCode No
When alma record is nil or un-qualified, raise error
Input datafields - an array of record specific datafields:  for example, fft datafields, datafield 035 etc.
id can be : 1 ) Alma mms id 2 ) Oskicat No 3 ) BarCode No When alma record is nil or un - qualified raise error Input datafields - an array of record specific datafields : for example fft datafields datafield 035 etc .
def base_tind_record(id, datafields, alma_record = nil)
          marc_record = alma_record || alma_record_from(id)
          raise ArgumentError, "#{id} has no Alma record." unless marc_record
          unless Util.qualified_alma_record?(marc_record)
            raise ArgumentError,
                  "#{id} belong to a host bibliographic record which should not be uploaded to TIND."
          end
          tind_record(id, marc_record, datafields)
        end
def base_tind_record ( id , datafields , alma_record = nil ) marc_record = alma_record || alma_record_from ( id ) raise ArgumentError , "#{id} has no Alma record." unless marc_record unless Util . qualified_alma_record? ( marc_record ) raise ArgumentError , "#{id} belong to a host bibliographic record which should not be uploaded to TIND." end tind_record ( id , marc_record , datafields ) end
id can be:
1) Alma mms id
2) Oskicat No
3) BarCode No
When alma record is nil or un-qualified, raise error
Input datafields - an array of record specific datafields:  for example, fft datafields, datafield 035 etc.
id can be : 1 ) Alma mms id 2 ) Oskicat No 3 ) BarCode No When alma record is nil or un - qualified raise error Input datafields - an array of record specific datafields : for example fft datafields datafield 035 etc .
id
<not_specific>
datafields
<not_specific>
alma_record
<not_specific>