Class: Summon::Document
Instance Attribute Summary collapse
-
#abstract ⇒ Object
readonly
Returns the value of attribute abstract.
-
#authors ⇒ Object
readonly
Returns the value of attribute authors.
-
#availability_id ⇒ Object
readonly
Returns the value of attribute availability_id.
-
#call_numbers ⇒ Object
readonly
Returns the value of attribute call_numbers.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#corporate_authors ⇒ Object
readonly
Returns the value of attribute corporate_authors.
-
#dbid ⇒ Object
readonly
Returns the value of attribute dbid.
-
#dissertation_advisor ⇒ Object
readonly
Returns the value of attribute dissertation_advisor.
-
#dissertation_category ⇒ Object
readonly
Returns the value of attribute dissertation_category.
-
#dissertation_degree ⇒ Object
readonly
Returns the value of attribute dissertation_degree.
-
#dissertation_degree_date ⇒ Object
readonly
Returns the value of attribute dissertation_degree_date.
-
#dissertation_degree_date_century ⇒ Object
readonly
Returns the value of attribute dissertation_degree_date_century.
-
#dissertation_degree_date_decade ⇒ Object
readonly
Returns the value of attribute dissertation_degree_date_decade.
-
#dissertation_degree_date_year ⇒ Object
readonly
Returns the value of attribute dissertation_degree_date_year.
-
#dissertation_school ⇒ Object
readonly
Returns the value of attribute dissertation_school.
-
#doi ⇒ Object
readonly
Returns the value of attribute doi.
-
#edition ⇒ Object
readonly
Returns the value of attribute edition.
-
#end_page ⇒ Object
readonly
Returns the value of attribute end_page.
-
#fulltext ⇒ Object
readonly
Returns the value of attribute fulltext.
-
#genres ⇒ Object
readonly
Returns the value of attribute genres.
-
#gov_doc_class_nums ⇒ Object
readonly
Returns the value of attribute gov_doc_class_nums.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#isbns ⇒ Object
readonly
Returns the value of attribute isbns.
-
#isi_cited_references_count ⇒ Object
readonly
Returns the value of attribute isi_cited_references_count.
-
#isi_cited_references_uri ⇒ Object
readonly
Returns the value of attribute isi_cited_references_uri.
-
#issns ⇒ Object
readonly
Returns the value of attribute issns.
-
#issue ⇒ Object
readonly
Returns the value of attribute issue.
-
#languages ⇒ Object
readonly
Returns the value of attribute languages.
-
#lib_guide_tab ⇒ Object
readonly
Returns the value of attribute lib_guide_tab.
-
#library ⇒ Object
readonly
Returns the value of attribute library.
-
#open_url ⇒ Object
readonly
Returns the value of attribute open_url.
-
#page_count ⇒ Object
readonly
Returns the value of attribute page_count.
-
#patent_number ⇒ Object
readonly
Returns the value of attribute patent_number.
-
#publication_date ⇒ Object
readonly
Returns the value of attribute publication_date.
-
#publication_place ⇒ Object
readonly
Returns the value of attribute publication_place.
-
#publication_series_title ⇒ Object
readonly
Returns the value of attribute publication_series_title.
-
#publication_title ⇒ Object
readonly
Returns the value of attribute publication_title.
-
#publishers ⇒ Object
readonly
Returns the value of attribute publishers.
-
#snippet ⇒ Object
readonly
highlight.
-
#start_page ⇒ Object
readonly
Returns the value of attribute start_page.
-
#subject_terms ⇒ Object
readonly
Returns the value of attribute subject_terms.
-
#subtitle ⇒ Object
readonly
Returns the value of attribute subtitle.
-
#thumbnail_large ⇒ Object
readonly
Returns the value of attribute thumbnail_large.
-
#thumbnail_medium ⇒ Object
readonly
Returns the value of attribute thumbnail_medium.
-
#thumbnail_small ⇒ Object
readonly
Returns the value of attribute thumbnail_small.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#volume ⇒ Object
readonly
Returns the value of attribute volume.
Instance Method Summary collapse
- #call_number ⇒ Object
- #from_library? ⇒ Boolean
- #gov_doc_class_num ⇒ Object
- #isbn ⇒ Object
- #lib_guide_tabs ⇒ Object
- #local_content_type ⇒ Object
- #pages? ⇒ Boolean
- #publisher ⇒ Object
- #to_s(options = {}) ⇒ Object
Methods inherited from Schema
Instance Attribute Details
#abstract ⇒ Object (readonly)
Returns the value of attribute abstract.
48 49 50 |
# File 'lib/summon/schema/document.rb', line 48 def abstract @abstract end |
#authors ⇒ Object (readonly)
Returns the value of attribute authors.
10 11 12 |
# File 'lib/summon/schema/document.rb', line 10 def @authors end |
#availability_id ⇒ Object (readonly)
Returns the value of attribute availability_id.
58 59 60 |
# File 'lib/summon/schema/document.rb', line 58 def availability_id @availability_id end |
#call_numbers ⇒ Object (readonly)
Returns the value of attribute call_numbers.
35 36 37 |
# File 'lib/summon/schema/document.rb', line 35 def call_numbers @call_numbers end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
8 9 10 |
# File 'lib/summon/schema/document.rb', line 8 def content_type @content_type end |
#corporate_authors ⇒ Object (readonly)
Returns the value of attribute corporate_authors.
11 12 13 |
# File 'lib/summon/schema/document.rb', line 11 def @corporate_authors end |
#dbid ⇒ Object (readonly)
Returns the value of attribute dbid.
59 60 61 |
# File 'lib/summon/schema/document.rb', line 59 def dbid @dbid end |
#dissertation_advisor ⇒ Object (readonly)
Returns the value of attribute dissertation_advisor.
25 26 27 |
# File 'lib/summon/schema/document.rb', line 25 def dissertation_advisor @dissertation_advisor end |
#dissertation_category ⇒ Object (readonly)
Returns the value of attribute dissertation_category.
26 27 28 |
# File 'lib/summon/schema/document.rb', line 26 def dissertation_category @dissertation_category end |
#dissertation_degree ⇒ Object (readonly)
Returns the value of attribute dissertation_degree.
27 28 29 |
# File 'lib/summon/schema/document.rb', line 27 def dissertation_degree @dissertation_degree end |
#dissertation_degree_date ⇒ Object (readonly)
Returns the value of attribute dissertation_degree_date.
28 29 30 |
# File 'lib/summon/schema/document.rb', line 28 def dissertation_degree_date @dissertation_degree_date end |
#dissertation_degree_date_century ⇒ Object (readonly)
Returns the value of attribute dissertation_degree_date_century.
30 31 32 |
# File 'lib/summon/schema/document.rb', line 30 def dissertation_degree_date_century @dissertation_degree_date_century end |
#dissertation_degree_date_decade ⇒ Object (readonly)
Returns the value of attribute dissertation_degree_date_decade.
29 30 31 |
# File 'lib/summon/schema/document.rb', line 29 def dissertation_degree_date_decade @dissertation_degree_date_decade end |
#dissertation_degree_date_year ⇒ Object (readonly)
Returns the value of attribute dissertation_degree_date_year.
31 32 33 |
# File 'lib/summon/schema/document.rb', line 31 def dissertation_degree_date_year @dissertation_degree_date_year end |
#dissertation_school ⇒ Object (readonly)
Returns the value of attribute dissertation_school.
32 33 34 |
# File 'lib/summon/schema/document.rb', line 32 def dissertation_school @dissertation_school end |
#doi ⇒ Object (readonly)
Returns the value of attribute doi.
36 37 38 |
# File 'lib/summon/schema/document.rb', line 36 def doi @doi end |
#edition ⇒ Object (readonly)
Returns the value of attribute edition.
15 16 17 |
# File 'lib/summon/schema/document.rb', line 15 def edition @edition end |
#end_page ⇒ Object (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 |
#fulltext ⇒ Object (readonly)
Returns the value of attribute fulltext.
49 50 51 |
# File 'lib/summon/schema/document.rb', line 49 def fulltext @fulltext end |
#genres ⇒ Object (readonly)
Returns the value of attribute genres.
44 45 46 |
# File 'lib/summon/schema/document.rb', line 44 def genres @genres end |
#gov_doc_class_nums ⇒ Object (readonly)
Returns the value of attribute gov_doc_class_nums.
40 41 42 |
# File 'lib/summon/schema/document.rb', line 40 def gov_doc_class_nums @gov_doc_class_nums end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/summon/schema/document.rb', line 3 def id @id end |
#isbns ⇒ Object (readonly)
Returns the value of attribute isbns.
37 38 39 |
# File 'lib/summon/schema/document.rb', line 37 def isbns @isbns end |
#isi_cited_references_count ⇒ Object (readonly)
Returns the value of attribute isi_cited_references_count.
22 23 24 |
# File 'lib/summon/schema/document.rb', line 22 def isi_cited_references_count @isi_cited_references_count end |
#isi_cited_references_uri ⇒ Object (readonly)
Returns the value of attribute isi_cited_references_uri.
23 24 25 |
# File 'lib/summon/schema/document.rb', line 23 def isi_cited_references_uri @isi_cited_references_uri end |
#issns ⇒ Object (readonly)
Returns the value of attribute issns.
38 39 40 |
# File 'lib/summon/schema/document.rb', line 38 def issns @issns end |
#issue ⇒ Object (readonly)
Returns the value of attribute issue.
14 15 16 |
# File 'lib/summon/schema/document.rb', line 14 def issue @issue end |
#languages ⇒ Object (readonly)
Returns the value of attribute languages.
45 46 47 |
# File 'lib/summon/schema/document.rb', line 45 def languages @languages end |
#lib_guide_tab ⇒ Object (readonly)
Returns the value of attribute lib_guide_tab.
61 62 63 |
# File 'lib/summon/schema/document.rb', line 61 def lib_guide_tab @lib_guide_tab end |
#library ⇒ Object (readonly)
Returns the value of attribute library.
34 35 36 |
# File 'lib/summon/schema/document.rb', line 34 def library @library end |
#open_url ⇒ Object (readonly)
Returns the value of attribute open_url.
52 53 54 |
# File 'lib/summon/schema/document.rb', line 52 def open_url @open_url end |
#page_count ⇒ Object (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_number ⇒ Object (readonly)
Returns the value of attribute patent_number.
39 40 41 |
# File 'lib/summon/schema/document.rb', line 39 def patent_number @patent_number end |
#publication_date ⇒ Object (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_place ⇒ Object (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_title ⇒ Object (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_title ⇒ Object (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 |
#publishers ⇒ Object (readonly)
Returns the value of attribute publishers.
12 13 14 |
# File 'lib/summon/schema/document.rb', line 12 def publishers @publishers end |
#snippet ⇒ Object (readonly)
highlight
47 48 49 |
# File 'lib/summon/schema/document.rb', line 47 def snippet @snippet end |
#start_page ⇒ Object (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_terms ⇒ Object (readonly)
Returns the value of attribute subject_terms.
43 44 45 |
# File 'lib/summon/schema/document.rb', line 43 def subject_terms @subject_terms end |
#subtitle ⇒ Object (readonly)
Returns the value of attribute subtitle.
5 6 7 |
# File 'lib/summon/schema/document.rb', line 5 def subtitle @subtitle end |
#thumbnail_large ⇒ Object (readonly)
Returns the value of attribute thumbnail_large.
57 58 59 |
# File 'lib/summon/schema/document.rb', line 57 def thumbnail_large @thumbnail_large end |
#thumbnail_medium ⇒ Object (readonly)
Returns the value of attribute thumbnail_medium.
56 57 58 |
# File 'lib/summon/schema/document.rb', line 56 def thumbnail_medium @thumbnail_medium end |
#thumbnail_small ⇒ Object (readonly)
Returns the value of attribute thumbnail_small.
55 56 57 |
# File 'lib/summon/schema/document.rb', line 55 def thumbnail_small @thumbnail_small end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/summon/schema/document.rb', line 4 def title @title end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
50 51 52 |
# File 'lib/summon/schema/document.rb', line 50 def uri @uri end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
51 52 53 |
# File 'lib/summon/schema/document.rb', line 51 def url @url end |
#volume ⇒ Object (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_number ⇒ Object
67 68 69 |
# File 'lib/summon/schema/document.rb', line 67 def call_number @call_numbers.first end |
#from_library? ⇒ Boolean
107 108 109 |
# File 'lib/summon/schema/document.rb', line 107 def from_library? @availability_id != nil end |
#gov_doc_class_num ⇒ Object
71 72 73 |
# File 'lib/summon/schema/document.rb', line 71 def gov_doc_class_num @gov_doc_class_nums.first end |
#isbn ⇒ Object
63 64 65 |
# File 'lib/summon/schema/document.rb', line 63 def isbn @isbns.first end |
#lib_guide_tabs ⇒ Object
103 104 105 |
# File 'lib/summon/schema/document.rb', line 103 def lib_guide_tabs @lib_guide_tab.map {|n| Summon::LibGuideTab.new(n["name"], n["uri"])} end |
#local_content_type ⇒ Object
99 100 101 |
# File 'lib/summon/schema/document.rb', line 99 def local_content_type translate(@content_type) end |
#pages? ⇒ Boolean
75 76 77 |
# File 'lib/summon/schema/document.rb', line 75 def pages? @start_page || @page_count end |
#publisher ⇒ Object
83 84 85 |
# File 'lib/summon/schema/document.rb', line 83 def publisher @publishers.first end |
#to_s(options = {}) ⇒ Object
95 96 97 |
# File 'lib/summon/schema/document.rb', line 95 def to_s( = {}) "Title: #{title}" end |