gared 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gared/googlebooks.rb +1 -0
- data/lib/gared/hebrewbooks.rb +1 -0
- data/lib/gared/idea.rb +1 -0
- data/lib/gared/primo.rb +1 -0
- data/lib/gared/publication.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: 2fb9759c94266afb6e3f6c44b47c4cbffeb9cad9d64eeb185944d631dd38e872
|
4
|
+
data.tar.gz: dc047beba43e6c44a572f935d525ed20f9a5cfef375fd858ce2368f6dbfee1f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53ebe03bf0d9027947501556550838a4a22c708e1f034cdfe5a6ab03f894d31157d83a736c5caf8df1bbe060d0c1aa90c1c6e667ff45c1391597419d4344dea4
|
7
|
+
data.tar.gz: 15001af014546773688e5075f5ac7740eaac4d7c5476b7c50003d56c360ee0ecc16d99b7d9f8c53a7033a0adf46ac070e65e00369ef332c4286f3c83380de0eb
|
data/lib/gared/googlebooks.rb
CHANGED
data/lib/gared/hebrewbooks.rb
CHANGED
data/lib/gared/idea.rb
CHANGED
@@ -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]
|
data/lib/gared/primo.rb
CHANGED
@@ -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]
|
data/lib/gared/publication.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2018-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zoom
|