exlibris-primo 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Exlibris
2
2
  module Primo
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -48,7 +48,7 @@ module Exlibris
48
48
  #
49
49
  # Abstract class for Primo user interactions
50
50
  #
51
- class User < Base
51
+ class User < Exlibris::Primo::WebService::Request::Base
52
52
  # Add user_id to the base elements
53
53
  self.add_base_elements :user_id
54
54
  self.abstract = true
@@ -57,7 +57,7 @@ module Exlibris
57
57
  #
58
58
  # Abstract class for Primo record interactions
59
59
  #
60
- class Record < Base
60
+ class Record < Exlibris::Primo::WebService::Request::Base
61
61
  # Add doc_id to the base elements
62
62
  self.add_base_elements :doc_id
63
63
  self.abstract = true
@@ -66,7 +66,7 @@ module Exlibris
66
66
  #
67
67
  # Abstract class for Primo user/record interactions
68
68
  #
69
- class UserRecord < Record
69
+ class UserRecord < Exlibris::Primo::WebService::Request::Record
70
70
  # Add user_id to the base elements
71
71
  self.add_base_elements :user_id
72
72
  self.abstract = true
@@ -5,7 +5,7 @@ module Exlibris
5
5
  #
6
6
  # Abstract class for eshelf interaction
7
7
  #
8
- class Eshelf < User
8
+ class Eshelf < Exlibris::Primo::WebService::Request::User
9
9
  self.add_base_elements :folder_id
10
10
  self.abstract = true
11
11
  self.has_client
@@ -14,7 +14,7 @@ module Exlibris
14
14
  #
15
15
  # Abstract class for eshelf record interaction
16
16
  #
17
- class EshelfRecord < Eshelf
17
+ class EshelfRecord < Exlibris::Primo::WebService::Request::Eshelf
18
18
  self.add_base_elements :doc_id
19
19
  self.abstract = true
20
20
  end
@@ -22,7 +22,7 @@ module Exlibris
22
22
  #
23
23
  # Abstract class for eshelf structure interaction
24
24
  #
25
- class EshelfStructure < Eshelf
25
+ class EshelfStructure < Exlibris::Primo::WebService::Request::Eshelf
26
26
  self.add_base_elements :include_basket_items
27
27
  self.has_client
28
28
  self.abstract = true
@@ -31,19 +31,19 @@ module Exlibris
31
31
  #
32
32
  # Get eshelf structure from Primo for a specified user
33
33
  #
34
- class GetEshelfStructure < EshelfStructure; end
34
+ class GetEshelfStructure < Exlibris::Primo::WebService::Request::EshelfStructure; end
35
35
 
36
36
  #
37
37
  # Get eshelf from Primo for a specified user
38
38
  #
39
- class GetEshelf < Eshelf
39
+ class GetEshelf < Exlibris::Primo::WebService::Request::Eshelf
40
40
  self.add_base_elements :get_delivery
41
41
  end
42
42
 
43
43
  #
44
44
  # Add given record to Primo for a specified user
45
45
  #
46
- class AddToEshelf < EshelfRecord
46
+ class AddToEshelf < Exlibris::Primo::WebService::Request::EshelfRecord
47
47
  self.add_base_elements :searchkey
48
48
  self.remove_base_elements :folder_id
49
49
  end
@@ -51,12 +51,12 @@ module Exlibris
51
51
  #
52
52
  # Remove given record from Primo for a specified user
53
53
  #
54
- class RemoveFromEshelf < EshelfRecord; end
54
+ class RemoveFromEshelf < Exlibris::Primo::WebService::Request::EshelfRecord; end
55
55
 
56
56
  #
57
57
  # Add given folder name to Primo for a specified user
58
58
  #
59
- class AddFolderToEshelf < Eshelf
59
+ class AddFolderToEshelf < Exlibris::Primo::WebService::Request::Eshelf
60
60
  self.add_base_elements :folder_name, :parent_folder
61
61
  self.remove_base_elements :folder_id
62
62
  end
@@ -64,7 +64,7 @@ module Exlibris
64
64
  #
65
65
  # Remove given folder from Primo for a specified user
66
66
  #
67
- class RemoveFolderFromEshelf < Eshelf; end
67
+ class RemoveFolderFromEshelf < Exlibris::Primo::WebService::Request::Eshelf; end
68
68
  end
69
69
  end
70
70
  end
@@ -5,7 +5,7 @@ module Exlibris
5
5
  #
6
6
  # Abstract class for reviews interaction
7
7
  #
8
- class Reviews < UserRecord
8
+ class Reviews < Exlibris::Primo::WebService::Request::UserRecord
9
9
  self.abstract = true
10
10
  self.has_client
11
11
  end
@@ -14,26 +14,26 @@ module Exlibris
14
14
  # Get reviews from from Primo for a specified user
15
15
  # and record
16
16
  #
17
- class GetReviews < Reviews; end
17
+ class GetReviews < Exlibris::Primo::WebService::Request::Reviews; end
18
18
 
19
19
  #
20
20
  # Get all reviews for a specified user from Primo
21
21
  #
22
- class GetAllMyReviews < Reviews
22
+ class GetAllMyReviews < Exlibris::Primo::WebService::Request::Reviews
23
23
  self.remove_base_elements :doc_id
24
24
  end
25
25
 
26
26
  #
27
27
  # Get reviews for a specified record from Primo
28
28
  #
29
- class GetReviewsForRecord < Reviews
29
+ class GetReviewsForRecord < Exlibris::Primo::WebService::Request::Reviews
30
30
  self.remove_base_elements :user_id
31
31
  end
32
32
 
33
33
  #
34
34
  # Get reviews of a given rating for a specified user from Primo
35
35
  #
36
- class GetReviewsByRating < Reviews
36
+ class GetReviewsByRating < Exlibris::Primo::WebService::Request::Reviews
37
37
  self.add_base_elements :rating
38
38
  self.remove_base_elements :doc_id
39
39
  end
@@ -41,7 +41,7 @@ module Exlibris
41
41
  #
42
42
  # Add given review to Primo for a specified record and user
43
43
  #
44
- class AddReview < Reviews
44
+ class AddReview < Exlibris::Primo::WebService::Request::Reviews
45
45
  # Add review elements to the base elements
46
46
  self.add_base_elements :value, :rating, :user_display_name,
47
47
  :allow_user_name, :status
@@ -50,7 +50,7 @@ module Exlibris
50
50
  #
51
51
  # Remove review from Primo for a specified record and user
52
52
  #
53
- class RemoveReview < Reviews; end
53
+ class RemoveReview < Exlibris::Primo::WebService::Request::Reviews; end
54
54
  end
55
55
  end
56
56
  end
@@ -5,7 +5,7 @@ module Exlibris
5
5
  #
6
6
  # Search Primo
7
7
  #
8
- class Search < Base
8
+ class Search < Exlibris::Primo::WebService::Request::Base
9
9
  self.has_client
10
10
  self.soap_action = :search_brief
11
11
  include DisplayFields
@@ -38,7 +38,7 @@ module Exlibris
38
38
  #
39
39
  # Get a specific record from Primo.
40
40
  #
41
- class FullView < Search
41
+ class FullView < Exlibris::Primo::WebService::Request::Search
42
42
  # Add doc_id to the base elements
43
43
  self.add_base_elements :doc_id
44
44
  self.soap_action = :get_record
@@ -5,7 +5,7 @@ module Exlibris
5
5
  #
6
6
  # Abstract class for tags interaction
7
7
  #
8
- class Tags < UserRecord
8
+ class Tags < Exlibris::Primo::WebService::Request::UserRecord
9
9
  self.abstract = true
10
10
  self.has_client
11
11
  end
@@ -14,40 +14,40 @@ module Exlibris
14
14
  # Get tags from from Primo for a specified user
15
15
  # and record
16
16
  #
17
- class GetTags < Tags; end
17
+ class GetTags < Exlibris::Primo::WebService::Request::Tags; end
18
18
 
19
19
  #
20
20
  # Get all tags for a specified user from Primo
21
21
  #
22
- class GetAllMyTags < Tags
22
+ class GetAllMyTags < Exlibris::Primo::WebService::Request::Tags
23
23
  self.remove_base_elements :doc_id
24
24
  end
25
25
 
26
26
  #
27
27
  # Get tags for a specified record from Primo
28
28
  #
29
- class GetTagsForRecord < Tags
29
+ class GetTagsForRecord < Exlibris::Primo::WebService::Request::Tags
30
30
  self.remove_base_elements :user_id
31
31
  end
32
32
 
33
33
  #
34
34
  # Add given tag to Primo for a specified record and user
35
35
  #
36
- class AddTag < Tags
36
+ class AddTag < Exlibris::Primo::WebService::Request::Tags
37
37
  self.add_base_elements :value
38
38
  end
39
39
 
40
40
  #
41
41
  # Remove given tag from Primo for a specified record and user
42
42
  #
43
- class RemoveTag < Tags
43
+ class RemoveTag < Exlibris::Primo::WebService::Request::Tags
44
44
  self.add_base_elements :value
45
45
  end
46
46
 
47
47
  #
48
48
  # Remove all tags from Primo for a specified user
49
49
  #
50
- class RemoveUserTags < Tags
50
+ class RemoveUserTags < Exlibris::Primo::WebService::Request::Tags
51
51
  self.remove_base_elements :doc_id
52
52
  end
53
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exlibris-primo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -421,7 +421,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
421
421
  version: '0'
422
422
  segments:
423
423
  - 0
424
- hash: 1718287978593238779
424
+ hash: 2972973480372446674
425
425
  required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  none: false
427
427
  requirements:
@@ -430,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
430
430
  version: '0'
431
431
  segments:
432
432
  - 0
433
- hash: 1718287978593238779
433
+ hash: 2972973480372446674
434
434
  requirements: []
435
435
  rubyforge_project:
436
436
  rubygems_version: 1.8.24