relaton-jis 1.16.3 → 1.16.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/README.adoc +23 -0
- data/lib/relaton_jis/bibliography.rb +3 -3
- data/lib/relaton_jis/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: 637bc94d43f604b252d2515dbc7cc727e2ec1021cb29720b73193bfe8dca4c99
|
|
4
|
+
data.tar.gz: a4eadba51c57fdb56a79d3dc095869d363f6a48defd31476f04c3a986e52dbea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e70ee1f1d77824d4392749303d2fdf9ecc9c4f9010e8b6efe46fd2e6e5de9011500035c266b1669467878afbc85bfa424e7c12d786ab7f1ecccf1cca0bb960d8
|
|
7
|
+
data.tar.gz: 790770f4b8a955c33ebd3b0f430caaf92e8ad19b4cc547803439495e6bbecc6198e14fed611d38adeebf7970a9f960d00558e3dc759f13ab9580007e2fc4282f
|
data/README.adoc
CHANGED
|
@@ -80,6 +80,29 @@ item.docidentifier[0].id
|
|
|
80
80
|
=> "JIS X 0208:1997"
|
|
81
81
|
----
|
|
82
82
|
|
|
83
|
+
=== Fetch all parts of a standard
|
|
84
|
+
|
|
85
|
+
[source,ruby]
|
|
86
|
+
----
|
|
87
|
+
item = RelatonJis::Bibliography.get "JIS B 0060 (all parts)"
|
|
88
|
+
[relaton-jis] (JIS B 0060 (all parts)) Fetching from webdesk.jsa.or.jp ...
|
|
89
|
+
[relaton-jis] (JIS B 0060 (all parts)) Found: `JIS B 0060 (all parts)`
|
|
90
|
+
=> #<RelatonJis::BibliographicItem:0x000000010c3e2300
|
|
91
|
+
...
|
|
92
|
+
|
|
93
|
+
item.docidentifier
|
|
94
|
+
=> [#<RelatonBib::DocumentIdentifier:0x000000010c5905f8 @id="JIS B 0060 (all parts)", @language=nil, @primary=true, @scope=nil, @script=nil, @type="JIS">]
|
|
95
|
+
|
|
96
|
+
item = RelatonJis::Bibliography.get "JIS B 0060 (規格群)"
|
|
97
|
+
[relaton-jis] (JIS B 0060 (規格群)) Fetching from webdesk.jsa.or.jp ...
|
|
98
|
+
[relaton-jis] (JIS B 0060 (規格群)) Found: `JIS B 0060 (all parts)`
|
|
99
|
+
=> #<RelatonJis::BibliographicItem:0x000000010c3ceb20
|
|
100
|
+
...
|
|
101
|
+
|
|
102
|
+
item.docidentifier
|
|
103
|
+
=> [#<RelatonBib::DocumentIdentifier:0x000000010c8d9b10 @id="JIS B 0060 (all parts)", @language=nil, @primary=true, @scope=nil, @script=nil, @type="JIS">]
|
|
104
|
+
----
|
|
105
|
+
|
|
83
106
|
=== XML serialization
|
|
84
107
|
|
|
85
108
|
Possible options:
|
|
@@ -14,12 +14,12 @@ module RelatonJis
|
|
|
14
14
|
#
|
|
15
15
|
def search(code, year = nil)
|
|
16
16
|
agent = Mechanize.new
|
|
17
|
-
resp = agent.post "#{SOURCE}
|
|
17
|
+
resp = agent.post "#{SOURCE}0270/index", dantai: "JIS", bunsyo_id: code, searchtype2: "1", status_1: "1", status_2: "1"
|
|
18
18
|
disp = JSON.parse resp.body
|
|
19
19
|
# raise RelatonBib::RequestError, "No results found for #{code}" if disp["disp_screen"].nil?
|
|
20
|
-
return
|
|
20
|
+
return unless disp["status"]
|
|
21
21
|
|
|
22
|
-
result = agent.get "#{SOURCE}
|
|
22
|
+
result = agent.get "#{SOURCE}0070/index"
|
|
23
23
|
HitCollection.new code, year, result: result.xpath("//div[@class='blockGenaral']")
|
|
24
24
|
end
|
|
25
25
|
|
data/lib/relaton_jis/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-jis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.16.
|
|
4
|
+
version: 1.16.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-11-
|
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mechanize
|