module Libis::Metadata::Mappers::Flandrica
Mixin for {::Libis::Metadata::MarcRecord} to enable conversion into {Libis::Metadata::DublinCoreRecord}. This module implements the conversion mapping for Flandrica
by extending the version for {::Libis::Metadata::Mappers::Kuleuven KU Leuven} and overwriting what's different. This means any change to the KU Leuven mapping may have effect on this mapping as well.
Protected Instance Methods
check_name(_, _)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 66 def check_name(_, _) true end
marc2dc_alternative_240_a(xml)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 39 def marc2dc_alternative_240_a(xml) # [MARC 240 #_ $a] ", " [MARC 240 #_ $f] ", " [MARC 240 #_ $g] ", " tag('240#_', 'a f g').each {|t| xml['dcterms'].alternative element(t._afg, join: ', ', postfix: ', ') } end
marc2dc_alternative_240_l(xml)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 46 def marc2dc_alternative_240_l(xml) # [MARC 240 #_ $l] ", " [MARC 240 #_ $m] ", " [MARC 240 #_ $n] ", " [MARC 240 #_ $o] ", " [MARC 240 #_ $p] ", " [MARC 240 #_ $r] ", " [MARC 240 #_ $s] tag('240#_', 'l m n o p r s').each {|t| xml['dcterms'].alternative element(t._lmnoprs, join: ', ') } end
marc2dc_identifier(xml)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 20 def marc2dc_identifier(xml) Libis::Metadata::Mappers::Kuleuven.marc2dc_identifier(xml) marc2dc_identifier_040(xml) end
marc2dc_identifier_001(xml)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 25 def marc2dc_identifier_001(xml) # "urn:ControlNumber:" [MARC 001] tag('001').each {|t| xml['dc'].identifier element(t.datas, prefix: '') } end
marc2dc_identifier_040(xml)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 32 def marc2dc_identifier_040(xml) # [MARC 040 $a] tag('040', 'a').each {|t| xml['dc'].identifier('xsi:type' => 'dcterms:URI').text t._a } end
marc2dc_source_856(xml)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 53 def marc2dc_source_856(xml) marc2dc_source_856__1(xml) marc2dc_source_856__2(xml) marc2dc_source_856___(xml) end
marc2dc_source_856___(xml)
click to toggle source
# File lib/libis/metadata/mappers/flandrica.rb, line 59 def marc2dc_source_856___(xml) # [MARC 856 ## $a] tag('856', 'a').each {|t| xml['dc'].source('xsi:type' => 'dcterms:URI').text element(t._a) } end