relaton-isbn 1.18.0 → 1.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +5 -5
- data/lib/relaton_isbn/isbn.rb +1 -1
- data/lib/relaton_isbn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec7bde42f98693e22129a90cd430b87eff8200d2efdf507d1f65c0c250b1b459
|
4
|
+
data.tar.gz: 4f6c8ea2d557fa5cead11673a685533338779032b8e85743e5ea54890a73370e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83c0031a254e37b55f1c1f3a5a3003be0058f0a6355e93f7f3cb8b6566a0fd8e33bc1f5d25acaf9b642d936cb08e7e1f6256e18b272b42d4460b2c6351c57ae0
|
7
|
+
data.tar.gz: f637880b51318e33f72553ea0e71f2cde606474844297f2590acebe9cc708add88dd94528db6797dcd06ae93d4de5bdae148f67db41dcb4cf885e0fbf04c3a87
|
data/README.adoc
CHANGED
@@ -55,21 +55,21 @@ end
|
|
55
55
|
|
56
56
|
=== Retrieving bibliographic items using OpenLibrary API
|
57
57
|
|
58
|
-
To retrieve bibliographic items, use `RelatonIsbn::OpenLibrary.get` method with ISBN-10 or ISBN-13 as an argument.
|
58
|
+
To retrieve bibliographic items, use `RelatonIsbn::OpenLibrary.get` method with ISBN-10 or ISBN-13 as an argument. Allowed prefixes are `ISBN`, `isbn:`. Prefix and hyphens are optional. The method returns `RelatonBib::BibliographicItem` object.
|
59
59
|
|
60
60
|
[source,ruby]
|
61
61
|
----
|
62
62
|
# get document by ISBN-13
|
63
|
-
>
|
63
|
+
> ibitem = RelatonIsbn::OpenLibrary.get "ISBN 978-0-12-064481-0"
|
64
64
|
[relaton-isbn] (ISBN 9780120644810) Fetching from OpenLibrary ...
|
65
65
|
[relaton-isbn] (ISBN 9780120644810) Found: `9780120644810`
|
66
66
|
=> #<RelatonBib::BibliographicItem:0x0000000113889258
|
67
67
|
...
|
68
68
|
|
69
69
|
# get document by ISBN-10
|
70
|
-
> RelatonIsbn::OpenLibrary.get "0120644819"
|
71
|
-
[relaton-isbn] (
|
72
|
-
[relaton-isbn] (
|
70
|
+
> RelatonIsbn::OpenLibrary.get "isbn:0120644819"
|
71
|
+
[relaton-isbn] (isbn:0120644819) Fetching from OpenLibrary ...
|
72
|
+
[relaton-isbn] (isbn:0120644819) Found: `9780120644810`
|
73
73
|
=> #<RelatonBib::BibliographicItem:0x00000001098ac960
|
74
74
|
...
|
75
75
|
----
|
data/lib/relaton_isbn/isbn.rb
CHANGED
data/lib/relaton_isbn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-isbn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.18.
|
4
|
+
version: 1.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaton-bib
|