Module: Exlibris::Primo::Pnx::Frbr

Included in:
Record
Defined in:
lib/exlibris/primo/pnx/frbr.rb

Overview

Handle frbr records

Instance Method Summary collapse

Instance Method Details

#frbr?Boolean

Is this a frbr’d record

Returns:

  • (Boolean)


11
12
13
14
15
16
17
18
# File 'lib/exlibris/primo/pnx/frbr.rb', line 11

def frbr?
  if (respond_to? :facets_frbrgroupid) && (facets_frbrtype != "6")
    @frbr = true
  else
    @frbr = false
  end
  @frbr
end

#frbr_idObject

Returns the frbr id of this record if there is one.



23
24
25
# File 'lib/exlibris/primo/pnx/frbr.rb', line 23

def frbr_id
  @frbr_id ||= facets_frbrgroupid if frbr?
end