ebsco-eds 1.0.3 → 1.0.4

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: e1cbd8a8c3ea7b3b415848518583ce29fa09e753
4
- data.tar.gz: aa61e535cf82ff605822219b5db2ca5ac6d4f48b
3
+ metadata.gz: d8ec6d777c85fef521a67238023b3e0937d4ff49
4
+ data.tar.gz: 5453f3c0172702a6c87fb87d3866201ec5a85626
5
5
  SHA512:
6
- metadata.gz: 0464b610e8bbff86f206d9ed80fffb1b58583840fef7408ee4f3546caf04219af157472408ec1c5928e56ea117196f72af053b3da3c6134e26d5f97ae72046bf
7
- data.tar.gz: eaad8cbb7bc87b1dc103ea264536d2f70aa3f1dc14a04e16b994fb7da9ef03daffc237c95ce325276c2fa26d6e93da64d999116da9de179399ef8c787b329e39
6
+ metadata.gz: 0021370a3baab1801082da79eca7eff99ad5eefd380428a8beb41c047185c13479a085b5dae952b5753cac3976a12a7d144e19518d2d879f537d12f4b3480399
7
+ data.tar.gz: e26bfccfb66542304ea54fe859b11dc65967d86fb15d5eafd2d8a9f7e4136fe08019375b5bf92d3cea73e160da517e2607be85bae6ae033105e60bdadf72f87e
@@ -4,11 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.0.4] - 2018-10-29
8
+ ### Fixed
9
+ - List retrieval returns a repeating list of just the first record.
10
+ - List retrieval fails to increment the EDS result id.
11
+
12
+ ## [1.0.3] - 2018-10-18
13
+ ### Changed
14
+ - Citation style and export links can now be removed entirely or replaced by specifying regular expressions in several configuration options that can include ruby erb variable expressions for an item's `dbid` and `an`. This was added to address situations where customer proxy urls are returned. See: [Citation link replacement](https://github.com/ebsco/edsapi-ruby/wiki/Citation-link-replacement)
15
+
7
16
  ## [1.0.2] - 2018-10-15
8
17
  ### Added
9
18
  - EBSCOhost links are removed from citation styles and exports by default
10
19
 
11
-
12
20
  ## [1.0.1] - 2018-10-10
13
21
  ### Added
14
22
  - Citation styles/exports are added to Records
@@ -67,5 +75,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
67
75
  ### Added
68
76
  - Adds KW (keywords) and SH (subject heading) to solr search fields
69
77
 
78
+ [1.0.4]: https://github.com/ebsco/edsapi-ruby/compare/1.0.3...1.0.4
79
+ [1.0.3]: https://github.com/ebsco/edsapi-ruby/compare/1.0.2...1.0.3
70
80
  [1.0.2]: https://github.com/ebsco/edsapi-ruby/compare/1.0.1...1.0.2
71
81
  [1.0.1]: https://github.com/ebsco/edsapi-ruby/compare/1.0.0...1.0.1
@@ -459,10 +459,12 @@ module EBSCO
459
459
  def solr_retrieve_list(list: [], highlight: nil)
460
460
  records = []
461
461
  if list.any?
462
- list.each { |id|
462
+ list.each.with_index(1) { |id, index|
463
463
  dbid = id.split('__',2).first
464
464
  accession = id.split('__',2).last
465
- records.push retrieve(dbid: dbid, an: accession, highlight: highlight, ebook: @config[:ebook_preferred_format])
465
+ current_rec = retrieve(dbid: dbid, an: accession, highlight: highlight, ebook: @config[:ebook_preferred_format])
466
+ current_rec.eds_result_id = index
467
+ records.push current_rec
466
468
  }
467
469
  end
468
470
  r = empty_results(records.length)
@@ -795,6 +797,8 @@ module EBSCO
795
797
 
796
798
  conn = connection
797
799
 
800
+ config_path = path.dup
801
+
798
802
  # use a citation api connection?
799
803
  if path.include?(@config[:citation_exports_url]) || path.include?(@config[:citation_styles_url])
800
804
  conn = citation_connection
@@ -805,18 +809,18 @@ module EBSCO
805
809
  when :get
806
810
  unless payload.nil?
807
811
  qs = CGI.unescape(payload.to_query(nil))
808
- path << '?' + qs
812
+ config_path << '?' + qs
809
813
  end
810
- req.url path
814
+ req.url config_path
811
815
  when :post
812
816
  unless payload.nil?
813
817
  json_payload = JSON.generate(payload)
814
- path << get_cache_id(path, json_payload) if @use_cache
818
+ config_path << get_cache_id(path, json_payload) if @use_cache
815
819
  req.body = json_payload
816
820
  end
817
- req.url path
821
+ req.url config_path
818
822
  else
819
- raise EBSCO::EDS::ApiError, "EBSCO API error: Method #{method} not supported for endpoint #{path}"
823
+ raise EBSCO::EDS::ApiError, "EBSCO API error: Method #{method} not supported for endpoint #{config_path}"
820
824
  end
821
825
  end
822
826
  resp.body
@@ -1,5 +1,5 @@
1
1
  module EBSCO
2
2
  module EDS
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
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: 1.0.3
4
+ version: 1.0.4
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: 2018-10-18 00:00:00.000000000 Z
12
+ date: 2018-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday