gared 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gared/primo.rb +18 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92b01b48da01e7d98c739cb47863b91b13f4b6929e3a3cf5804a704eadd30b69
|
4
|
+
data.tar.gz: 9dbd85a6a41498c1f7dab6e8b8de8a7d89124154466c7d9b1b857771c999b9d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c108c92177e80b16b22e2b9e1d971d0bb6bb119fecffe513cb5f4a17403039a90ab7c3e2fa12a3f55e18457abff52a1b22fa0c2967fe09a49de0104e132a43eb
|
7
|
+
data.tar.gz: f8796bfcbdc2ebfddd01f937871b133887a172d4c610a348373feee0938feaa866ab437764955305eee2a7bb06075ead1ec4bc5ebe5e1c502a1cd3839382cf86
|
data/lib/gared/primo.rb
CHANGED
@@ -36,20 +36,24 @@ module Gared
|
|
36
36
|
sleep 1 # respect the server and avoid flood-blocking
|
37
37
|
end
|
38
38
|
recs.each do |r|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
39
|
+
begin
|
40
|
+
deets = r['PrimoNMBib']['record']['display']
|
41
|
+
p = Publication.new(ctx)
|
42
|
+
p.title = deets['title']
|
43
|
+
p.author_line = deets['creator']
|
44
|
+
p.language = deets['language']
|
45
|
+
p.notes = "#{deets['format']}\n#{deets['subject']}"
|
46
|
+
p.publisher_line = deets['publisher']
|
47
|
+
p.pub_year = deets['creationdate']
|
48
|
+
p.source_id = r['PrimoNMBib']['record']['control']['sourcerecordid']
|
49
|
+
h = Holding.new
|
50
|
+
h.source_id = p.source_id
|
51
|
+
h.source_name = 'Primo:'+@options[:institution]
|
52
|
+
p.add_holding(h)
|
53
|
+
ret << p
|
54
|
+
rescue Exception
|
55
|
+
puts $!
|
56
|
+
end
|
53
57
|
end
|
54
58
|
rescue Exception
|
55
59
|
puts $!
|