Sha256: c0bc0c6ab7a3931c20fc3eb934a95a402569a3e95ed27e605ed2c3086bb2fc51
Contents?: true
Size: 599 Bytes
Versions: 40
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true module Cocina module Models module Mapping module FromMods # Decides how to build a title based on whether this is a registered Hydrus object or not. class TitleBuilderStrategy # @param [String] label # @return [#build] a class that can build a title def self.find(label:) # Some hydrus items don't have titles, so using label. See https://github.com/sul-dlss/hydrus/issues/421 label == 'Hydrus' ? HydrusDefaultTitleBuilder : Title end end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems