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 +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/ebsco/eds/session.rb +11 -7
- data/lib/ebsco/eds/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ec6d777c85fef521a67238023b3e0937d4ff49
|
4
|
+
data.tar.gz: 5453f3c0172702a6c87fb87d3866201ec5a85626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0021370a3baab1801082da79eca7eff99ad5eefd380428a8beb41c047185c13479a085b5dae952b5753cac3976a12a7d144e19518d2d879f537d12f4b3480399
|
7
|
+
data.tar.gz: e26bfccfb66542304ea54fe859b11dc65967d86fb15d5eafd2d8a9f7e4136fe08019375b5bf92d3cea73e160da517e2607be85bae6ae033105e60bdadf72f87e
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/ebsco/eds/session.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
812
|
+
config_path << '?' + qs
|
809
813
|
end
|
810
|
-
req.url
|
814
|
+
req.url config_path
|
811
815
|
when :post
|
812
816
|
unless payload.nil?
|
813
817
|
json_payload = JSON.generate(payload)
|
814
|
-
|
818
|
+
config_path << get_cache_id(path, json_payload) if @use_cache
|
815
819
|
req.body = json_payload
|
816
820
|
end
|
817
|
-
req.url
|
821
|
+
req.url config_path
|
818
822
|
else
|
819
|
-
raise EBSCO::EDS::ApiError, "EBSCO API error: Method #{method} not supported for endpoint #{
|
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
|
data/lib/ebsco/eds/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|