gared 0.0.15 → 0.0.16

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
  SHA256:
3
- metadata.gz: 92b01b48da01e7d98c739cb47863b91b13f4b6929e3a3cf5804a704eadd30b69
4
- data.tar.gz: 9dbd85a6a41498c1f7dab6e8b8de8a7d89124154466c7d9b1b857771c999b9d7
3
+ metadata.gz: 2fb9759c94266afb6e3f6c44b47c4cbffeb9cad9d64eeb185944d631dd38e872
4
+ data.tar.gz: dc047beba43e6c44a572f935d525ed20f9a5cfef375fd858ce2368f6dbfee1f6
5
5
  SHA512:
6
- metadata.gz: c108c92177e80b16b22e2b9e1d971d0bb6bb119fecffe513cb5f4a17403039a90ab7c3e2fa12a3f55e18457abff52a1b22fa0c2967fe09a49de0104e132a43eb
7
- data.tar.gz: f8796bfcbdc2ebfddd01f937871b133887a172d4c610a348373feee0938feaa866ab437764955305eee2a7bb06075ead1ec4bc5ebe5e1c502a1cd3839382cf86
6
+ metadata.gz: 53ebe03bf0d9027947501556550838a4a22c708e1f034cdfe5a6ab03f894d31157d83a736c5caf8df1bbe060d0c1aa90c1c6e667ff45c1391597419d4344dea4
7
+ data.tar.gz: 15001af014546773688e5075f5ac7740eaac4d7c5476b7c50003d56c360ee0ecc16d99b7d9f8c53a7033a0adf46ac070e65e00369ef332c4286f3c83380de0eb
@@ -25,6 +25,7 @@ module Gared
25
25
  next unless r['accessInfo']['pdf']['isAvailable']
26
26
  p = Publication.new(ctx)
27
27
  p.source_id = r['id']
28
+ p.scanned = true
28
29
  p.title = r['volumeInfo']['title']
29
30
  h = Holding.new
30
31
  h.source_id = r['id']
@@ -33,6 +33,7 @@ module Gared
33
33
  p.title = tr.tds[0].text
34
34
  p.author_line = tr.tds[1].text
35
35
  p.source_id = tr.tds[0].a.href
36
+ p.scanned = true
36
37
  h = Holding.new
37
38
  h.source_id = tr.tds[0].a.href
38
39
  h.source_name = 'Hebrewbooks'
@@ -46,6 +46,7 @@ module Gared
46
46
  p.pub_year = st.sub('שנה לועזית:','').sub('שנת הוצאה:','') if st =~ /^שנה לועזית:/ or st =~ /^שנת הוצאה:/
47
47
  }
48
48
  p.source_id = urlpart
49
+ p.scanned = false
49
50
  h = Holding.new
50
51
  h.source_id = urlpart.scan(/book_id%3E(\d+)%3C/)[0][0]
51
52
  h.source_name = @options[:opac_url]
@@ -46,6 +46,7 @@ module Gared
46
46
  p.publisher_line = deets['publisher']
47
47
  p.pub_year = deets['creationdate']
48
48
  p.source_id = r['PrimoNMBib']['record']['control']['sourcerecordid']
49
+ # TODO: determine whether a scanned object exists
49
50
  h = Holding.new
50
51
  h.source_id = p.source_id
51
52
  h.source_name = 'Primo:'+@options[:institution]
@@ -1,7 +1,7 @@
1
1
  module Gared
2
2
  class Publication
3
3
 
4
- attr_accessor :title, :publisher_line, :author_line, :notes, :source_id, :holdings, :language, :pub_year, :context
4
+ attr_accessor :title, :publisher_line, :author_line, :notes, :source_id, :holdings, :language, :pub_year, :context, :scanned
5
5
 
6
6
  def initialize(ctx)
7
7
  @holdings = []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gared
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asaf Bartov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-01 00:00:00.000000000 Z
11
+ date: 2018-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zoom