lib/relaton/db.rb in relaton-1.14.0 vs lib/relaton/db.rb in relaton-1.14.1
- old
+ new
@@ -275,10 +275,12 @@
# RelatonGb::GbbibliographicItem, RelatonOgc::OgcBibliographicItem,
# RelatonCalconnect::CcBibliographicItem, RelatinUn::UnBibliographicItem,
# RelatonBipm::BipmBibliographicItem, RelatonIho::IhoBibliographicItem,
# RelatonOmg::OmgBibliographicItem, RelatonW3c::W3cBibliographicItem]
def combine_doc(code, year, opts, stdclass) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
+ return if stdclass == :relaton_bipm
+
if (refs = code.split " + ").size > 1
reltype = "derivedFrom"
reldesc = nil
elsif (refs = code.split ", ").size > 1
reltype = "complements"
@@ -525,11 +527,9 @@
globalname = global_bibliocache_name if opts[:global_cache]
localname = local_bibliocache_name(opts[:local_cache])
flush_caches globalname, localname if opts[:flush_caches]
Relaton::Db.new(globalname, localname)
end
-
- private
def flush_caches(gcache, lcache)
FileUtils.rm_rf gcache unless gcache.nil?
FileUtils.rm_rf lcache unless lcache.nil?
end