gared 0.0.16 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gared/hebrewbooks.rb +1 -0
- data/lib/gared/holding.rb +1 -1
- data/lib/gared/primo.rb +6 -1
- 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: ad89b9fa713cb95d420566a0a9735ad839907661996bfa0e816a87391010e8b6
|
4
|
+
data.tar.gz: f450165383f2e8c030b4e5e25ade74d5a927009aa2a6c92f174c68e76e5003c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5f35bc4cdb1efe388224d5b0e7973eb40fe7c3e9d241961562b87998e56a058509b9040e94752177b1df3df56ce8aec4617953af7d253bbbfa6e338285c5cba
|
7
|
+
data.tar.gz: 6b070deefebb23a21d191155bc1e5ff8bf80a60261a74a657486ce2fa44d8244fbeed3ec19a2ae9a196d54649e23a5dced67dace6daaaa2ba1f68c1a548cdf49
|
data/lib/gared/hebrewbooks.rb
CHANGED
data/lib/gared/holding.rb
CHANGED
data/lib/gared/primo.rb
CHANGED
@@ -46,7 +46,12 @@ 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
|
-
#
|
49
|
+
# collect additional URLS from record, for clients to be able to determine whether a scanned object exists
|
50
|
+
additional_urls = []
|
51
|
+
deets.keys.each do |key|
|
52
|
+
additional_urls << deets[key] if deets[key] =~ /https?:[^\s]/
|
53
|
+
end
|
54
|
+
p.additional_urls = additional_urls if additional_urls.length > 0
|
50
55
|
h = Holding.new
|
51
56
|
h.source_id = p.source_id
|
52
57
|
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, :scanned
|
4
|
+
attr_accessor :title, :publisher_line, :author_line, :notes, :source_id, :holdings, :language, :pub_year, :context, :scanned, :additional_urls
|
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.18
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zoom
|