ebsco-eds 0.1.7.pre → 0.1.8.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d77f232f59d0394231f3b1ad9e01366e549b7ce
4
- data.tar.gz: ce77a40006520d940d6bd668103fbd49078b40b5
3
+ metadata.gz: 674580c39f9ae75ae1929f22f0bdec8d08ed27d5
4
+ data.tar.gz: 22c1a6c187b8fabbc4ffe4ae029acd503dfcfbbc
5
5
  SHA512:
6
- metadata.gz: f8806ae9eff53f3334ca2d64be2b068e036d2349d9585b91c47c2c3cbfcf27ab84b183ff1aaed14894e875fe82f131ccbfcc8f1345d6605877ef60f8b66dd615
7
- data.tar.gz: 434ecced7c11e8220e9fdc1dc640dac20b8886f0db6b41f09f5aa647b3676d0d5e28cedbf6d345cac42b0847ef8dc363dae99bb63ab5fe18024ce7c85707563e
6
+ metadata.gz: bc663ca74fb63459b96aa4c5f6ad854325598d4618619aa28c3461f7df019cc17fc3e6b024d351d96e0687930d1f6ceb8133e4ea979f80e304bd433f385fb455
7
+ data.tar.gz: c2a3f28a5434b681b64cdb704383227ad6881b01b4c0d86a27b0f8daca9a6d0afb129397ea43877ecb9b6c5b2474c6bb0173ab65ae35520b7d35648e26913211
@@ -247,6 +247,16 @@ module EBSCO
247
247
  _field_code = 'SU'
248
248
  when 'title'
249
249
  _field_code = 'TI'
250
+ when 'text'
251
+ _field_code = 'TX'
252
+ when 'abstract'
253
+ _field_code = 'AB'
254
+ when 'source'
255
+ _field_code = 'SO'
256
+ when 'issn'
257
+ _field_code = 'IS'
258
+ when 'isbn'
259
+ _field_code = 'IB'
250
260
  end
251
261
  end
252
262
 
@@ -18,6 +18,7 @@ module EBSCO
18
18
  :eds_relevancy_score,
19
19
  :eds_title,
20
20
  :eds_source_title,
21
+ :eds_source_title_composed,
21
22
  :eds_other_titles,
22
23
  :eds_abstract,
23
24
  :eds_authors,
@@ -58,7 +59,12 @@ module EBSCO
58
59
  :eds_images,
59
60
  :eds_all_links,
60
61
  :eds_fulltext_links,
61
- :eds_non_fulltext_links
62
+ :eds_non_fulltext_links,
63
+ # publication record attributes
64
+ :eds_publication_id,
65
+ :eds_publication_is_searchable,
66
+ :eds_publication_scope_note
67
+
62
68
  ]
63
69
 
64
70
  # Raw record as returned by the \EDS API via search or retrieve
@@ -96,6 +102,7 @@ module EBSCO
96
102
  @eds_relevancy_score = @record['Header']['RelevancyScore']
97
103
  @eds_title = title
98
104
  @eds_source_title = source_title
105
+ @eds_composed_title = source_title_composed
99
106
  @eds_other_titles = other_titles
100
107
  @eds_abstract = abstract
101
108
  @eds_authors = bib_authors || get_item_data_by_name('Author')
@@ -139,6 +146,10 @@ module EBSCO
139
146
  @eds_non_fulltext_links = non_fulltext_links
140
147
  @id = @eds_database_id + '__' + @eds_accession_number.gsub(/\./,'_')
141
148
 
149
+ @eds_publication_id = @record['Header']['PublicationId']
150
+ @eds_publication_is_searchable = @record['Header']['IsSearchable']
151
+ @eds_publication_scope_note = get_item_data_by_name('NoteScope')
152
+
142
153
  end
143
154
 
144
155
  # --
@@ -166,13 +177,19 @@ module EBSCO
166
177
  CGI.unescapeHTML(_retval)
167
178
  end
168
179
 
169
- # The source title (e.g., Journal)
180
+ # The source title (example: 'Salem Press Encyclopedia')
170
181
  def source_title
171
182
  _retval = bib_source_title || get_item_data_by_name('TitleSource')
172
183
  _reval = nil? if _retval == title # suppress if it's identical to title
173
184
  _retval.nil?? nil : CGI.unescapeHTML(_retval)
174
185
  end
175
186
 
187
+ # composed title (example: 'Salem Press Encyclopedia, January, 2017. 2p.')
188
+ def source_title_composed
189
+ _retval = get_item_data_by_name('TitleSource')
190
+ _retval.nil?? nil : CGI.unescapeHTML(_retval)
191
+ end
192
+
176
193
  # Other alternative titles.
177
194
  def other_titles
178
195
  _retval = get_item_data_by_name('TitleAlt')
@@ -152,6 +152,8 @@ module EBSCO
152
152
  'start' => solr_start,
153
153
  'docs' => solr_docs
154
154
  },
155
+ 'research_starters' => research_starters,
156
+ 'publication_matches' => publication_matches,
155
157
  'highlighting' => hl_hash,
156
158
  'facet_counts' =>
157
159
  {
@@ -1,5 +1,5 @@
1
1
  module EBSCO
2
2
  module EDS
3
- VERSION = '0.1.7.pre'
3
+ VERSION = '0.1.8.pre'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebsco-eds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7.pre
4
+ version: 0.1.8.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill McKinney
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-06-28 00:00:00.000000000 Z
12
+ date: 2017-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday