Closed derrekc closed 1 month ago
date_cataloged
Background Attempt to get date_cataloged from 914d, then try 943n -- if those prove "empty", use 940f as a safe "fallback".
914d
943n
940f
Code changes: I've added lib/marc_to_argot/macros/duke/date_cataloged.rb and adjusted Duke's traject_config.rb to use the new logic.
lib/marc_to_argot/macros/duke/date_cataloged.rb
traject_config.rb
Test Specs New test spec is available at spec/macros/duke/date_cataloged_spec.rb
spec/macros/duke/date_cataloged_spec.rb
Custom Logic for
date_cataloged
(Duke)Background Attempt to get
date_cataloged
from914d
, then try943n
-- if those prove "empty", use940f
as a safe "fallback".Code changes: I've added
lib/marc_to_argot/macros/duke/date_cataloged.rb
and adjusted Duke'straject_config.rb
to use the new logic.Test Specs New test spec is available at
spec/macros/duke/date_cataloged_spec.rb