exlibris-primo 0.1.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) hide show
  1. data/MIT-LICENSE +1 -1
  2. data/README.md +111 -0
  3. data/Rakefile +2 -1
  4. data/lib/exlibris-primo.rb +4 -14
  5. data/lib/exlibris/primo.rb +13 -0
  6. data/lib/exlibris/primo/abstract.rb +28 -0
  7. data/lib/exlibris/primo/chain_gang/README.md +9 -0
  8. data/lib/exlibris/primo/chain_gang/base.rb +121 -0
  9. data/lib/exlibris/primo/chain_gang/record.rb +18 -0
  10. data/lib/exlibris/primo/chain_gang/search.rb +319 -0
  11. data/lib/exlibris/primo/chain_gang/user.rb +18 -0
  12. data/lib/exlibris/primo/config.rb +69 -0
  13. data/lib/exlibris/primo/eshelf.rb +115 -62
  14. data/lib/exlibris/primo/facet.rb +40 -0
  15. data/lib/exlibris/primo/facet_value.rb +40 -0
  16. data/lib/exlibris/primo/holding.rb +81 -152
  17. data/lib/exlibris/primo/link.rb +32 -0
  18. data/lib/exlibris/primo/namespaces.rb +44 -0
  19. data/lib/exlibris/primo/pnx/dedup_mgr.rb +91 -0
  20. data/lib/exlibris/primo/pnx/elements.rb +79 -0
  21. data/lib/exlibris/primo/pnx/frbr.rb +24 -0
  22. data/lib/exlibris/primo/pnx/holdings.rb +36 -0
  23. data/lib/exlibris/primo/pnx/links.rb +54 -0
  24. data/lib/exlibris/primo/pnx/openurl.rb +24 -0
  25. data/lib/exlibris/primo/pnx/subfields.rb +18 -0
  26. data/lib/exlibris/primo/record.rb +20 -106
  27. data/lib/exlibris/primo/request_attributes.rb +28 -0
  28. data/lib/exlibris/primo/review.rb +46 -0
  29. data/lib/exlibris/primo/reviews.rb +81 -0
  30. data/lib/exlibris/primo/search.rb +82 -0
  31. data/lib/exlibris/primo/source/aleph.rb +77 -31
  32. data/lib/exlibris/primo/tag.rb +34 -0
  33. data/lib/exlibris/primo/tags.rb +103 -0
  34. data/lib/exlibris/primo/version.rb +1 -1
  35. data/lib/exlibris/primo/web_service/client/base.rb +30 -0
  36. data/lib/exlibris/primo/web_service/client/base/endpoint.rb +29 -0
  37. data/lib/exlibris/primo/web_service/client/base/savon_client.rb +24 -0
  38. data/lib/exlibris/primo/web_service/client/base/savon_config.rb +19 -0
  39. data/lib/exlibris/primo/web_service/client/base/soap_actions.rb +55 -0
  40. data/lib/exlibris/primo/web_service/client/base/wsdl.rb +14 -0
  41. data/lib/exlibris/primo/web_service/client/eshelf.rb +22 -0
  42. data/lib/exlibris/primo/web_service/client/reviews.rb +15 -0
  43. data/lib/exlibris/primo/web_service/client/search.rb +15 -0
  44. data/lib/exlibris/primo/web_service/client/tags.rb +14 -0
  45. data/lib/exlibris/primo/web_service/request/base.rb +77 -0
  46. data/lib/exlibris/primo/web_service/request/base/base_elements.rb +71 -0
  47. data/lib/exlibris/primo/web_service/request/base/call.rb +19 -0
  48. data/lib/exlibris/primo/web_service/request/base/client.rb +45 -0
  49. data/lib/exlibris/primo/web_service/request/base/soap_action.rb +29 -0
  50. data/lib/exlibris/primo/web_service/request/eshelf.rb +71 -0
  51. data/lib/exlibris/primo/web_service/request/reviews.rb +57 -0
  52. data/lib/exlibris/primo/web_service/request/search.rb +49 -0
  53. data/lib/exlibris/primo/web_service/request/search/display_fields.rb +30 -0
  54. data/lib/exlibris/primo/web_service/request/search/languages.rb +32 -0
  55. data/lib/exlibris/primo/web_service/request/search/location.rb +15 -0
  56. data/lib/exlibris/primo/web_service/request/search/locations.rb +33 -0
  57. data/lib/exlibris/primo/web_service/request/search/query_term.rb +43 -0
  58. data/lib/exlibris/primo/web_service/request/search/query_terms.rb +40 -0
  59. data/lib/exlibris/primo/web_service/request/search/search_elements.rb +97 -0
  60. data/lib/exlibris/primo/web_service/request/search/sort_bys.rb +32 -0
  61. data/lib/exlibris/primo/web_service/request/tags.rb +56 -0
  62. data/lib/exlibris/primo/web_service/response/base.rb +28 -0
  63. data/lib/exlibris/primo/web_service/response/base/error.rb +25 -0
  64. data/lib/exlibris/primo/web_service/response/base/util.rb +19 -0
  65. data/lib/exlibris/primo/web_service/response/did_u_mean.rb +17 -0
  66. data/lib/exlibris/primo/web_service/response/eshelf.rb +68 -0
  67. data/lib/exlibris/primo/web_service/response/facets.rb +21 -0
  68. data/lib/exlibris/primo/web_service/response/records.rb +17 -0
  69. data/lib/exlibris/primo/web_service/response/reviews.rb +49 -0
  70. data/lib/exlibris/primo/web_service/response/search.rb +36 -0
  71. data/lib/exlibris/primo/web_service/response/search_stats.rb +48 -0
  72. data/lib/exlibris/primo/web_service/response/tags.rb +54 -0
  73. data/lib/exlibris/primo/write_attributes.rb +38 -0
  74. data/lib/exlibris/primo/xml_util.rb +63 -0
  75. data/test/{unit/eshelf_test.rb → bak/eshelf_test.rb.bak} +0 -0
  76. data/test/{unit/record_test.rb → bak/record_test.rb.bak} +0 -0
  77. data/test/{unit/searcher_test.rb → bak/searcher_test.rb.bak} +0 -0
  78. data/test/{unit/web_service_test.rb → bak/web_service_test.rb.bak} +0 -0
  79. data/test/config_test.rb +72 -0
  80. data/test/eshelf_test.rb +66 -0
  81. data/test/exlibris-primo_test.rb +0 -1
  82. data/test/facet_test.rb +27 -0
  83. data/test/facet_value_test.rb +62 -0
  84. data/test/holding_test.rb +26 -0
  85. data/test/link_test.rb +42 -0
  86. data/test/pnx/dedup_mgr_test.rb +16 -0
  87. data/test/pnx/elements_test.rb +16 -0
  88. data/test/pnx/frbr_test.rb +12 -0
  89. data/test/pnx/holdings_test.rb +53 -0
  90. data/test/pnx/links_test.rb +44 -0
  91. data/test/pnx/openurl_test.rb +10 -0
  92. data/test/record_test.rb +11 -0
  93. data/test/review_test.rb +15 -0
  94. data/test/reviews_test.rb +50 -0
  95. data/test/search_test.rb +328 -0
  96. data/test/source/aleph_test.rb +52 -0
  97. data/test/support/config.yml +35 -0
  98. data/test/tag_test.rb +12 -0
  99. data/test/tags_test.rb +65 -0
  100. data/test/test_helper.rb +536 -4
  101. data/test/vcr_cassettes/client_action_no_arguments.yml +38 -0
  102. data/test/vcr_cassettes/client_get_all_my_reviews.yml +49 -0
  103. data/test/vcr_cassettes/client_get_all_my_tags.yml +49 -0
  104. data/test/vcr_cassettes/client_get_eshelf.yml +13812 -0
  105. data/test/vcr_cassettes/client_get_record.yml +222 -0
  106. data/test/vcr_cassettes/client_get_reviews.yml +39 -0
  107. data/test/vcr_cassettes/client_get_tags.yml +42 -0
  108. data/test/vcr_cassettes/client_search_brief_isbn.yml +288 -0
  109. data/test/vcr_cassettes/client_search_brief_issn.yml +282 -0
  110. data/test/vcr_cassettes/client_too_many_arguments.yml +38 -0
  111. data/test/vcr_cassettes/eshelf.yml +13845 -0
  112. data/test/vcr_cassettes/eshelf_add_folder.yml +109 -0
  113. data/test/vcr_cassettes/eshelf_add_record.yml +14237 -0
  114. data/test/vcr_cassettes/eshelf_add_records.yml +14156 -0
  115. data/test/vcr_cassettes/eshelf_basket_id.yml +36 -0
  116. data/test/vcr_cassettes/eshelf_records.yml +13460 -0
  117. data/test/vcr_cassettes/eshelf_remove_folder.yml +76 -0
  118. data/test/vcr_cassettes/eshelf_remove_record.yml +13500 -0
  119. data/test/vcr_cassettes/eshelf_remove_records.yml +13741 -0
  120. data/test/vcr_cassettes/{web_service_single_document.yml → remote_record_call.yml} +12 -23
  121. data/test/vcr_cassettes/{searcher_dedupmrg_by_id.yml → remote_record_dedupmgr.yml} +19 -31
  122. data/test/vcr_cassettes/request_add_folder_to_eshelf.yml +43 -0
  123. data/test/vcr_cassettes/request_add_to_eshelf.yml +43 -0
  124. data/test/vcr_cassettes/request_did_u_mean_enabled.yml +48 -0
  125. data/test/vcr_cassettes/request_full_view.yml +222 -0
  126. data/test/vcr_cassettes/request_get_eshelf.yml +13812 -0
  127. data/test/vcr_cassettes/request_get_eshelf_structure.yml +36 -0
  128. data/test/vcr_cassettes/request_get_reviews.yml +39 -0
  129. data/test/vcr_cassettes/request_get_tags.yml +42 -0
  130. data/test/vcr_cassettes/request_remove_folder_from_eshelf.yml +43 -0
  131. data/test/vcr_cassettes/request_remove_from_eshelf.yml +43 -0
  132. data/test/vcr_cassettes/request_search_author.yml +1258 -0
  133. data/test/vcr_cassettes/request_search_did_u_mean.yml +48 -0
  134. data/test/vcr_cassettes/request_search_genre.yml +1321 -0
  135. data/test/vcr_cassettes/request_search_isbn.yml +288 -0
  136. data/test/vcr_cassettes/request_search_issn.yml +282 -0
  137. data/test/vcr_cassettes/request_search_locations.yml +288 -0
  138. data/test/vcr_cassettes/request_search_title.yml +1024 -0
  139. data/test/vcr_cassettes/request_search_title_author_genre.yml +708 -0
  140. data/test/vcr_cassettes/response_add_folder_to_eshelf.yml +43 -0
  141. data/test/vcr_cassettes/response_add_review.yml +39 -0
  142. data/test/vcr_cassettes/response_add_tag.yml +39 -0
  143. data/test/vcr_cassettes/response_add_to_eshelf.yml +43 -0
  144. data/test/vcr_cassettes/response_did_u_mean_disabled.yml +46 -0
  145. data/test/vcr_cassettes/response_did_u_mean_enabled.yml +48 -0
  146. data/test/vcr_cassettes/response_full_view.yml +222 -0
  147. data/test/vcr_cassettes/response_get_all_my_reviews.yml +49 -0
  148. data/test/vcr_cassettes/response_get_all_my_tags.yml +49 -0
  149. data/test/vcr_cassettes/response_get_eshelf.yml +13633 -0
  150. data/test/vcr_cassettes/response_get_eshelf_structure.yml +36 -0
  151. data/test/vcr_cassettes/response_get_reviews.yml +39 -0
  152. data/test/vcr_cassettes/response_get_reviews_by_rating.yml +49 -0
  153. data/test/vcr_cassettes/response_get_reviews_for_record.yml +39 -0
  154. data/test/vcr_cassettes/response_get_tags.yml +42 -0
  155. data/test/vcr_cassettes/response_get_tags_for_record.yml +42 -0
  156. data/test/vcr_cassettes/response_remove_folder_from_eshelf.yml +43 -0
  157. data/test/vcr_cassettes/response_remove_from_eshelf.yml +43 -0
  158. data/test/vcr_cassettes/response_remove_review.yml +39 -0
  159. data/test/vcr_cassettes/response_remove_tag.yml +39 -0
  160. data/test/vcr_cassettes/response_remove_user_tags.yml +39 -0
  161. data/test/vcr_cassettes/response_search.yml +288 -0
  162. data/test/vcr_cassettes/response_search_did_u_mean.yml +48 -0
  163. data/test/vcr_cassettes/reviews.yml +49 -0
  164. data/test/vcr_cassettes/reviews_add_review.yml +39 -0
  165. data/test/vcr_cassettes/reviews_check_empty_reviews_first.yml +39 -0
  166. data/test/vcr_cassettes/reviews_check_empty_reviews_last.yml +39 -0
  167. data/test/vcr_cassettes/reviews_rating.yml +168 -0
  168. data/test/vcr_cassettes/reviews_record.yml +49 -0
  169. data/test/vcr_cassettes/reviews_remove_review.yml +39 -0
  170. data/test/vcr_cassettes/reviews_reviews.yml +49 -0
  171. data/test/vcr_cassettes/reviews_user.yml +58 -0
  172. data/test/vcr_cassettes/search_chaining_author_title.yml +938 -0
  173. data/test/vcr_cassettes/search_chaining_contains_any.yml +1453 -0
  174. data/test/vcr_cassettes/search_chaining_contains_author_starts_with_title.yml +1055 -0
  175. data/test/vcr_cassettes/search_chaining_isbn.yml +288 -0
  176. data/test/vcr_cassettes/search_chaining_page_size_author.yml +5933 -0
  177. data/test/vcr_cassettes/search_did_u_mean.yml +48 -0
  178. data/test/vcr_cassettes/search_enable_highlighting.yml +1337 -0
  179. data/test/vcr_cassettes/search_isbn.yml +288 -0
  180. data/test/vcr_cassettes/search_languages.yml +1332 -0
  181. data/test/vcr_cassettes/search_locations.yml +1440 -0
  182. data/test/vcr_cassettes/search_record_id.yml +222 -0
  183. data/test/vcr_cassettes/search_record_id_chaining.yml +222 -0
  184. data/test/vcr_cassettes/search_sort_by.yml +1289 -0
  185. data/test/vcr_cassettes/search_sort_by_locations.yml +1387 -0
  186. data/test/vcr_cassettes/tags.yml +56 -0
  187. data/test/vcr_cassettes/tags_add_extra_tag.yml +39 -0
  188. data/test/vcr_cassettes/tags_add_tag.yml +39 -0
  189. data/test/vcr_cassettes/tags_add_tags.yml +111 -0
  190. data/test/vcr_cassettes/tags_check_1_tags.yml +56 -0
  191. data/test/vcr_cassettes/tags_check_2_tags.yml +68 -0
  192. data/test/vcr_cassettes/tags_check_empty_tags_first.yml +42 -0
  193. data/test/vcr_cassettes/tags_check_empty_tags_last.yml +42 -0
  194. data/test/vcr_cassettes/tags_remove_tag.yml +39 -0
  195. data/test/vcr_cassettes/tags_remove_tags.yml +111 -0
  196. data/test/vcr_cassettes/tags_remove_user_tags.yml +39 -0
  197. data/test/vcr_cassettes/tags_tags.yml +104 -0
  198. data/test/vcr_cassettes/tags_user.yml +73 -0
  199. data/test/web_service/client/abstract_test.rb +29 -0
  200. data/test/web_service/client/eshelf_test.rb +22 -0
  201. data/test/web_service/client/reviews_test.rb +31 -0
  202. data/test/web_service/client/savon_client_test.rb +17 -0
  203. data/test/web_service/client/search_benchmarks.rb +29 -0
  204. data/test/web_service/client/search_test.rb +44 -0
  205. data/test/web_service/client/soap_actions_test.rb +45 -0
  206. data/test/web_service/client/tags_test.rb +31 -0
  207. data/test/web_service/request/abstract_test.rb +68 -0
  208. data/test/web_service/request/base_elements_test.rb +231 -0
  209. data/test/web_service/request/build_xml_test.rb +23 -0
  210. data/test/web_service/request/client_test.rb +53 -0
  211. data/test/web_service/request/eshelf_test.rb +26 -0
  212. data/test/web_service/request/location_test.rb +25 -0
  213. data/test/web_service/request/query_term_test.rb +29 -0
  214. data/test/web_service/request/reviews_test.rb +27 -0
  215. data/test/web_service/request/search_test.rb +234 -0
  216. data/test/web_service/request/soap_action_test.rb +120 -0
  217. data/test/web_service/request/tags_test.rb +27 -0
  218. data/test/web_service/response/abstract_test.rb +200 -0
  219. data/test/web_service/response/did_u_mean_test.rb +44 -0
  220. data/test/web_service/response/error_test.rb +31 -0
  221. data/test/web_service/response/eshelf_test.rb +28 -0
  222. data/test/web_service/response/facets_test.rb +42 -0
  223. data/test/web_service/response/records_test.rb +56 -0
  224. data/test/web_service/response/reviews_test.rb +28 -0
  225. data/test/web_service/response/search_stats_test.rb +75 -0
  226. data/test/web_service/response/search_test.rb +40 -0
  227. data/test/web_service/response/tags_test.rb +28 -0
  228. data/test/xml_util_test.rb +23 -0
  229. metadata +456 -114
  230. data/README.rdoc +0 -68
  231. data/lib/exlibris/primo/related_link.rb +0 -20
  232. data/lib/exlibris/primo/rsrc.rb +0 -20
  233. data/lib/exlibris/primo/searcher.rb +0 -277
  234. data/lib/exlibris/primo/toc.rb +0 -20
  235. data/lib/exlibris/primo/web_service.rb +0 -203
  236. data/test/unit/searcher_benchmarks.rb +0 -74
  237. data/test/unit/web_service_benchmarks.rb +0 -58
  238. data/test/vcr_cassettes/eshelf_add_invalid_records.yml +0 -107
  239. data/test/vcr_cassettes/eshelf_add_same_record_twice.yml +0 -159
  240. data/test/vcr_cassettes/eshelf_add_to_empty_basket.yml +0 -107
  241. data/test/vcr_cassettes/eshelf_add_to_invalid_basket.yml +0 -55
  242. data/test/vcr_cassettes/eshelf_invalid_eshelf.yml +0 -55
  243. data/test/vcr_cassettes/eshelf_invalid_institution.yml +0 -55
  244. data/test/vcr_cassettes/eshelf_valid_eshelf.yml +0 -2553
  245. data/test/vcr_cassettes/eshelf_valid_eshelf_structure.yml +0 -47
  246. data/test/vcr_cassettes/record.yml +0 -212
  247. data/test/vcr_cassettes/record_invalid_record.yml +0 -55
  248. data/test/vcr_cassettes/record_sub_record.yml +0 -212
  249. data/test/vcr_cassettes/record_valid_record.yml +0 -212
  250. data/test/vcr_cassettes/searcher_base_holdings_by_id.yml +0 -212
  251. data/test/vcr_cassettes/searcher_diacritics1_by_id.yml +0 -207
  252. data/test/vcr_cassettes/searcher_diacritics2_by_id.yml +0 -232
  253. data/test/vcr_cassettes/searcher_holdings_by_id.yml +0 -212
  254. data/test/vcr_cassettes/searcher_invalid_id.yml +0 -55
  255. data/test/vcr_cassettes/searcher_rsrcs_by_id.yml +0 -270
  256. data/test/vcr_cassettes/searcher_search_by_isbn.yml +0 -278
  257. data/test/vcr_cassettes/searcher_search_by_issn.yml +0 -297
  258. data/test/vcr_cassettes/searcher_search_by_title_author_genre.yml +0 -671
  259. data/test/vcr_cassettes/searcher_test_bug_1361.yml +0 -224
  260. data/test/vcr_cassettes/searcher_test_problem_by_id.yml +0 -194
  261. data/test/vcr_cassettes/searcher_tocs_by_id.yml +0 -217
  262. data/test/vcr_cassettes/web_service_author_search.yml +0 -1269
  263. data/test/vcr_cassettes/web_service_bogus_200.yml +0 -392
  264. data/test/vcr_cassettes/web_service_brief_search.yml +0 -299
  265. data/test/vcr_cassettes/web_service_get_eshelf.yml +0 -11823
  266. data/test/vcr_cassettes/web_service_get_eshelf_structure_search.yml +0 -47
  267. data/test/vcr_cassettes/web_service_invalid_document.yml +0 -54
  268. data/test/vcr_cassettes/web_service_isbn_search.yml +0 -299
  269. data/test/vcr_cassettes/web_service_issn_search.yml +0 -293
  270. data/test/vcr_cassettes/web_service_problem_document.yml +0 -193
  271. data/test/vcr_cassettes/web_service_title_author_genre_search.yml +0 -719
  272. data/test/vcr_cassettes/web_service_title_search.yml +0 -1035
@@ -0,0 +1,75 @@
1
+ module WebService
2
+ module Response
3
+ require 'test_helper'
4
+ class SearchStatsTest < Test::Unit::TestCase
5
+ def setup
6
+ @base_url = "http://bobcatdev.library.nyu.edu"
7
+ @isbn = "0143039008"
8
+ @user_id = "N12162279"
9
+ @institution = "NYU"
10
+ @doc_id = "nyu_aleph000062856"
11
+ @dedupmgr_id = "dedupmrg17343091"
12
+ end
13
+
14
+ def test_get_eshelf
15
+ VCR.use_cassette('response get eshelf') {
16
+ soap_action = :get_eshelf
17
+ request = Exlibris::Primo::WebService::Request::GetEshelf.new(:user_id => @user_id,
18
+ :institution => @institution)
19
+ client = Exlibris::Primo::WebService::Client::Eshelf.new(:base_url => @base_url)
20
+ response = Exlibris::Primo::WebService::Response::GetEshelf.new(
21
+ client.send(soap_action, request.to_xml), soap_action)
22
+ assert_not_nil response.total_hits
23
+ assert_not_nil response.hits
24
+ assert_not_nil response.count
25
+ assert_nil response.local?
26
+ }
27
+ end
28
+
29
+ def test_search
30
+ VCR.use_cassette('response search') {
31
+ soap_action = :search_brief
32
+ request = Exlibris::Primo::WebService::Request::Search.new(:user_id => @user_id,
33
+ :institution => @institution)
34
+ request.add_query_term(@isbn, "isbn", "exact")
35
+ client = Exlibris::Primo::WebService::Client::Search.new(:base_url => @base_url)
36
+ response = Exlibris::Primo::WebService::Response::Search.new(
37
+ client.send(soap_action, request.to_xml), soap_action)
38
+ assert_not_nil response.total_hits
39
+ assert_not_nil response.hits
40
+ assert_not_nil response.count
41
+ assert_not_nil response.first_hit
42
+ assert_not_nil response.last_hit
43
+ assert_not_nil response.total_time
44
+ assert_not_nil response.time
45
+ assert_not_nil response.hit_time
46
+ assert_not_nil response.search_time
47
+ assert_not_nil response.local?
48
+ assert response.local?
49
+ }
50
+ end
51
+
52
+ def test_full_view
53
+ VCR.use_cassette('response full view') {
54
+ soap_action = :get_record
55
+ request = Exlibris::Primo::WebService::Request::FullView.new(:user_id => @user_id,
56
+ :institution => @institution, :doc_id => @doc_id)
57
+ client = Exlibris::Primo::WebService::Client::Search.new(:base_url => @base_url)
58
+ response = Exlibris::Primo::WebService::Response::FullView.new(
59
+ client.send(soap_action, request.to_xml), soap_action)
60
+ assert_not_nil response.total_hits
61
+ assert_not_nil response.hits
62
+ assert_not_nil response.count
63
+ assert_nil response.first_hit
64
+ assert_nil response.last_hit
65
+ assert_nil response.total_time
66
+ assert_nil response.time
67
+ assert_nil response.hit_time
68
+ assert_nil response.search_time
69
+ assert_not_nil response.local?
70
+ assert response.local?
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,40 @@
1
+ module WebService
2
+ module Response
3
+ require 'test_helper'
4
+ class SearchTest < Test::Unit::TestCase
5
+ def setup
6
+ @base_url = "http://bobcatdev.library.nyu.edu"
7
+ @isbn = "0143039008"
8
+ @user_id = "N12162279"
9
+ @institution = "NYU"
10
+ @doc_id = "nyu_aleph000062856"
11
+ @dedupmgr_id = "dedupmrg17343091"
12
+ @basket_id ="210075761"
13
+ @new_folder_name = "new folder"
14
+ end
15
+
16
+ def test_search
17
+ VCR.use_cassette('response search') {
18
+ soap_action = :search_brief
19
+ request = Exlibris::Primo::WebService::Request::Search.new(:user_id => @user_id,
20
+ :institution => @institution)
21
+ request.add_query_term(@isbn, "isbn", "exact")
22
+ client = Exlibris::Primo::WebService::Client::Search.new(:base_url => @base_url)
23
+ response = Exlibris::Primo::WebService::Response::Search.new(
24
+ client.send(soap_action, request.to_xml), soap_action)
25
+ }
26
+ end
27
+
28
+ def test_full_view
29
+ VCR.use_cassette('response full view') {
30
+ soap_action = :get_record
31
+ request = Exlibris::Primo::WebService::Request::FullView.new(:user_id => @user_id,
32
+ :institution => @institution, :doc_id => @doc_id)
33
+ client = Exlibris::Primo::WebService::Client::Search.new(:base_url => @base_url)
34
+ response = Exlibris::Primo::WebService::Response::FullView.new(
35
+ client.send(soap_action, request.to_xml), soap_action)
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,28 @@
1
+ module WebService
2
+ module Response
3
+ require 'test_helper'
4
+ class TagsTest < Test::Unit::TestCase
5
+ def setup
6
+ @base_url = "http://bobcatdev.library.nyu.edu"
7
+ @isbn = "0143039008"
8
+ @user_id = "N12162279"
9
+ @institution = "NYU"
10
+ @doc_id = "nyu_aleph000062856"
11
+ @dedupmgr_id = "dedupmrg17343091"
12
+ @basket_id ="210075761"
13
+ @new_folder_name = "new folder"
14
+ end
15
+
16
+ def test_get_tags
17
+ VCR.use_cassette('response get tags') {
18
+ soap_action = :get_tags
19
+ request = Exlibris::Primo::WebService::Request::GetTags.new(:user_id => @user_id,
20
+ :institution => @institution)
21
+ client = Exlibris::Primo::WebService::Client::Tags.new(:base_url => @base_url)
22
+ response = Exlibris::Primo::WebService::Response::GetTags.new(
23
+ client.send(soap_action, request.to_xml), soap_action)
24
+ }
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,23 @@
1
+ require 'test_helper'
2
+ class XmlUtilTest < Test::Unit::TestCase
3
+ def test_to_xml
4
+ assert_nothing_raised {
5
+ record = Exlibris::Primo::Record.new(:raw_xml => "<record><control><recordid>123456</recordid></control></record>\n")
6
+ assert_equal "<record><control><recordid>123456</recordid></control></record>", record.to_xml
7
+ }
8
+ end
9
+
10
+ def test_to_hash
11
+ assert_nothing_raised {
12
+ record = Exlibris::Primo::Record.new(:raw_xml => "<record><control><recordid>123456</recordid></control></record>\n")
13
+ assert_equal({"record"=> { "control" => { "recordid"=> "123456" } } }, record.to_hash)
14
+ }
15
+ end
16
+
17
+ def test_to_json
18
+ assert_nothing_raised {
19
+ record = Exlibris::Primo::Record.new(:raw_xml => "<record><control><recordid>123456</recordid></control></record>\n")
20
+ assert_equal "{\"record\":{\"control\":{\"recordid\":\"123456\"}}}", record.to_json
21
+ }
22
+ end
23
+ 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: 0.1.5
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-12 00:00:00.000000000 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 10.0.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 10.0.3
30
+ - !ruby/object:Gem::Dependency
31
+ name: require_all
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.2.1
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.2.1
14
46
  - !ruby/object:Gem::Dependency
15
47
  name: activesupport
16
48
  requirement: !ruby/object:Gem::Requirement
@@ -32,51 +64,67 @@ dependencies:
32
64
  requirement: !ruby/object:Gem::Requirement
33
65
  none: false
34
66
  requirements:
35
- - - ! '>='
67
+ - - ~>
36
68
  - !ruby/object:Gem::Version
37
- version: '0'
69
+ version: 1.5.3
38
70
  type: :runtime
39
71
  prerelease: false
40
72
  version_requirements: !ruby/object:Gem::Requirement
41
73
  none: false
42
74
  requirements:
43
- - - ! '>='
75
+ - - ~>
44
76
  - !ruby/object:Gem::Version
45
- version: '0'
77
+ version: 1.5.3
46
78
  - !ruby/object:Gem::Dependency
47
79
  name: json
48
80
  requirement: !ruby/object:Gem::Requirement
49
81
  none: false
50
82
  requirements:
51
- - - ! '>='
83
+ - - ~>
52
84
  - !ruby/object:Gem::Version
53
- version: '0'
85
+ version: 1.7.5
54
86
  type: :runtime
55
87
  prerelease: false
56
88
  version_requirements: !ruby/object:Gem::Requirement
57
89
  none: false
58
90
  requirements:
59
- - - ! '>='
91
+ - - ~>
60
92
  - !ruby/object:Gem::Version
61
- version: '0'
93
+ version: 1.7.5
62
94
  - !ruby/object:Gem::Dependency
63
- name: soap4r-ruby1.9
95
+ name: savon
64
96
  requirement: !ruby/object:Gem::Requirement
65
97
  none: false
66
98
  requirements:
67
- - - ! '>='
99
+ - - ~>
68
100
  - !ruby/object:Gem::Version
69
- version: '0'
101
+ version: 1.2.0
70
102
  type: :runtime
71
103
  prerelease: false
72
104
  version_requirements: !ruby/object:Gem::Requirement
73
105
  none: false
74
106
  requirements:
75
- - - ! '>='
107
+ - - ~>
76
108
  - !ruby/object:Gem::Version
77
- version: '0'
109
+ version: 1.2.0
78
110
  - !ruby/object:Gem::Dependency
79
- name: vcr
111
+ name: iso-639
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 0.1.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 0.1.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: rdoc
80
128
  requirement: !ruby/object:Gem::Requirement
81
129
  none: false
82
130
  requirements:
@@ -91,22 +139,38 @@ dependencies:
91
139
  - - ! '>='
92
140
  - !ruby/object:Gem::Version
93
141
  version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: vcr
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 2.3.0
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 2.3.0
94
158
  - !ruby/object:Gem::Dependency
95
159
  name: webmock
96
160
  requirement: !ruby/object:Gem::Requirement
97
161
  none: false
98
162
  requirements:
99
- - - ! '>='
163
+ - - ~>
100
164
  - !ruby/object:Gem::Version
101
- version: '0'
165
+ version: 1.8.0
102
166
  type: :development
103
167
  prerelease: false
104
168
  version_requirements: !ruby/object:Gem::Requirement
105
169
  none: false
106
170
  requirements:
107
- - - ! '>='
171
+ - - ~>
108
172
  - !ruby/object:Gem::Version
109
- version: '0'
173
+ version: 1.8.0
110
174
  description: Library to work with Exlibris' Primo discovery system. Does not require
111
175
  Rails.
112
176
  email:
@@ -115,65 +179,234 @@ executables: []
115
179
  extensions: []
116
180
  extra_rdoc_files: []
117
181
  files:
182
+ - lib/exlibris/primo/abstract.rb
183
+ - lib/exlibris/primo/chain_gang/base.rb
184
+ - lib/exlibris/primo/chain_gang/README.md
185
+ - lib/exlibris/primo/chain_gang/record.rb
186
+ - lib/exlibris/primo/chain_gang/search.rb
187
+ - lib/exlibris/primo/chain_gang/user.rb
188
+ - lib/exlibris/primo/config.rb
118
189
  - lib/exlibris/primo/eshelf.rb
190
+ - lib/exlibris/primo/facet.rb
191
+ - lib/exlibris/primo/facet_value.rb
119
192
  - lib/exlibris/primo/holding.rb
193
+ - lib/exlibris/primo/link.rb
194
+ - lib/exlibris/primo/namespaces.rb
195
+ - lib/exlibris/primo/pnx/dedup_mgr.rb
196
+ - lib/exlibris/primo/pnx/elements.rb
197
+ - lib/exlibris/primo/pnx/frbr.rb
198
+ - lib/exlibris/primo/pnx/holdings.rb
199
+ - lib/exlibris/primo/pnx/links.rb
200
+ - lib/exlibris/primo/pnx/openurl.rb
201
+ - lib/exlibris/primo/pnx/subfields.rb
120
202
  - lib/exlibris/primo/record.rb
121
- - lib/exlibris/primo/related_link.rb
122
- - lib/exlibris/primo/rsrc.rb
123
- - lib/exlibris/primo/searcher.rb
203
+ - lib/exlibris/primo/request_attributes.rb
204
+ - lib/exlibris/primo/review.rb
205
+ - lib/exlibris/primo/reviews.rb
206
+ - lib/exlibris/primo/search.rb
124
207
  - lib/exlibris/primo/source/aleph.rb
125
- - lib/exlibris/primo/toc.rb
208
+ - lib/exlibris/primo/tag.rb
209
+ - lib/exlibris/primo/tags.rb
126
210
  - lib/exlibris/primo/version.rb
127
- - lib/exlibris/primo/web_service.rb
211
+ - lib/exlibris/primo/web_service/client/base/endpoint.rb
212
+ - lib/exlibris/primo/web_service/client/base/savon_client.rb
213
+ - lib/exlibris/primo/web_service/client/base/savon_config.rb
214
+ - lib/exlibris/primo/web_service/client/base/soap_actions.rb
215
+ - lib/exlibris/primo/web_service/client/base/wsdl.rb
216
+ - lib/exlibris/primo/web_service/client/base.rb
217
+ - lib/exlibris/primo/web_service/client/eshelf.rb
218
+ - lib/exlibris/primo/web_service/client/reviews.rb
219
+ - lib/exlibris/primo/web_service/client/search.rb
220
+ - lib/exlibris/primo/web_service/client/tags.rb
221
+ - lib/exlibris/primo/web_service/request/base/base_elements.rb
222
+ - lib/exlibris/primo/web_service/request/base/call.rb
223
+ - lib/exlibris/primo/web_service/request/base/client.rb
224
+ - lib/exlibris/primo/web_service/request/base/soap_action.rb
225
+ - lib/exlibris/primo/web_service/request/base.rb
226
+ - lib/exlibris/primo/web_service/request/eshelf.rb
227
+ - lib/exlibris/primo/web_service/request/reviews.rb
228
+ - lib/exlibris/primo/web_service/request/search/display_fields.rb
229
+ - lib/exlibris/primo/web_service/request/search/languages.rb
230
+ - lib/exlibris/primo/web_service/request/search/location.rb
231
+ - lib/exlibris/primo/web_service/request/search/locations.rb
232
+ - lib/exlibris/primo/web_service/request/search/query_term.rb
233
+ - lib/exlibris/primo/web_service/request/search/query_terms.rb
234
+ - lib/exlibris/primo/web_service/request/search/search_elements.rb
235
+ - lib/exlibris/primo/web_service/request/search/sort_bys.rb
236
+ - lib/exlibris/primo/web_service/request/search.rb
237
+ - lib/exlibris/primo/web_service/request/tags.rb
238
+ - lib/exlibris/primo/web_service/response/base/error.rb
239
+ - lib/exlibris/primo/web_service/response/base/util.rb
240
+ - lib/exlibris/primo/web_service/response/base.rb
241
+ - lib/exlibris/primo/web_service/response/did_u_mean.rb
242
+ - lib/exlibris/primo/web_service/response/eshelf.rb
243
+ - lib/exlibris/primo/web_service/response/facets.rb
244
+ - lib/exlibris/primo/web_service/response/records.rb
245
+ - lib/exlibris/primo/web_service/response/reviews.rb
246
+ - lib/exlibris/primo/web_service/response/search.rb
247
+ - lib/exlibris/primo/web_service/response/search_stats.rb
248
+ - lib/exlibris/primo/web_service/response/tags.rb
249
+ - lib/exlibris/primo/write_attributes.rb
250
+ - lib/exlibris/primo/xml_util.rb
251
+ - lib/exlibris/primo.rb
128
252
  - lib/exlibris-primo.rb
129
253
  - MIT-LICENSE
130
254
  - Rakefile
131
- - README.rdoc
255
+ - README.md
256
+ - test/bak/eshelf_test.rb.bak
257
+ - test/bak/record_test.rb.bak
258
+ - test/bak/searcher_test.rb.bak
259
+ - test/bak/web_service_test.rb.bak
260
+ - test/config_test.rb
261
+ - test/eshelf_test.rb
132
262
  - test/exlibris-primo_test.rb
263
+ - test/facet_test.rb
264
+ - test/facet_value_test.rb
265
+ - test/holding_test.rb
266
+ - test/link_test.rb
267
+ - test/pnx/dedup_mgr_test.rb
268
+ - test/pnx/elements_test.rb
269
+ - test/pnx/frbr_test.rb
270
+ - test/pnx/holdings_test.rb
271
+ - test/pnx/links_test.rb
272
+ - test/pnx/openurl_test.rb
273
+ - test/record_test.rb
274
+ - test/review_test.rb
275
+ - test/reviews_test.rb
276
+ - test/search_test.rb
277
+ - test/source/aleph_test.rb
278
+ - test/support/config.yml
279
+ - test/tag_test.rb
280
+ - test/tags_test.rb
133
281
  - test/test_helper.rb
134
- - test/unit/eshelf_test.rb
135
- - test/unit/record_test.rb
136
- - test/unit/searcher_benchmarks.rb
137
- - test/unit/searcher_test.rb
138
- - test/unit/web_service_benchmarks.rb
139
- - test/unit/web_service_test.rb
140
- - test/vcr_cassettes/eshelf_add_invalid_records.yml
141
- - test/vcr_cassettes/eshelf_add_same_record_twice.yml
142
- - test/vcr_cassettes/eshelf_add_to_empty_basket.yml
143
- - test/vcr_cassettes/eshelf_add_to_invalid_basket.yml
144
- - test/vcr_cassettes/eshelf_invalid_eshelf.yml
145
- - test/vcr_cassettes/eshelf_invalid_institution.yml
146
- - test/vcr_cassettes/eshelf_valid_eshelf.yml
147
- - test/vcr_cassettes/eshelf_valid_eshelf_structure.yml
148
- - test/vcr_cassettes/record.yml
149
- - test/vcr_cassettes/record_invalid_record.yml
150
- - test/vcr_cassettes/record_sub_record.yml
151
- - test/vcr_cassettes/record_valid_record.yml
152
- - test/vcr_cassettes/searcher_base_holdings_by_id.yml
153
- - test/vcr_cassettes/searcher_dedupmrg_by_id.yml
154
- - test/vcr_cassettes/searcher_diacritics1_by_id.yml
155
- - test/vcr_cassettes/searcher_diacritics2_by_id.yml
156
- - test/vcr_cassettes/searcher_holdings_by_id.yml
157
- - test/vcr_cassettes/searcher_invalid_id.yml
158
- - test/vcr_cassettes/searcher_rsrcs_by_id.yml
159
- - test/vcr_cassettes/searcher_search_by_isbn.yml
160
- - test/vcr_cassettes/searcher_search_by_issn.yml
161
- - test/vcr_cassettes/searcher_search_by_title_author_genre.yml
162
- - test/vcr_cassettes/searcher_test_bug_1361.yml
163
- - test/vcr_cassettes/searcher_test_problem_by_id.yml
164
- - test/vcr_cassettes/searcher_tocs_by_id.yml
165
- - test/vcr_cassettes/web_service_author_search.yml
166
- - test/vcr_cassettes/web_service_bogus_200.yml
167
- - test/vcr_cassettes/web_service_brief_search.yml
168
- - test/vcr_cassettes/web_service_get_eshelf.yml
169
- - test/vcr_cassettes/web_service_get_eshelf_structure_search.yml
170
- - test/vcr_cassettes/web_service_invalid_document.yml
171
- - test/vcr_cassettes/web_service_isbn_search.yml
172
- - test/vcr_cassettes/web_service_issn_search.yml
173
- - test/vcr_cassettes/web_service_problem_document.yml
174
- - test/vcr_cassettes/web_service_single_document.yml
175
- - test/vcr_cassettes/web_service_title_author_genre_search.yml
176
- - test/vcr_cassettes/web_service_title_search.yml
282
+ - test/vcr_cassettes/client_action_no_arguments.yml
283
+ - test/vcr_cassettes/client_get_all_my_reviews.yml
284
+ - test/vcr_cassettes/client_get_all_my_tags.yml
285
+ - test/vcr_cassettes/client_get_eshelf.yml
286
+ - test/vcr_cassettes/client_get_record.yml
287
+ - test/vcr_cassettes/client_get_reviews.yml
288
+ - test/vcr_cassettes/client_get_tags.yml
289
+ - test/vcr_cassettes/client_search_brief_isbn.yml
290
+ - test/vcr_cassettes/client_search_brief_issn.yml
291
+ - test/vcr_cassettes/client_too_many_arguments.yml
292
+ - test/vcr_cassettes/eshelf.yml
293
+ - test/vcr_cassettes/eshelf_add_folder.yml
294
+ - test/vcr_cassettes/eshelf_add_record.yml
295
+ - test/vcr_cassettes/eshelf_add_records.yml
296
+ - test/vcr_cassettes/eshelf_basket_id.yml
297
+ - test/vcr_cassettes/eshelf_records.yml
298
+ - test/vcr_cassettes/eshelf_remove_folder.yml
299
+ - test/vcr_cassettes/eshelf_remove_record.yml
300
+ - test/vcr_cassettes/eshelf_remove_records.yml
301
+ - test/vcr_cassettes/remote_record_call.yml
302
+ - test/vcr_cassettes/remote_record_dedupmgr.yml
303
+ - test/vcr_cassettes/request_add_folder_to_eshelf.yml
304
+ - test/vcr_cassettes/request_add_to_eshelf.yml
305
+ - test/vcr_cassettes/request_did_u_mean_enabled.yml
306
+ - test/vcr_cassettes/request_full_view.yml
307
+ - test/vcr_cassettes/request_get_eshelf.yml
308
+ - test/vcr_cassettes/request_get_eshelf_structure.yml
309
+ - test/vcr_cassettes/request_get_reviews.yml
310
+ - test/vcr_cassettes/request_get_tags.yml
311
+ - test/vcr_cassettes/request_remove_folder_from_eshelf.yml
312
+ - test/vcr_cassettes/request_remove_from_eshelf.yml
313
+ - test/vcr_cassettes/request_search_author.yml
314
+ - test/vcr_cassettes/request_search_did_u_mean.yml
315
+ - test/vcr_cassettes/request_search_genre.yml
316
+ - test/vcr_cassettes/request_search_isbn.yml
317
+ - test/vcr_cassettes/request_search_issn.yml
318
+ - test/vcr_cassettes/request_search_locations.yml
319
+ - test/vcr_cassettes/request_search_title.yml
320
+ - test/vcr_cassettes/request_search_title_author_genre.yml
321
+ - test/vcr_cassettes/response_add_folder_to_eshelf.yml
322
+ - test/vcr_cassettes/response_add_review.yml
323
+ - test/vcr_cassettes/response_add_tag.yml
324
+ - test/vcr_cassettes/response_add_to_eshelf.yml
325
+ - test/vcr_cassettes/response_did_u_mean_disabled.yml
326
+ - test/vcr_cassettes/response_did_u_mean_enabled.yml
327
+ - test/vcr_cassettes/response_full_view.yml
328
+ - test/vcr_cassettes/response_get_all_my_reviews.yml
329
+ - test/vcr_cassettes/response_get_all_my_tags.yml
330
+ - test/vcr_cassettes/response_get_eshelf.yml
331
+ - test/vcr_cassettes/response_get_eshelf_structure.yml
332
+ - test/vcr_cassettes/response_get_reviews.yml
333
+ - test/vcr_cassettes/response_get_reviews_by_rating.yml
334
+ - test/vcr_cassettes/response_get_reviews_for_record.yml
335
+ - test/vcr_cassettes/response_get_tags.yml
336
+ - test/vcr_cassettes/response_get_tags_for_record.yml
337
+ - test/vcr_cassettes/response_remove_folder_from_eshelf.yml
338
+ - test/vcr_cassettes/response_remove_from_eshelf.yml
339
+ - test/vcr_cassettes/response_remove_review.yml
340
+ - test/vcr_cassettes/response_remove_tag.yml
341
+ - test/vcr_cassettes/response_remove_user_tags.yml
342
+ - test/vcr_cassettes/response_search.yml
343
+ - test/vcr_cassettes/response_search_did_u_mean.yml
344
+ - test/vcr_cassettes/reviews.yml
345
+ - test/vcr_cassettes/reviews_add_review.yml
346
+ - test/vcr_cassettes/reviews_check_empty_reviews_first.yml
347
+ - test/vcr_cassettes/reviews_check_empty_reviews_last.yml
348
+ - test/vcr_cassettes/reviews_rating.yml
349
+ - test/vcr_cassettes/reviews_record.yml
350
+ - test/vcr_cassettes/reviews_remove_review.yml
351
+ - test/vcr_cassettes/reviews_reviews.yml
352
+ - test/vcr_cassettes/reviews_user.yml
353
+ - test/vcr_cassettes/search_chaining_author_title.yml
354
+ - test/vcr_cassettes/search_chaining_contains_any.yml
355
+ - test/vcr_cassettes/search_chaining_contains_author_starts_with_title.yml
356
+ - test/vcr_cassettes/search_chaining_isbn.yml
357
+ - test/vcr_cassettes/search_chaining_page_size_author.yml
358
+ - test/vcr_cassettes/search_did_u_mean.yml
359
+ - test/vcr_cassettes/search_enable_highlighting.yml
360
+ - test/vcr_cassettes/search_isbn.yml
361
+ - test/vcr_cassettes/search_languages.yml
362
+ - test/vcr_cassettes/search_locations.yml
363
+ - test/vcr_cassettes/search_record_id.yml
364
+ - test/vcr_cassettes/search_record_id_chaining.yml
365
+ - test/vcr_cassettes/search_sort_by.yml
366
+ - test/vcr_cassettes/search_sort_by_locations.yml
367
+ - test/vcr_cassettes/tags.yml
368
+ - test/vcr_cassettes/tags_add_extra_tag.yml
369
+ - test/vcr_cassettes/tags_add_tag.yml
370
+ - test/vcr_cassettes/tags_add_tags.yml
371
+ - test/vcr_cassettes/tags_check_1_tags.yml
372
+ - test/vcr_cassettes/tags_check_2_tags.yml
373
+ - test/vcr_cassettes/tags_check_empty_tags_first.yml
374
+ - test/vcr_cassettes/tags_check_empty_tags_last.yml
375
+ - test/vcr_cassettes/tags_remove_tag.yml
376
+ - test/vcr_cassettes/tags_remove_tags.yml
377
+ - test/vcr_cassettes/tags_remove_user_tags.yml
378
+ - test/vcr_cassettes/tags_tags.yml
379
+ - test/vcr_cassettes/tags_user.yml
380
+ - test/web_service/client/abstract_test.rb
381
+ - test/web_service/client/eshelf_test.rb
382
+ - test/web_service/client/reviews_test.rb
383
+ - test/web_service/client/savon_client_test.rb
384
+ - test/web_service/client/search_benchmarks.rb
385
+ - test/web_service/client/search_test.rb
386
+ - test/web_service/client/soap_actions_test.rb
387
+ - test/web_service/client/tags_test.rb
388
+ - test/web_service/request/abstract_test.rb
389
+ - test/web_service/request/base_elements_test.rb
390
+ - test/web_service/request/build_xml_test.rb
391
+ - test/web_service/request/client_test.rb
392
+ - test/web_service/request/eshelf_test.rb
393
+ - test/web_service/request/location_test.rb
394
+ - test/web_service/request/query_term_test.rb
395
+ - test/web_service/request/reviews_test.rb
396
+ - test/web_service/request/search_test.rb
397
+ - test/web_service/request/soap_action_test.rb
398
+ - test/web_service/request/tags_test.rb
399
+ - test/web_service/response/abstract_test.rb
400
+ - test/web_service/response/did_u_mean_test.rb
401
+ - test/web_service/response/error_test.rb
402
+ - test/web_service/response/eshelf_test.rb
403
+ - test/web_service/response/facets_test.rb
404
+ - test/web_service/response/records_test.rb
405
+ - test/web_service/response/reviews_test.rb
406
+ - test/web_service/response/search_stats_test.rb
407
+ - test/web_service/response/search_test.rb
408
+ - test/web_service/response/tags_test.rb
409
+ - test/xml_util_test.rb
177
410
  homepage: https://github.com/scotdalton/exlibris-primo
178
411
  licenses: []
179
412
  post_install_message:
@@ -188,7 +421,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
421
  version: '0'
189
422
  segments:
190
423
  - 0
191
- hash: 4382586349840720890
424
+ hash: 1572686786280464142
192
425
  required_rubygems_version: !ruby/object:Gem::Requirement
193
426
  none: false
194
427
  requirements:
@@ -197,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
430
  version: '0'
198
431
  segments:
199
432
  - 0
200
- hash: 4382586349840720890
433
+ hash: 1572686786280464142
201
434
  requirements: []
202
435
  rubyforge_project:
203
436
  rubygems_version: 1.8.24
@@ -205,48 +438,157 @@ signing_key:
205
438
  specification_version: 3
206
439
  summary: Library to work with Exlibris' Primo discovery system.
207
440
  test_files:
441
+ - test/bak/eshelf_test.rb.bak
442
+ - test/bak/record_test.rb.bak
443
+ - test/bak/searcher_test.rb.bak
444
+ - test/bak/web_service_test.rb.bak
445
+ - test/config_test.rb
446
+ - test/eshelf_test.rb
208
447
  - test/exlibris-primo_test.rb
448
+ - test/facet_test.rb
449
+ - test/facet_value_test.rb
450
+ - test/holding_test.rb
451
+ - test/link_test.rb
452
+ - test/pnx/dedup_mgr_test.rb
453
+ - test/pnx/elements_test.rb
454
+ - test/pnx/frbr_test.rb
455
+ - test/pnx/holdings_test.rb
456
+ - test/pnx/links_test.rb
457
+ - test/pnx/openurl_test.rb
458
+ - test/record_test.rb
459
+ - test/review_test.rb
460
+ - test/reviews_test.rb
461
+ - test/search_test.rb
462
+ - test/source/aleph_test.rb
463
+ - test/support/config.yml
464
+ - test/tag_test.rb
465
+ - test/tags_test.rb
209
466
  - test/test_helper.rb
210
- - test/unit/eshelf_test.rb
211
- - test/unit/record_test.rb
212
- - test/unit/searcher_benchmarks.rb
213
- - test/unit/searcher_test.rb
214
- - test/unit/web_service_benchmarks.rb
215
- - test/unit/web_service_test.rb
216
- - test/vcr_cassettes/eshelf_add_invalid_records.yml
217
- - test/vcr_cassettes/eshelf_add_same_record_twice.yml
218
- - test/vcr_cassettes/eshelf_add_to_empty_basket.yml
219
- - test/vcr_cassettes/eshelf_add_to_invalid_basket.yml
220
- - test/vcr_cassettes/eshelf_invalid_eshelf.yml
221
- - test/vcr_cassettes/eshelf_invalid_institution.yml
222
- - test/vcr_cassettes/eshelf_valid_eshelf.yml
223
- - test/vcr_cassettes/eshelf_valid_eshelf_structure.yml
224
- - test/vcr_cassettes/record.yml
225
- - test/vcr_cassettes/record_invalid_record.yml
226
- - test/vcr_cassettes/record_sub_record.yml
227
- - test/vcr_cassettes/record_valid_record.yml
228
- - test/vcr_cassettes/searcher_base_holdings_by_id.yml
229
- - test/vcr_cassettes/searcher_dedupmrg_by_id.yml
230
- - test/vcr_cassettes/searcher_diacritics1_by_id.yml
231
- - test/vcr_cassettes/searcher_diacritics2_by_id.yml
232
- - test/vcr_cassettes/searcher_holdings_by_id.yml
233
- - test/vcr_cassettes/searcher_invalid_id.yml
234
- - test/vcr_cassettes/searcher_rsrcs_by_id.yml
235
- - test/vcr_cassettes/searcher_search_by_isbn.yml
236
- - test/vcr_cassettes/searcher_search_by_issn.yml
237
- - test/vcr_cassettes/searcher_search_by_title_author_genre.yml
238
- - test/vcr_cassettes/searcher_test_bug_1361.yml
239
- - test/vcr_cassettes/searcher_test_problem_by_id.yml
240
- - test/vcr_cassettes/searcher_tocs_by_id.yml
241
- - test/vcr_cassettes/web_service_author_search.yml
242
- - test/vcr_cassettes/web_service_bogus_200.yml
243
- - test/vcr_cassettes/web_service_brief_search.yml
244
- - test/vcr_cassettes/web_service_get_eshelf.yml
245
- - test/vcr_cassettes/web_service_get_eshelf_structure_search.yml
246
- - test/vcr_cassettes/web_service_invalid_document.yml
247
- - test/vcr_cassettes/web_service_isbn_search.yml
248
- - test/vcr_cassettes/web_service_issn_search.yml
249
- - test/vcr_cassettes/web_service_problem_document.yml
250
- - test/vcr_cassettes/web_service_single_document.yml
251
- - test/vcr_cassettes/web_service_title_author_genre_search.yml
252
- - test/vcr_cassettes/web_service_title_search.yml
467
+ - test/vcr_cassettes/client_action_no_arguments.yml
468
+ - test/vcr_cassettes/client_get_all_my_reviews.yml
469
+ - test/vcr_cassettes/client_get_all_my_tags.yml
470
+ - test/vcr_cassettes/client_get_eshelf.yml
471
+ - test/vcr_cassettes/client_get_record.yml
472
+ - test/vcr_cassettes/client_get_reviews.yml
473
+ - test/vcr_cassettes/client_get_tags.yml
474
+ - test/vcr_cassettes/client_search_brief_isbn.yml
475
+ - test/vcr_cassettes/client_search_brief_issn.yml
476
+ - test/vcr_cassettes/client_too_many_arguments.yml
477
+ - test/vcr_cassettes/eshelf.yml
478
+ - test/vcr_cassettes/eshelf_add_folder.yml
479
+ - test/vcr_cassettes/eshelf_add_record.yml
480
+ - test/vcr_cassettes/eshelf_add_records.yml
481
+ - test/vcr_cassettes/eshelf_basket_id.yml
482
+ - test/vcr_cassettes/eshelf_records.yml
483
+ - test/vcr_cassettes/eshelf_remove_folder.yml
484
+ - test/vcr_cassettes/eshelf_remove_record.yml
485
+ - test/vcr_cassettes/eshelf_remove_records.yml
486
+ - test/vcr_cassettes/remote_record_call.yml
487
+ - test/vcr_cassettes/remote_record_dedupmgr.yml
488
+ - test/vcr_cassettes/request_add_folder_to_eshelf.yml
489
+ - test/vcr_cassettes/request_add_to_eshelf.yml
490
+ - test/vcr_cassettes/request_did_u_mean_enabled.yml
491
+ - test/vcr_cassettes/request_full_view.yml
492
+ - test/vcr_cassettes/request_get_eshelf.yml
493
+ - test/vcr_cassettes/request_get_eshelf_structure.yml
494
+ - test/vcr_cassettes/request_get_reviews.yml
495
+ - test/vcr_cassettes/request_get_tags.yml
496
+ - test/vcr_cassettes/request_remove_folder_from_eshelf.yml
497
+ - test/vcr_cassettes/request_remove_from_eshelf.yml
498
+ - test/vcr_cassettes/request_search_author.yml
499
+ - test/vcr_cassettes/request_search_did_u_mean.yml
500
+ - test/vcr_cassettes/request_search_genre.yml
501
+ - test/vcr_cassettes/request_search_isbn.yml
502
+ - test/vcr_cassettes/request_search_issn.yml
503
+ - test/vcr_cassettes/request_search_locations.yml
504
+ - test/vcr_cassettes/request_search_title.yml
505
+ - test/vcr_cassettes/request_search_title_author_genre.yml
506
+ - test/vcr_cassettes/response_add_folder_to_eshelf.yml
507
+ - test/vcr_cassettes/response_add_review.yml
508
+ - test/vcr_cassettes/response_add_tag.yml
509
+ - test/vcr_cassettes/response_add_to_eshelf.yml
510
+ - test/vcr_cassettes/response_did_u_mean_disabled.yml
511
+ - test/vcr_cassettes/response_did_u_mean_enabled.yml
512
+ - test/vcr_cassettes/response_full_view.yml
513
+ - test/vcr_cassettes/response_get_all_my_reviews.yml
514
+ - test/vcr_cassettes/response_get_all_my_tags.yml
515
+ - test/vcr_cassettes/response_get_eshelf.yml
516
+ - test/vcr_cassettes/response_get_eshelf_structure.yml
517
+ - test/vcr_cassettes/response_get_reviews.yml
518
+ - test/vcr_cassettes/response_get_reviews_by_rating.yml
519
+ - test/vcr_cassettes/response_get_reviews_for_record.yml
520
+ - test/vcr_cassettes/response_get_tags.yml
521
+ - test/vcr_cassettes/response_get_tags_for_record.yml
522
+ - test/vcr_cassettes/response_remove_folder_from_eshelf.yml
523
+ - test/vcr_cassettes/response_remove_from_eshelf.yml
524
+ - test/vcr_cassettes/response_remove_review.yml
525
+ - test/vcr_cassettes/response_remove_tag.yml
526
+ - test/vcr_cassettes/response_remove_user_tags.yml
527
+ - test/vcr_cassettes/response_search.yml
528
+ - test/vcr_cassettes/response_search_did_u_mean.yml
529
+ - test/vcr_cassettes/reviews.yml
530
+ - test/vcr_cassettes/reviews_add_review.yml
531
+ - test/vcr_cassettes/reviews_check_empty_reviews_first.yml
532
+ - test/vcr_cassettes/reviews_check_empty_reviews_last.yml
533
+ - test/vcr_cassettes/reviews_rating.yml
534
+ - test/vcr_cassettes/reviews_record.yml
535
+ - test/vcr_cassettes/reviews_remove_review.yml
536
+ - test/vcr_cassettes/reviews_reviews.yml
537
+ - test/vcr_cassettes/reviews_user.yml
538
+ - test/vcr_cassettes/search_chaining_author_title.yml
539
+ - test/vcr_cassettes/search_chaining_contains_any.yml
540
+ - test/vcr_cassettes/search_chaining_contains_author_starts_with_title.yml
541
+ - test/vcr_cassettes/search_chaining_isbn.yml
542
+ - test/vcr_cassettes/search_chaining_page_size_author.yml
543
+ - test/vcr_cassettes/search_did_u_mean.yml
544
+ - test/vcr_cassettes/search_enable_highlighting.yml
545
+ - test/vcr_cassettes/search_isbn.yml
546
+ - test/vcr_cassettes/search_languages.yml
547
+ - test/vcr_cassettes/search_locations.yml
548
+ - test/vcr_cassettes/search_record_id.yml
549
+ - test/vcr_cassettes/search_record_id_chaining.yml
550
+ - test/vcr_cassettes/search_sort_by.yml
551
+ - test/vcr_cassettes/search_sort_by_locations.yml
552
+ - test/vcr_cassettes/tags.yml
553
+ - test/vcr_cassettes/tags_add_extra_tag.yml
554
+ - test/vcr_cassettes/tags_add_tag.yml
555
+ - test/vcr_cassettes/tags_add_tags.yml
556
+ - test/vcr_cassettes/tags_check_1_tags.yml
557
+ - test/vcr_cassettes/tags_check_2_tags.yml
558
+ - test/vcr_cassettes/tags_check_empty_tags_first.yml
559
+ - test/vcr_cassettes/tags_check_empty_tags_last.yml
560
+ - test/vcr_cassettes/tags_remove_tag.yml
561
+ - test/vcr_cassettes/tags_remove_tags.yml
562
+ - test/vcr_cassettes/tags_remove_user_tags.yml
563
+ - test/vcr_cassettes/tags_tags.yml
564
+ - test/vcr_cassettes/tags_user.yml
565
+ - test/web_service/client/abstract_test.rb
566
+ - test/web_service/client/eshelf_test.rb
567
+ - test/web_service/client/reviews_test.rb
568
+ - test/web_service/client/savon_client_test.rb
569
+ - test/web_service/client/search_benchmarks.rb
570
+ - test/web_service/client/search_test.rb
571
+ - test/web_service/client/soap_actions_test.rb
572
+ - test/web_service/client/tags_test.rb
573
+ - test/web_service/request/abstract_test.rb
574
+ - test/web_service/request/base_elements_test.rb
575
+ - test/web_service/request/build_xml_test.rb
576
+ - test/web_service/request/client_test.rb
577
+ - test/web_service/request/eshelf_test.rb
578
+ - test/web_service/request/location_test.rb
579
+ - test/web_service/request/query_term_test.rb
580
+ - test/web_service/request/reviews_test.rb
581
+ - test/web_service/request/search_test.rb
582
+ - test/web_service/request/soap_action_test.rb
583
+ - test/web_service/request/tags_test.rb
584
+ - test/web_service/response/abstract_test.rb
585
+ - test/web_service/response/did_u_mean_test.rb
586
+ - test/web_service/response/error_test.rb
587
+ - test/web_service/response/eshelf_test.rb
588
+ - test/web_service/response/facets_test.rb
589
+ - test/web_service/response/records_test.rb
590
+ - test/web_service/response/reviews_test.rb
591
+ - test/web_service/response/search_stats_test.rb
592
+ - test/web_service/response/search_test.rb
593
+ - test/web_service/response/tags_test.rb
594
+ - test/xml_util_test.rb