Skip to content

Commit

Permalink
Undefined method #description showed up in the logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrama committed Jun 9, 2024
1 parent 648c1b0 commit a74928c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions local-gems/spectrum-json/lib/spectrum/bib_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,16 @@ class DigitalHolding < Holding
def self.match?(holding)
holding["library"] == "ALMA_DIGITAL"
end

["public_note", "link", "link_text", "delivery_description", "label"].each do |name|
define_method(name) do
@holding[name]
end
end

def description
@holding["delivery_description"]
end
end

class ElectronicHolding < Holding
Expand Down

0 comments on commit a74928c

Please sign in to comment.