summon 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.1.4 2010-01-12
2
+ * 4 minor enhancements:
3
+ * add ISICitedReferencesCount for documents on which they're available
4
+ * add ISICitedReferencesURI for document on which available
5
+ * add command line option for setting s.role API parameter
6
+ * map Document::URI field
7
+
1
8
  === 1.1.3 2010-01-11
2
9
  * 2 major enhancements:
3
10
  * support for passing locale to summon gem
data/lib/summon.rb CHANGED
@@ -6,7 +6,7 @@ require 'cgi'
6
6
  require 'json'
7
7
 
8
8
  module Summon
9
- VERSION = "1.1.3"
9
+ VERSION = "1.1.4"
10
10
  DEFAULT_LOCALE = 'en'
11
11
  require 'summon/locales/en'
12
12
  require 'summon/locales/fr'
data/lib/summon/cli.rb CHANGED
@@ -21,7 +21,8 @@ module Summon
21
21
  "s.fvgf" => [],
22
22
  "s.rff" => [],
23
23
  "s.hs" => "*",
24
- "s.he" => "*"
24
+ "s.he" => "*",
25
+ "s.role" => "none"
25
26
  }
26
27
  raw = nil
27
28
 
@@ -53,6 +54,7 @@ module Summon
53
54
  opts.on("--s.ho=BOOLEAN", "Holdings Only: restrict this search to my institution's holdings only ") {|n| params["s.ho"] = n}
54
55
  opts.on("--s.sort=FIELD:DIRECTION", "Sort: specifiy sort order (e.g. PublicationDate:DESC)") {|s| params["s.sort"] = s}
55
56
  opts.on("--s.dym=BOOLEAN", "Did You Mean?: enables or disables search suggestions.") {|dym| params["s.dym"] = dym}
57
+ opts.on("--s.role=VALUE", "API Authorization Role. e.g. --s.role=none (default) or --s.role=authenticated") {|s| params["s.role"] = s}
56
58
 
57
59
  opts.separator ""
58
60
  opts.separator "Configuration Options"
@@ -16,6 +16,9 @@ class Summon::Document < Summon::Schema
16
16
  attr :end_page
17
17
  attr :page_count
18
18
  attr :publication_date, :json_name => "PublicationDate_xml", :transform => :Date
19
+
20
+ attr :isi_cited_references_count, :json_name => "ISICitedReferencesCount"
21
+ attr :isi_cited_references_uri, :json_name => "ISICitedReferencesURI"
19
22
 
20
23
  attr :dissertation_advisor
21
24
  attr :dissertation_category
@@ -42,6 +45,7 @@ class Summon::Document < Summon::Schema
42
45
  attr :snippet #highlight
43
46
  attr :abstract
44
47
  attr :fulltext, :boolean => true, :json_name => "hasFullText"
48
+ attr :uri, :json_name => "URI"
45
49
  attr :url
46
50
  attr :open_url
47
51
  attr :subject_terms
@@ -51,7 +55,6 @@ class Summon::Document < Summon::Schema
51
55
  attr :thumbnail_large, :json_name => "thumbnail_l"
52
56
  attr :availability_id
53
57
 
54
-
55
58
  def isbn
56
59
  @isbns.first
57
60
  end
@@ -47,6 +47,9 @@
47
47
  "ID": [
48
48
  "proquest_dll_1839009301"
49
49
  ],
50
+ "ISICitedReferencesCount": [
51
+ 5
52
+ ],
50
53
  "NewspaperSection": [
51
54
  "Valley & State"
52
55
  ],
@@ -70,6 +70,12 @@ describe Summon::Document do
70
70
  "ID": [
71
71
  "gvsu_catalog_b16644323"
72
72
  ],
73
+ "ISICitedReferencesCount": [
74
+ 5
75
+ ],
76
+ "ISICitedReferencesURI": [
77
+ "http://happy.com"
78
+ ],
73
79
  "LCCallNum": [
74
80
  "M1630.18 .H95 2000",
75
81
  "M1630.20 .H95 2000"
@@ -87,6 +93,9 @@ describe Summon::Document do
87
93
  "PublicationDateDecade": [
88
94
  "2000"
89
95
  ],
96
+ "URI": [
97
+ "http://disney.com"
98
+ ],
90
99
  "openUrl": "ctx_ver=Z39.88-2004&rfr_id=info:sid\/summon.serialssolutions.com&rft_val_fmt=info:ofi\/fmt:kev:mtx:dc&rft.title=Lisa+Hunter+--+alive&rft.creator=Hunter%2C+Lisa&rft.date=c200-0.&rft.pub=Spirulina+Records&rft.externalDBID=n%2Fa&rft.externalDocID=b16644323",
91
100
  "Author_xml": [
92
101
  {
@@ -222,6 +231,8 @@ id: gvsu_catalog_b16644323
222
231
  isbns:
223
232
  - 0849343763 (v. 1)
224
233
  - 0849343771 (v. 2)
234
+ isi_cited_references_count: 5
235
+ isi_cited_references_uri: http://happy.com
225
236
  issns:
226
237
  - 1063-7125
227
238
  - 0000-1111
@@ -257,6 +268,7 @@ thumbnail_large: http://api.test.summon.serialssolutions.com:8093/image/isbn/YX3
257
268
  thumbnail_medium: http://api.test.summon.serialssolutions.com:8093/image/isbn/YX3FL6LB6P/9781864879094/medium
258
269
  thumbnail_small: http://api.test.summon.serialssolutions.com:8093/image/isbn/YX3FL6LB6P/9781864879094/small
259
270
  title: Lisa Hunter -- alive
271
+ uri: http://disney.com
260
272
  url:
261
273
  volume:
262
274
  YAML
data/summon.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{summon}
5
- s.version = "1.1.3"
5
+ s.version = "1.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Charles Lowell"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: summon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell