Class: SfxDb::AzTitle
Instance Method Summary
collapse
Methods inherited from SfxDbBase
fetch_sfx_urls, #readonly?
Instance Method Details
#to_context_object ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'app/models/sfx_db/az_title.rb', line 18
def to_context_object
co = OpenURL::ContextObject.new
co.referent = OpenURL::ContextObjectEntity.new_from_format( 'info:ofi/fmt:xml:xsd:journal' )
co.referent.set_metadata('jtitle', self.TITLE_DISPLAY)
co.referent.set_metadata('object_id', self.OBJECT_ID.to_s)
pub = self.object ? self.object.publishers.first : nil
if ( pub )
co.referent.set_metadata('pub', pub.PUBLISHER_DISPLAY )
co.referent.set_metadata('place', pub.PLACE_OF_PUBLICATION_DISPLAY)
end
return co
end
|