Sha256: 1afd533ca93a625878bc44002585dee5cfd66a5e4d6c8cc6ce51356dda88696f

Contents?: true

Size: 556 Bytes

Versions: 10

Compression:

Stored size: 556 Bytes

Contents

module Exlibris
  module Primo
    module Pnx
      #
      # Handle frbr records
      #
      module Frbr
        #
        # Is this a frbr'd record
        #
        def frbr?
          if (respond_to? :facets_frbrgroupid) && (facets_frbrtype != "6")
            @frbr = true
          else
            @frbr = false
          end
          @frbr
        end

        #
        # Returns the frbr id of this record if there is one.
        #
        def frbr_id
          @frbr_id ||= facets_frbrgroupid if frbr?
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-2.1.0 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-2.0.0 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-1.1.9 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-1.1.8 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-1.1.7 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-1.1.6 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-1.1.5 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-1.1.4 lib/exlibris/primo/pnx/frbr.rb
exlibris-primo-1.1.3 lib/exlibris/primo/pnx/frbr.rb