mirror of https://github.com/captn3m0/muse-dl.git
Infobox is parsing for an issue now
This commit is contained in:
parent
f11f64b9d5
commit
6b278531fd
|
@ -14,14 +14,14 @@ describe Muse::Dl::Issue do
|
||||||
issue.url.should eq "https://muse.jhu.edu/issue/41793"
|
issue.url.should eq "https://muse.jhu.edu/issue/41793"
|
||||||
end
|
end
|
||||||
|
|
||||||
# it "should parse info correctly" do
|
it "should parse info correctly" do
|
||||||
# issue.info["ISSN"].should eq "1530-7131"
|
issue.info["ISSN"].should eq "1530-7131"
|
||||||
# issue.info["Print ISSN"].should eq "1531-2542"
|
issue.info["Print ISSN"].should eq "1531-2542"
|
||||||
# issue.info["Launched on MUSE"].should eq "2020-02-05"
|
issue.info["Launched on MUSE"].should eq "2020-02-05"
|
||||||
# issue.info["Open Access"].should eq "No"
|
issue.info["Open Access"].should eq "No"
|
||||||
|
|
||||||
# issue.title.should eq "Volume 20, Number 1, January 2020"
|
# issue.title.should eq "Volume 20, Number 1, January 2020"
|
||||||
# end
|
end
|
||||||
|
|
||||||
# it "should parser summary" do
|
# it "should parser summary" do
|
||||||
# issue.summary.should eq <<-EOT
|
# issue.summary.should eq <<-EOT
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Muse::Dl
|
||||||
@title : String | Nil
|
@title : String | Nil
|
||||||
@articles : Array(Muse::Dl::Article)
|
@articles : Array(Muse::Dl::Article)
|
||||||
@url : String
|
@url : String
|
||||||
@info : Hash(String, String) | Nil
|
@info : Hash(String, String)
|
||||||
@summary : String | Nil
|
@summary : String | Nil
|
||||||
@publisher : String | Nil
|
@publisher : String | Nil
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ module Muse::Dl
|
||||||
@id = id
|
@id = id
|
||||||
@url = "https://muse.jhu.edu/issue/#{id}"
|
@url = "https://muse.jhu.edu/issue/#{id}"
|
||||||
@title = "NA"
|
@title = "NA"
|
||||||
|
@info = Hash(String, String).new
|
||||||
@articles = [] of Muse::Dl::Article
|
@articles = [] of Muse::Dl::Article
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue