Class: Identifier::Global::Isbn

Inherits:
Identifier::Global show all
Defined in:
app/models/identifier/global/isbn.rb

Constant Summary

Constants inherited from Identifier

SHORT_NAMES

Instance Method Summary collapse

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Method Details

#ten_or_thirteen_digits?Boolean

doesn't allow blank identifier, because can only create an object if it has an identifier.

Returns:

  • (Boolean)


25
26
27
28
29
30
31
32
33
# File 'app/models/identifier/global/isbn.rb', line 25

def ten_or_thirteen_digits?
  #TODO beth will talk to Jim when she gets back from vacation on how to correctly extract only the digits from the string.
  #count = 0
  #carray = self.chars
  #carray.each do |c|
  #  if c.is_digit?
  #end

end