Sha256: efc8c5e86a8fb598972ca4e3d493bbd04a8c3c46cef4eab4c185179b01258ba1

Contents?: true

Size: 748 Bytes

Versions: 20

Compression:

Stored size: 748 Bytes

Contents

module ADIWG
  module Mdtranslator
    module Writers
      module SbJson
        module Facet
          def self.build(intObj)
            facets = []
            if intObj[:resourceType] == 'project'
              status = {
                completed: 'Completed',
                underDevelopment: 'Active',
                accepted: 'Approved',
                funded: 'Funded',
                onGoing: 'In Progress',
                proposed: 'Proposed'
              }
              facets << {
                className: 'gov.sciencebase.catalog.item.facet.ProjectFacet',
                projectStatus: status[:"#{intObj[:status]}"]
              }

            end

            facets
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.0.0rc8 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-2.0.0rc7 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-2.0.0rc6 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-2.0.0rc5 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-2.0.0rc4 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-2.0.0rc3 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-2.0.0rc2 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta14 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta13 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta12 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta11 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta10 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta9 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta8 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta7 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta6 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta5 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_facet.rb