lib/relaton/db.rb in relaton-0.5.6 vs lib/relaton/db.rb in relaton-0.5.7

- old
+ new

@@ -144,10 +144,10 @@ # RelatonNist::NistBibliongraphicItem, RelatonGb::GbbibliographicItem] def check_bibliocache(code, year, opts, stdclass) id, searchcode = std_id(code, year, opts, stdclass) yaml = @static_db[id] return @registry.processors[stdclass].hash_to_bib YAML.safe_load(yaml) if yaml - + db = @local_db || @db altdb = @local_db && @db ? @db : nil bibentry = new_bib_entry(searchcode, year, opts, stdclass, db: db, id: id) return bib_retval(bibentry, stdclass, id) if db.nil?