Class: Summon::Document

Inherits:
Schema show all
Defined in:
lib/summon/schema/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Schema

inherited

Instance Attribute Details

#abstractObject (readonly)

Returns the value of attribute abstract.



54
55
56
# File 'lib/summon/schema/document.rb', line 54

def abstract
  @abstract
end

#authorsObject (readonly)

Returns the value of attribute authors.



10
11
12
# File 'lib/summon/schema/document.rb', line 10

def authors
  @authors
end

#availability_idObject (readonly)

Returns the value of attribute availability_id.



66
67
68
# File 'lib/summon/schema/document.rb', line 66

def availability_id
  @availability_id
end

#call_numbersObject (readonly)

Returns the value of attribute call_numbers.



37
38
39
# File 'lib/summon/schema/document.rb', line 37

def call_numbers
  @call_numbers
end

#content_typesObject (readonly)

Returns the value of attribute content_types.



8
9
10
# File 'lib/summon/schema/document.rb', line 8

def content_types
  @content_types
end

Returns the value of attribute copyright.



47
48
49
# File 'lib/summon/schema/document.rb', line 47

def copyright
  @copyright
end

#corporate_authorsObject (readonly)

Returns the value of attribute corporate_authors.



11
12
13
# File 'lib/summon/schema/document.rb', line 11

def corporate_authors
  @corporate_authors
end

#database_titleObject (readonly)

Returns the value of attribute database_title.



23
24
25
# File 'lib/summon/schema/document.rb', line 23

def database_title
  @database_title
end

#dbidObject (readonly)

Returns the value of attribute dbid.



68
69
70
# File 'lib/summon/schema/document.rb', line 68

def dbid
  @dbid
end

#deweysObject (readonly)

Returns the value of attribute deweys.



38
39
40
# File 'lib/summon/schema/document.rb', line 38

def deweys
  @deweys
end

#dissertation_advisorsObject (readonly)

Returns the value of attribute dissertation_advisors.



29
30
31
# File 'lib/summon/schema/document.rb', line 29

def dissertation_advisors
  @dissertation_advisors
end

#dissertation_categoriesObject (readonly)

Returns the value of attribute dissertation_categories.



30
31
32
# File 'lib/summon/schema/document.rb', line 30

def dissertation_categories
  @dissertation_categories
end

#dissertation_degreesObject (readonly)

Returns the value of attribute dissertation_degrees.



31
32
33
# File 'lib/summon/schema/document.rb', line 31

def dissertation_degrees
  @dissertation_degrees
end

#dissertation_degrees_datesObject (readonly)

Returns the value of attribute dissertation_degrees_dates.



32
33
34
# File 'lib/summon/schema/document.rb', line 32

def dissertation_degrees_dates
  @dissertation_degrees_dates
end

#dissertation_schoolsObject (readonly)

Returns the value of attribute dissertation_schools.



33
34
35
# File 'lib/summon/schema/document.rb', line 33

def dissertation_schools
  @dissertation_schools
end

#doiObject (readonly)

Returns the value of attribute doi.



39
40
41
# File 'lib/summon/schema/document.rb', line 39

def doi
  @doi
end

#editionObject (readonly)

Returns the value of attribute edition.



15
16
17
# File 'lib/summon/schema/document.rb', line 15

def edition
  @edition
end

#eisbnsObject (readonly)

Returns the value of attribute eisbns.



42
43
44
# File 'lib/summon/schema/document.rb', line 42

def eisbns
  @eisbns
end

#eissnsObject (readonly)

Returns the value of attribute eissns.



43
44
45
# File 'lib/summon/schema/document.rb', line 43

def eissns
  @eissns
end

#end_pageObject (readonly)

Returns the value of attribute end_page.



17
18
19
# File 'lib/summon/schema/document.rb', line 17

def end_page
  @end_page
end

#ericObject (readonly)

Returns the value of attribute eric.



67
68
69
# File 'lib/summon/schema/document.rb', line 67

def eric
  @eric
end

#fulltextObject (readonly)

Returns the value of attribute fulltext.



55
56
57
# File 'lib/summon/schema/document.rb', line 55

def fulltext
  @fulltext
end

#fulltext_hitObject (readonly)

Returns the value of attribute fulltext_hit.



73
74
75
# File 'lib/summon/schema/document.rb', line 73

def fulltext_hit
  @fulltext_hit
end

#genresObject (readonly)

Returns the value of attribute genres.



50
51
52
# File 'lib/summon/schema/document.rb', line 50

def genres
  @genres
end

#gov_doc_class_numsObject (readonly)

Returns the value of attribute gov_doc_class_nums.



45
46
47
# File 'lib/summon/schema/document.rb', line 45

def gov_doc_class_nums
  @gov_doc_class_nums
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/summon/schema/document.rb', line 3

def id
  @id
end

#in_holdingsObject (readonly)

Returns the value of attribute in_holdings.



35
36
37
# File 'lib/summon/schema/document.rb', line 35

def in_holdings
  @in_holdings
end

#isbnsObject (readonly)

Returns the value of attribute isbns.



40
41
42
# File 'lib/summon/schema/document.rb', line 40

def isbns
  @isbns
end

#isi_cited_references_countObject (readonly)

Returns the value of attribute isi_cited_references_count.



26
27
28
# File 'lib/summon/schema/document.rb', line 26

def isi_cited_references_count
  @isi_cited_references_count
end

#isi_cited_references_uriObject (readonly)

Returns the value of attribute isi_cited_references_uri.



27
28
29
# File 'lib/summon/schema/document.rb', line 27

def isi_cited_references_uri
  @isi_cited_references_uri
end

#issnsObject (readonly)

Returns the value of attribute issns.



41
42
43
# File 'lib/summon/schema/document.rb', line 41

def issns
  @issns
end

#issueObject (readonly)

Returns the value of attribute issue.



14
15
16
# File 'lib/summon/schema/document.rb', line 14

def issue
  @issue
end

#languagesObject (readonly)

Returns the value of attribute languages.



51
52
53
# File 'lib/summon/schema/document.rb', line 51

def languages
  @languages
end

#lib_guide_tabObject (readonly)

Returns the value of attribute lib_guide_tab.



70
71
72
# File 'lib/summon/schema/document.rb', line 70

def lib_guide_tab
  @lib_guide_tab
end

#libraryObject (readonly)

Returns the value of attribute library.



36
37
38
# File 'lib/summon/schema/document.rb', line 36

def library
  @library
end

Returns the value of attribute link.



58
59
60
# File 'lib/summon/schema/document.rb', line 58

def link
  @link
end

#meeting_nameObject (readonly)

Returns the value of attribute meeting_name.



21
22
23
# File 'lib/summon/schema/document.rb', line 21

def meeting_name
  @meeting_name
end

#open_urlObject (readonly)

Returns the value of attribute open_url.



60
61
62
# File 'lib/summon/schema/document.rb', line 60

def open_url
  @open_url
end

#page_countObject (readonly)

Returns the value of attribute page_count.



18
19
20
# File 'lib/summon/schema/document.rb', line 18

def page_count
  @page_count
end

#patent_numberObject (readonly)

Returns the value of attribute patent_number.



44
45
46
# File 'lib/summon/schema/document.rb', line 44

def patent_number
  @patent_number
end

#peer_documentsObject (readonly)

Returns the value of attribute peer_documents.



74
75
76
# File 'lib/summon/schema/document.rb', line 74

def peer_documents
  @peer_documents
end

Returns the value of attribute print.



56
57
58
# File 'lib/summon/schema/document.rb', line 56

def print
  @print
end

#publication_dateObject (readonly)

Returns the value of attribute publication_date.



19
20
21
# File 'lib/summon/schema/document.rb', line 19

def publication_date
  @publication_date
end

#publication_placeObject (readonly)

Returns the value of attribute publication_place.



20
21
22
# File 'lib/summon/schema/document.rb', line 20

def publication_place
  @publication_place
end

#publication_series_titleObject (readonly)

Returns the value of attribute publication_series_title.



7
8
9
# File 'lib/summon/schema/document.rb', line 7

def publication_series_title
  @publication_series_title
end

#publication_titleObject (readonly)

Returns the value of attribute publication_title.



6
7
8
# File 'lib/summon/schema/document.rb', line 6

def publication_title
  @publication_title
end

#publishersObject (readonly)

Returns the value of attribute publishers.



12
13
14
# File 'lib/summon/schema/document.rb', line 12

def publishers
  @publishers
end

Returns the value of attribute related_records.



75
76
77
# File 'lib/summon/schema/document.rb', line 75

def related_records
  @related_records
end

#snippetObject (readonly)

highlight



53
54
55
# File 'lib/summon/schema/document.rb', line 53

def snippet
  @snippet
end

#sourceObject (readonly)

Returns the value of attribute source.



24
25
26
# File 'lib/summon/schema/document.rb', line 24

def source
  @source
end

#spotlight_childrenObject (readonly)

Returns the value of attribute spotlight_children.



72
73
74
# File 'lib/summon/schema/document.rb', line 72

def spotlight_children
  @spotlight_children
end

#start_pageObject (readonly)

Returns the value of attribute start_page.



16
17
18
# File 'lib/summon/schema/document.rb', line 16

def start_page
  @start_page
end

#subject_termsObject (readonly)

Returns the value of attribute subject_terms.



49
50
51
# File 'lib/summon/schema/document.rb', line 49

def subject_terms
  @subject_terms
end

#subtitleObject (readonly)

Returns the value of attribute subtitle.



5
6
7
# File 'lib/summon/schema/document.rb', line 5

def subtitle
  @subtitle
end

#thumbnail_largeObject (readonly)

Returns the value of attribute thumbnail_large.



65
66
67
# File 'lib/summon/schema/document.rb', line 65

def thumbnail_large
  @thumbnail_large
end

#thumbnail_mediumObject (readonly)

Returns the value of attribute thumbnail_medium.



64
65
66
# File 'lib/summon/schema/document.rb', line 64

def thumbnail_medium
  @thumbnail_medium
end

#thumbnail_smallObject (readonly)

Returns the value of attribute thumbnail_small.



63
64
65
# File 'lib/summon/schema/document.rb', line 63

def thumbnail_small
  @thumbnail_small
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/summon/schema/document.rb', line 4

def title
  @title
end

#uriObject (readonly)

Returns the value of attribute uri.



57
58
59
# File 'lib/summon/schema/document.rb', line 57

def uri
  @uri
end

#urlObject (readonly)

Returns the value of attribute url.



59
60
61
# File 'lib/summon/schema/document.rb', line 59

def url
  @url
end

#volumeObject (readonly)

Returns the value of attribute volume.



13
14
15
# File 'lib/summon/schema/document.rb', line 13

def volume
  @volume
end

Instance Method Details

#call_numberObject



85
86
87
# File 'lib/summon/schema/document.rb', line 85

def call_number
  @call_numbers.first
end

#content_typeObject



77
78
79
# File 'lib/summon/schema/document.rb', line 77

def content_type
  @content_types.first
end

#from_library?Boolean

Returns:

  • (Boolean)


121
122
123
# File 'lib/summon/schema/document.rb', line 121

def from_library?
  @availability_id != nil
end

#gov_doc_class_numObject



89
90
91
# File 'lib/summon/schema/document.rb', line 89

def gov_doc_class_num
  @gov_doc_class_nums.first
end

#isbnObject



81
82
83
# File 'lib/summon/schema/document.rb', line 81

def isbn
  @isbns.first
end

#lib_guide_tabsObject



117
118
119
# File 'lib/summon/schema/document.rb', line 117

def lib_guide_tabs
  @lib_guide_tab.map {|n| Summon::LibGuideTab.new(n["name"], n["uri"])}
end

#pages?Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/summon/schema/document.rb', line 93

def pages?
  @start_page || @page_count
end

#publisherObject



101
102
103
# File 'lib/summon/schema/document.rb', line 101

def publisher
  @publishers.first
end

#to_s(options = {}) ⇒ Object



113
114
115
# File 'lib/summon/schema/document.rb', line 113

def to_s(options = {})
  "Title: #{title}"
end