Class: OpenURL::Dissertation

Inherits:
ScholarlyCommon show all
Defined in:
lib/openurl/metadata_formats/dissertation.rb

Instance Attribute Summary

Attributes inherited from ScholarlyCommon

#authors

Attributes inherited from ContextObjectEntity

#abbr, #format, #identifiers, #label, #metadata, #private_data, #reference

Instance Method Summary collapse

Methods inherited from ScholarlyCommon

#add_author, #genre, #import_xml_metadata, #method_missing, #remove_author, #respond_to?, #serialize_metadata, #set_metadata

Methods inherited from ContextObjectEntity

#add_identifier, #delete_identifier, #empty?, #get_metadata, #identifier, #import_xml_metadata, #kev, new_from_format, normalize_id, #serialize_metadata, #set_format, #set_metadata, #set_private_data, #set_reference, #to_hash, #xml, #xml_for_ref_entity

Constructor Details

#initializeDissertation

Returns a new instance of Dissertation.



15
16
17
18
19
20
21
22
23
# File 'lib/openurl/metadata_formats/dissertation.rb', line 15

def initialize
  super()
  @format = 'dissertation'
  @metadata_keys = ['title','co','cc','inst','advisor','date','tpages',
    'isbn','degree'
    ]
  @xml_ns = "info:ofi/fmt:xml:xsd:dissertation"
  @kev_ns = "info:ofi/fmt:kev:mtx:dissertation"
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenURL::ScholarlyCommon

Instance Method Details

#genre=(genre) ⇒ Object

Raises:

  • (ArgumentError)


24
25
26
# File 'lib/openurl/metadata_formats/dissertation.rb', line 24

def genre=(genre)
  raise ArgumentError, "Genre is not a valid #{self.class} metadata key."      
end