Class: OverdriveMetadata::EBook

Inherits:
ERecord
  • Object
show all
Defined in:
lib/overdrive_metadata.rb

Constant Summary

Constants inherited from ERecord

OverdriveMetadata::ERecord::DATE_ERR, OverdriveMetadata::ERecord::FIXF_ERR, OverdriveMetadata::ERecord::GMD, OverdriveMetadata::ERecord::TITL_ERR

Instance Attribute Summary collapse

Attributes inherited from ERecord

#record

Instance Method Summary collapse

Methods inherited from ERecord

#make_control_field, #make_data_field, #make_fixed_field, #make_publication, #make_title, #non_filing_characters

Constructor Details

#initializeEBook

Returns a new instance of EBook.



282
283
284
285
286
287
288
# File 'lib/overdrive_metadata.rb', line 282

def initialize
  super
  @ldr[6]  = 'a'
  @fixed_field = '      s        xxu|||| s      0||| eng d'
  @isbn = '(electronic bk. : OverDrive Electronic Book)'
  @subject = 'Downloadable ebooks.'
end

Instance Attribute Details

#isbnObject (readonly)

Returns the value of attribute isbn.



280
281
282
# File 'lib/overdrive_metadata.rb', line 280

def isbn
  @isbn
end

#subjectObject (readonly)

Returns the value of attribute subject.



280
281
282
# File 'lib/overdrive_metadata.rb', line 280

def subject
  @subject
end

Instance Method Details

#make_006Object



290
291
292
# File 'lib/overdrive_metadata.rb', line 290

def make_006
  make_control_field('006', 'm        d        ')
end

#make_007Object



294
295
296
# File 'lib/overdrive_metadata.rb', line 294

def make_007
  make_control_field('007', 'cr nnu---|||||')
end

#make_physical(*args) ⇒ Object



298
299
300
# File 'lib/overdrive_metadata.rb', line 298

def make_physical(*args)
  make_data_field('300', ' ', ' ', {'a' => "1 online resource."})
end