Class: Source::Verbatim

Inherits:
Source
  • Object
show all
Defined in:
app/models/source/verbatim.rb

Overview

Verbatim - Subclass of Source that represents a pasted copy of a reference. This class is provided to support rapid data entry for later normalization. Once the Source::Verbatim information has been broken down into a a valid Source::Bibtex or Source:Human, the verbatim source is no longer available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Housekeeping::Users

#alive?, #set_created_by_id, #set_updated_by_id

Instance Attribute Details

#verbatimObject

This is the only valid attribute of Source::Verbatim. It is the verbatim representation of the source.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'app/models/source/verbatim.rb', line 8

class Source::Verbatim < Source
  #TODO set cached values!
  before_save :set_cached_values

  def authority_name
    # TODO what should this be?
    return ''
  end

  protected

  def set_cached_values
    self.cached_author_string = authority_name
    self.cached = self.verbatim
  end

end

Instance Method Details

#authority_nameObject



12
13
14
15
# File 'app/models/source/verbatim.rb', line 12

def authority_name
  # TODO what should this be?
  return ''
end