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.
- data/MIT-LICENSE +1 -1
- data/README.md +111 -0
- data/Rakefile +2 -1
- data/lib/exlibris-primo.rb +4 -14
- data/lib/exlibris/primo.rb +13 -0
- data/lib/exlibris/primo/abstract.rb +28 -0
- data/lib/exlibris/primo/chain_gang/README.md +9 -0
- data/lib/exlibris/primo/chain_gang/base.rb +121 -0
- data/lib/exlibris/primo/chain_gang/record.rb +18 -0
- data/lib/exlibris/primo/chain_gang/search.rb +319 -0
- data/lib/exlibris/primo/chain_gang/user.rb +18 -0
- data/lib/exlibris/primo/config.rb +69 -0
- data/lib/exlibris/primo/eshelf.rb +115 -62
- data/lib/exlibris/primo/facet.rb +40 -0
- data/lib/exlibris/primo/facet_value.rb +40 -0
- data/lib/exlibris/primo/holding.rb +81 -152
- data/lib/exlibris/primo/link.rb +32 -0
- data/lib/exlibris/primo/namespaces.rb +44 -0
- data/lib/exlibris/primo/pnx/dedup_mgr.rb +91 -0
- data/lib/exlibris/primo/pnx/elements.rb +79 -0
- data/lib/exlibris/primo/pnx/frbr.rb +24 -0
- data/lib/exlibris/primo/pnx/holdings.rb +36 -0
- data/lib/exlibris/primo/pnx/links.rb +54 -0
- data/lib/exlibris/primo/pnx/openurl.rb +24 -0
- data/lib/exlibris/primo/pnx/subfields.rb +18 -0
- data/lib/exlibris/primo/record.rb +20 -106
- data/lib/exlibris/primo/request_attributes.rb +28 -0
- data/lib/exlibris/primo/review.rb +46 -0
- data/lib/exlibris/primo/reviews.rb +81 -0
- data/lib/exlibris/primo/search.rb +82 -0
- data/lib/exlibris/primo/source/aleph.rb +77 -31
- data/lib/exlibris/primo/tag.rb +34 -0
- data/lib/exlibris/primo/tags.rb +103 -0
- data/lib/exlibris/primo/version.rb +1 -1
- data/lib/exlibris/primo/web_service/client/base.rb +30 -0
- data/lib/exlibris/primo/web_service/client/base/endpoint.rb +29 -0
- data/lib/exlibris/primo/web_service/client/base/savon_client.rb +24 -0
- data/lib/exlibris/primo/web_service/client/base/savon_config.rb +19 -0
- data/lib/exlibris/primo/web_service/client/base/soap_actions.rb +55 -0
- data/lib/exlibris/primo/web_service/client/base/wsdl.rb +14 -0
- data/lib/exlibris/primo/web_service/client/eshelf.rb +22 -0
- data/lib/exlibris/primo/web_service/client/reviews.rb +15 -0
- data/lib/exlibris/primo/web_service/client/search.rb +15 -0
- data/lib/exlibris/primo/web_service/client/tags.rb +14 -0
- data/lib/exlibris/primo/web_service/request/base.rb +77 -0
- data/lib/exlibris/primo/web_service/request/base/base_elements.rb +71 -0
- data/lib/exlibris/primo/web_service/request/base/call.rb +19 -0
- data/lib/exlibris/primo/web_service/request/base/client.rb +45 -0
- data/lib/exlibris/primo/web_service/request/base/soap_action.rb +29 -0
- data/lib/exlibris/primo/web_service/request/eshelf.rb +71 -0
- data/lib/exlibris/primo/web_service/request/reviews.rb +57 -0
- data/lib/exlibris/primo/web_service/request/search.rb +49 -0
- data/lib/exlibris/primo/web_service/request/search/display_fields.rb +30 -0
- data/lib/exlibris/primo/web_service/request/search/languages.rb +32 -0
- data/lib/exlibris/primo/web_service/request/search/location.rb +15 -0
- data/lib/exlibris/primo/web_service/request/search/locations.rb +33 -0
- data/lib/exlibris/primo/web_service/request/search/query_term.rb +43 -0
- data/lib/exlibris/primo/web_service/request/search/query_terms.rb +40 -0
- data/lib/exlibris/primo/web_service/request/search/search_elements.rb +97 -0
- data/lib/exlibris/primo/web_service/request/search/sort_bys.rb +32 -0
- data/lib/exlibris/primo/web_service/request/tags.rb +56 -0
- data/lib/exlibris/primo/web_service/response/base.rb +28 -0
- data/lib/exlibris/primo/web_service/response/base/error.rb +25 -0
- data/lib/exlibris/primo/web_service/response/base/util.rb +19 -0
- data/lib/exlibris/primo/web_service/response/did_u_mean.rb +17 -0
- data/lib/exlibris/primo/web_service/response/eshelf.rb +68 -0
- data/lib/exlibris/primo/web_service/response/facets.rb +21 -0
- data/lib/exlibris/primo/web_service/response/records.rb +17 -0
- data/lib/exlibris/primo/web_service/response/reviews.rb +49 -0
- data/lib/exlibris/primo/web_service/response/search.rb +36 -0
- data/lib/exlibris/primo/web_service/response/search_stats.rb +48 -0
- data/lib/exlibris/primo/web_service/response/tags.rb +54 -0
- data/lib/exlibris/primo/write_attributes.rb +38 -0
- data/lib/exlibris/primo/xml_util.rb +63 -0
- data/test/{unit/eshelf_test.rb → bak/eshelf_test.rb.bak} +0 -0
- data/test/{unit/record_test.rb → bak/record_test.rb.bak} +0 -0
- data/test/{unit/searcher_test.rb → bak/searcher_test.rb.bak} +0 -0
- data/test/{unit/web_service_test.rb → bak/web_service_test.rb.bak} +0 -0
- data/test/config_test.rb +72 -0
- data/test/eshelf_test.rb +66 -0
- data/test/exlibris-primo_test.rb +0 -1
- data/test/facet_test.rb +27 -0
- data/test/facet_value_test.rb +62 -0
- data/test/holding_test.rb +26 -0
- data/test/link_test.rb +42 -0
- data/test/pnx/dedup_mgr_test.rb +16 -0
- data/test/pnx/elements_test.rb +16 -0
- data/test/pnx/frbr_test.rb +12 -0
- data/test/pnx/holdings_test.rb +53 -0
- data/test/pnx/links_test.rb +44 -0
- data/test/pnx/openurl_test.rb +10 -0
- data/test/record_test.rb +11 -0
- data/test/review_test.rb +15 -0
- data/test/reviews_test.rb +50 -0
- data/test/search_test.rb +328 -0
- data/test/source/aleph_test.rb +52 -0
- data/test/support/config.yml +35 -0
- data/test/tag_test.rb +12 -0
- data/test/tags_test.rb +65 -0
- data/test/test_helper.rb +536 -4
- data/test/vcr_cassettes/client_action_no_arguments.yml +38 -0
- data/test/vcr_cassettes/client_get_all_my_reviews.yml +49 -0
- data/test/vcr_cassettes/client_get_all_my_tags.yml +49 -0
- data/test/vcr_cassettes/client_get_eshelf.yml +13812 -0
- data/test/vcr_cassettes/client_get_record.yml +222 -0
- data/test/vcr_cassettes/client_get_reviews.yml +39 -0
- data/test/vcr_cassettes/client_get_tags.yml +42 -0
- data/test/vcr_cassettes/client_search_brief_isbn.yml +288 -0
- data/test/vcr_cassettes/client_search_brief_issn.yml +282 -0
- data/test/vcr_cassettes/client_too_many_arguments.yml +38 -0
- data/test/vcr_cassettes/eshelf.yml +13845 -0
- data/test/vcr_cassettes/eshelf_add_folder.yml +109 -0
- data/test/vcr_cassettes/eshelf_add_record.yml +14237 -0
- data/test/vcr_cassettes/eshelf_add_records.yml +14156 -0
- data/test/vcr_cassettes/eshelf_basket_id.yml +36 -0
- data/test/vcr_cassettes/eshelf_records.yml +13460 -0
- data/test/vcr_cassettes/eshelf_remove_folder.yml +76 -0
- data/test/vcr_cassettes/eshelf_remove_record.yml +13500 -0
- data/test/vcr_cassettes/eshelf_remove_records.yml +13741 -0
- data/test/vcr_cassettes/{web_service_single_document.yml → remote_record_call.yml} +12 -23
- data/test/vcr_cassettes/{searcher_dedupmrg_by_id.yml → remote_record_dedupmgr.yml} +19 -31
- data/test/vcr_cassettes/request_add_folder_to_eshelf.yml +43 -0
- data/test/vcr_cassettes/request_add_to_eshelf.yml +43 -0
- data/test/vcr_cassettes/request_did_u_mean_enabled.yml +48 -0
- data/test/vcr_cassettes/request_full_view.yml +222 -0
- data/test/vcr_cassettes/request_get_eshelf.yml +13812 -0
- data/test/vcr_cassettes/request_get_eshelf_structure.yml +36 -0
- data/test/vcr_cassettes/request_get_reviews.yml +39 -0
- data/test/vcr_cassettes/request_get_tags.yml +42 -0
- data/test/vcr_cassettes/request_remove_folder_from_eshelf.yml +43 -0
- data/test/vcr_cassettes/request_remove_from_eshelf.yml +43 -0
- data/test/vcr_cassettes/request_search_author.yml +1258 -0
- data/test/vcr_cassettes/request_search_did_u_mean.yml +48 -0
- data/test/vcr_cassettes/request_search_genre.yml +1321 -0
- data/test/vcr_cassettes/request_search_isbn.yml +288 -0
- data/test/vcr_cassettes/request_search_issn.yml +282 -0
- data/test/vcr_cassettes/request_search_locations.yml +288 -0
- data/test/vcr_cassettes/request_search_title.yml +1024 -0
- data/test/vcr_cassettes/request_search_title_author_genre.yml +708 -0
- data/test/vcr_cassettes/response_add_folder_to_eshelf.yml +43 -0
- data/test/vcr_cassettes/response_add_review.yml +39 -0
- data/test/vcr_cassettes/response_add_tag.yml +39 -0
- data/test/vcr_cassettes/response_add_to_eshelf.yml +43 -0
- data/test/vcr_cassettes/response_did_u_mean_disabled.yml +46 -0
- data/test/vcr_cassettes/response_did_u_mean_enabled.yml +48 -0
- data/test/vcr_cassettes/response_full_view.yml +222 -0
- data/test/vcr_cassettes/response_get_all_my_reviews.yml +49 -0
- data/test/vcr_cassettes/response_get_all_my_tags.yml +49 -0
- data/test/vcr_cassettes/response_get_eshelf.yml +13633 -0
- data/test/vcr_cassettes/response_get_eshelf_structure.yml +36 -0
- data/test/vcr_cassettes/response_get_reviews.yml +39 -0
- data/test/vcr_cassettes/response_get_reviews_by_rating.yml +49 -0
- data/test/vcr_cassettes/response_get_reviews_for_record.yml +39 -0
- data/test/vcr_cassettes/response_get_tags.yml +42 -0
- data/test/vcr_cassettes/response_get_tags_for_record.yml +42 -0
- data/test/vcr_cassettes/response_remove_folder_from_eshelf.yml +43 -0
- data/test/vcr_cassettes/response_remove_from_eshelf.yml +43 -0
- data/test/vcr_cassettes/response_remove_review.yml +39 -0
- data/test/vcr_cassettes/response_remove_tag.yml +39 -0
- data/test/vcr_cassettes/response_remove_user_tags.yml +39 -0
- data/test/vcr_cassettes/response_search.yml +288 -0
- data/test/vcr_cassettes/response_search_did_u_mean.yml +48 -0
- data/test/vcr_cassettes/reviews.yml +49 -0
- data/test/vcr_cassettes/reviews_add_review.yml +39 -0
- data/test/vcr_cassettes/reviews_check_empty_reviews_first.yml +39 -0
- data/test/vcr_cassettes/reviews_check_empty_reviews_last.yml +39 -0
- data/test/vcr_cassettes/reviews_rating.yml +168 -0
- data/test/vcr_cassettes/reviews_record.yml +49 -0
- data/test/vcr_cassettes/reviews_remove_review.yml +39 -0
- data/test/vcr_cassettes/reviews_reviews.yml +49 -0
- data/test/vcr_cassettes/reviews_user.yml +58 -0
- data/test/vcr_cassettes/search_chaining_author_title.yml +938 -0
- data/test/vcr_cassettes/search_chaining_contains_any.yml +1453 -0
- data/test/vcr_cassettes/search_chaining_contains_author_starts_with_title.yml +1055 -0
- data/test/vcr_cassettes/search_chaining_isbn.yml +288 -0
- data/test/vcr_cassettes/search_chaining_page_size_author.yml +5933 -0
- data/test/vcr_cassettes/search_did_u_mean.yml +48 -0
- data/test/vcr_cassettes/search_enable_highlighting.yml +1337 -0
- data/test/vcr_cassettes/search_isbn.yml +288 -0
- data/test/vcr_cassettes/search_languages.yml +1332 -0
- data/test/vcr_cassettes/search_locations.yml +1440 -0
- data/test/vcr_cassettes/search_record_id.yml +222 -0
- data/test/vcr_cassettes/search_record_id_chaining.yml +222 -0
- data/test/vcr_cassettes/search_sort_by.yml +1289 -0
- data/test/vcr_cassettes/search_sort_by_locations.yml +1387 -0
- data/test/vcr_cassettes/tags.yml +56 -0
- data/test/vcr_cassettes/tags_add_extra_tag.yml +39 -0
- data/test/vcr_cassettes/tags_add_tag.yml +39 -0
- data/test/vcr_cassettes/tags_add_tags.yml +111 -0
- data/test/vcr_cassettes/tags_check_1_tags.yml +56 -0
- data/test/vcr_cassettes/tags_check_2_tags.yml +68 -0
- data/test/vcr_cassettes/tags_check_empty_tags_first.yml +42 -0
- data/test/vcr_cassettes/tags_check_empty_tags_last.yml +42 -0
- data/test/vcr_cassettes/tags_remove_tag.yml +39 -0
- data/test/vcr_cassettes/tags_remove_tags.yml +111 -0
- data/test/vcr_cassettes/tags_remove_user_tags.yml +39 -0
- data/test/vcr_cassettes/tags_tags.yml +104 -0
- data/test/vcr_cassettes/tags_user.yml +73 -0
- data/test/web_service/client/abstract_test.rb +29 -0
- data/test/web_service/client/eshelf_test.rb +22 -0
- data/test/web_service/client/reviews_test.rb +31 -0
- data/test/web_service/client/savon_client_test.rb +17 -0
- data/test/web_service/client/search_benchmarks.rb +29 -0
- data/test/web_service/client/search_test.rb +44 -0
- data/test/web_service/client/soap_actions_test.rb +45 -0
- data/test/web_service/client/tags_test.rb +31 -0
- data/test/web_service/request/abstract_test.rb +68 -0
- data/test/web_service/request/base_elements_test.rb +231 -0
- data/test/web_service/request/build_xml_test.rb +23 -0
- data/test/web_service/request/client_test.rb +53 -0
- data/test/web_service/request/eshelf_test.rb +26 -0
- data/test/web_service/request/location_test.rb +25 -0
- data/test/web_service/request/query_term_test.rb +29 -0
- data/test/web_service/request/reviews_test.rb +27 -0
- data/test/web_service/request/search_test.rb +234 -0
- data/test/web_service/request/soap_action_test.rb +120 -0
- data/test/web_service/request/tags_test.rb +27 -0
- data/test/web_service/response/abstract_test.rb +200 -0
- data/test/web_service/response/did_u_mean_test.rb +44 -0
- data/test/web_service/response/error_test.rb +31 -0
- data/test/web_service/response/eshelf_test.rb +28 -0
- data/test/web_service/response/facets_test.rb +42 -0
- data/test/web_service/response/records_test.rb +56 -0
- data/test/web_service/response/reviews_test.rb +28 -0
- data/test/web_service/response/search_stats_test.rb +75 -0
- data/test/web_service/response/search_test.rb +40 -0
- data/test/web_service/response/tags_test.rb +28 -0
- data/test/xml_util_test.rb +23 -0
- metadata +456 -114
- data/README.rdoc +0 -68
- data/lib/exlibris/primo/related_link.rb +0 -20
- data/lib/exlibris/primo/rsrc.rb +0 -20
- data/lib/exlibris/primo/searcher.rb +0 -277
- data/lib/exlibris/primo/toc.rb +0 -20
- data/lib/exlibris/primo/web_service.rb +0 -203
- data/test/unit/searcher_benchmarks.rb +0 -74
- data/test/unit/web_service_benchmarks.rb +0 -58
- data/test/vcr_cassettes/eshelf_add_invalid_records.yml +0 -107
- data/test/vcr_cassettes/eshelf_add_same_record_twice.yml +0 -159
- data/test/vcr_cassettes/eshelf_add_to_empty_basket.yml +0 -107
- data/test/vcr_cassettes/eshelf_add_to_invalid_basket.yml +0 -55
- data/test/vcr_cassettes/eshelf_invalid_eshelf.yml +0 -55
- data/test/vcr_cassettes/eshelf_invalid_institution.yml +0 -55
- data/test/vcr_cassettes/eshelf_valid_eshelf.yml +0 -2553
- data/test/vcr_cassettes/eshelf_valid_eshelf_structure.yml +0 -47
- data/test/vcr_cassettes/record.yml +0 -212
- data/test/vcr_cassettes/record_invalid_record.yml +0 -55
- data/test/vcr_cassettes/record_sub_record.yml +0 -212
- data/test/vcr_cassettes/record_valid_record.yml +0 -212
- data/test/vcr_cassettes/searcher_base_holdings_by_id.yml +0 -212
- data/test/vcr_cassettes/searcher_diacritics1_by_id.yml +0 -207
- data/test/vcr_cassettes/searcher_diacritics2_by_id.yml +0 -232
- data/test/vcr_cassettes/searcher_holdings_by_id.yml +0 -212
- data/test/vcr_cassettes/searcher_invalid_id.yml +0 -55
- data/test/vcr_cassettes/searcher_rsrcs_by_id.yml +0 -270
- data/test/vcr_cassettes/searcher_search_by_isbn.yml +0 -278
- data/test/vcr_cassettes/searcher_search_by_issn.yml +0 -297
- data/test/vcr_cassettes/searcher_search_by_title_author_genre.yml +0 -671
- data/test/vcr_cassettes/searcher_test_bug_1361.yml +0 -224
- data/test/vcr_cassettes/searcher_test_problem_by_id.yml +0 -194
- data/test/vcr_cassettes/searcher_tocs_by_id.yml +0 -217
- data/test/vcr_cassettes/web_service_author_search.yml +0 -1269
- data/test/vcr_cassettes/web_service_bogus_200.yml +0 -392
- data/test/vcr_cassettes/web_service_brief_search.yml +0 -299
- data/test/vcr_cassettes/web_service_get_eshelf.yml +0 -11823
- data/test/vcr_cassettes/web_service_get_eshelf_structure_search.yml +0 -47
- data/test/vcr_cassettes/web_service_invalid_document.yml +0 -54
- data/test/vcr_cassettes/web_service_isbn_search.yml +0 -299
- data/test/vcr_cassettes/web_service_issn_search.yml +0 -293
- data/test/vcr_cassettes/web_service_problem_document.yml +0 -193
- data/test/vcr_cassettes/web_service_title_author_genre_search.yml +0 -719
- data/test/vcr_cassettes/web_service_title_search.yml +0 -1035
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags
|
6
|
+
body:
|
7
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags"><env:Body><removeTag><request><![CDATA[<removeTagRequest xmlns="http://www.exlibris.com/primo/xsd/wsRequest" xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents"><institution>NYU</institution><docId>nyu_aleph000062856</docId><userId>N12162279</userId><value>tag4</value></removeTagRequest>]]></request></removeTag></env:Body></env:Envelope>
|
8
|
+
headers:
|
9
|
+
Content-Length:
|
10
|
+
- "638"
|
11
|
+
Accept:
|
12
|
+
- "*/*"
|
13
|
+
Soapaction:
|
14
|
+
- "\"removeTag\""
|
15
|
+
Content-Type:
|
16
|
+
- text/xml;charset=UTF-8
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Date:
|
23
|
+
- Wed, 09 Jan 2013 21:24:29 GMT
|
24
|
+
Server:
|
25
|
+
- Apache-Coyote/1.1
|
26
|
+
X-Powered-By:
|
27
|
+
- Servlet 2.5; JBoss-5.0/JBossWeb-2.1
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Content-Type:
|
31
|
+
- text/xml;charset=utf-8
|
32
|
+
body:
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><removeTagResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><removeTagReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
|
35
|
+
<ERROR CODE="0" MESSAGE="Remove tag action completed successfully"/>
|
36
|
+
</TagsAndReviews></removeTagReturn></removeTagResponse></soapenv:Body></soapenv:Envelope>
|
37
|
+
http_version:
|
38
|
+
recorded_at: Wed, 09 Jan 2013 21:24:29 GMT
|
39
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,111 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags
|
6
|
+
body:
|
7
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:wsdl="http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><removeTag><request><![CDATA[<removeTagRequest xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents" xmlns="http://www.exlibris.com/primo/xsd/wsRequest"><institution>NYU</institution><docId>nyu_aleph000062856</docId><userId>N12162279</userId><value>tag1</value></removeTagRequest>]]></request></removeTag></env:Body></env:Envelope>
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
|
+
- "*/*"
|
11
|
+
Content-Length:
|
12
|
+
- "638"
|
13
|
+
Content-Type:
|
14
|
+
- text/xml;charset=UTF-8
|
15
|
+
Soapaction:
|
16
|
+
- "\"removeTag\""
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- Apache-Coyote/1.1
|
24
|
+
X-Powered-By:
|
25
|
+
- Servlet 2.5; JBoss-5.0/JBossWeb-2.1
|
26
|
+
Date:
|
27
|
+
- Wed, 09 Jan 2013 21:17:04 GMT
|
28
|
+
Content-Type:
|
29
|
+
- text/xml;charset=utf-8
|
30
|
+
Transfer-Encoding:
|
31
|
+
- chunked
|
32
|
+
body:
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><removeTagResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><removeTagReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
|
35
|
+
<ERROR CODE="0" MESSAGE="Remove tag action completed successfully"/>
|
36
|
+
</TagsAndReviews></removeTagReturn></removeTagResponse></soapenv:Body></soapenv:Envelope>
|
37
|
+
http_version:
|
38
|
+
recorded_at: Wed, 09 Jan 2013 21:17:05 GMT
|
39
|
+
- request:
|
40
|
+
method: post
|
41
|
+
uri: http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags
|
42
|
+
body:
|
43
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:wsdl="http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><removeTag><request><![CDATA[<removeTagRequest xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents" xmlns="http://www.exlibris.com/primo/xsd/wsRequest"><institution>NYU</institution><docId>nyu_aleph000062856</docId><userId>N12162279</userId><value>tag2</value></removeTagRequest>]]></request></removeTag></env:Body></env:Envelope>
|
44
|
+
headers:
|
45
|
+
Accept:
|
46
|
+
- "*/*"
|
47
|
+
Content-Length:
|
48
|
+
- "638"
|
49
|
+
Content-Type:
|
50
|
+
- text/xml;charset=UTF-8
|
51
|
+
Soapaction:
|
52
|
+
- "\"removeTag\""
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Server:
|
59
|
+
- Apache-Coyote/1.1
|
60
|
+
X-Powered-By:
|
61
|
+
- Servlet 2.5; JBoss-5.0/JBossWeb-2.1
|
62
|
+
Date:
|
63
|
+
- Wed, 09 Jan 2013 21:17:04 GMT
|
64
|
+
Content-Type:
|
65
|
+
- text/xml;charset=utf-8
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
body:
|
69
|
+
string: |-
|
70
|
+
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><removeTagResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><removeTagReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
|
71
|
+
<ERROR CODE="0" MESSAGE="Remove tag action completed successfully"/>
|
72
|
+
</TagsAndReviews></removeTagReturn></removeTagResponse></soapenv:Body></soapenv:Envelope>
|
73
|
+
http_version:
|
74
|
+
recorded_at: Wed, 09 Jan 2013 21:17:05 GMT
|
75
|
+
- request:
|
76
|
+
method: post
|
77
|
+
uri: http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags
|
78
|
+
body:
|
79
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:wsdl="http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><removeTag><request><![CDATA[<removeTagRequest xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents" xmlns="http://www.exlibris.com/primo/xsd/wsRequest"><institution>NYU</institution><docId>nyu_aleph000062856</docId><userId>N12162279</userId><value>tag 3</value></removeTagRequest>]]></request></removeTag></env:Body></env:Envelope>
|
80
|
+
headers:
|
81
|
+
Accept:
|
82
|
+
- "*/*"
|
83
|
+
Content-Length:
|
84
|
+
- "639"
|
85
|
+
Content-Type:
|
86
|
+
- text/xml;charset=UTF-8
|
87
|
+
Soapaction:
|
88
|
+
- "\"removeTag\""
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Server:
|
95
|
+
- Apache-Coyote/1.1
|
96
|
+
X-Powered-By:
|
97
|
+
- Servlet 2.5; JBoss-5.0/JBossWeb-2.1
|
98
|
+
Date:
|
99
|
+
- Wed, 09 Jan 2013 21:17:04 GMT
|
100
|
+
Content-Type:
|
101
|
+
- text/xml;charset=utf-8
|
102
|
+
Transfer-Encoding:
|
103
|
+
- chunked
|
104
|
+
body:
|
105
|
+
string: |-
|
106
|
+
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><removeTagResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><removeTagReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
|
107
|
+
<ERROR CODE="0" MESSAGE="Remove tag action completed successfully"/>
|
108
|
+
</TagsAndReviews></removeTagReturn></removeTagResponse></soapenv:Body></soapenv:Envelope>
|
109
|
+
http_version:
|
110
|
+
recorded_at: Wed, 09 Jan 2013 21:17:05 GMT
|
111
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags
|
6
|
+
body:
|
7
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags"><env:Body><removeUserTags><request><![CDATA[<removeUserTagsRequest xmlns="http://www.exlibris.com/primo/xsd/wsRequest" xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents"><institution>NYU</institution><userId>N12162279</userId></removeUserTagsRequest>]]></request></removeUserTags></env:Body></env:Envelope>
|
8
|
+
headers:
|
9
|
+
Content-Length:
|
10
|
+
- "606"
|
11
|
+
Accept:
|
12
|
+
- "*/*"
|
13
|
+
Soapaction:
|
14
|
+
- "\"removeUserTags\""
|
15
|
+
Content-Type:
|
16
|
+
- text/xml;charset=UTF-8
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Date:
|
23
|
+
- Wed, 09 Jan 2013 21:24:29 GMT
|
24
|
+
Server:
|
25
|
+
- Apache-Coyote/1.1
|
26
|
+
X-Powered-By:
|
27
|
+
- Servlet 2.5; JBoss-5.0/JBossWeb-2.1
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Content-Type:
|
31
|
+
- text/xml;charset=utf-8
|
32
|
+
body:
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><removeUserTagsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><removeUserTagsReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
|
35
|
+
<ERROR CODE="0" MESSAGE="Remove user tags action completed successfully"/>
|
36
|
+
</TagsAndReviews></removeUserTagsReturn></removeUserTagsResponse></soapenv:Body></soapenv:Envelope>
|
37
|
+
http_version:
|
38
|
+
recorded_at: Wed, 09 Jan 2013 21:24:30 GMT
|
39
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,104 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags
|
6
|
+
body:
|
7
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:wsdl="http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><getTags><request><![CDATA[<getTagsRequest xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents" xmlns="http://www.exlibris.com/primo/xsd/wsRequest"><institution>NYU</institution><docId>nyu_aleph000062856</docId><userId>N12162279</userId></getTagsRequest>]]></request></getTags></env:Body></env:Envelope>
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
|
+
- "*/*"
|
11
|
+
Content-Length:
|
12
|
+
- "611"
|
13
|
+
Content-Type:
|
14
|
+
- text/xml;charset=UTF-8
|
15
|
+
Soapaction:
|
16
|
+
- "\"getTags\""
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- Apache-Coyote/1.1
|
24
|
+
X-Powered-By:
|
25
|
+
- Servlet 2.5; JBoss-5.0/JBossWeb-2.1
|
26
|
+
Date:
|
27
|
+
- Wed, 09 Jan 2013 21:17:04 GMT
|
28
|
+
Content-Type:
|
29
|
+
- text/xml;charset=utf-8
|
30
|
+
Transfer-Encoding:
|
31
|
+
- chunked
|
32
|
+
body:
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getTagsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><getTagsReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
|
35
|
+
<Tags>
|
36
|
+
<MyTags>
|
37
|
+
<Tag>
|
38
|
+
<value>tag2</value>
|
39
|
+
<docId>nyu_aleph000062856</docId>
|
40
|
+
<userId/>
|
41
|
+
<status/>
|
42
|
+
</Tag>
|
43
|
+
<Tag>
|
44
|
+
<value>tag1</value>
|
45
|
+
<docId>nyu_aleph000062856</docId>
|
46
|
+
<userId/>
|
47
|
+
<status/>
|
48
|
+
</Tag>
|
49
|
+
<Tag>
|
50
|
+
<value>tag 3</value>
|
51
|
+
<docId>nyu_aleph000062856</docId>
|
52
|
+
<userId/>
|
53
|
+
<status/>
|
54
|
+
</Tag>
|
55
|
+
<Tag>
|
56
|
+
<value>tag4</value>
|
57
|
+
<docId>nyu_aleph000062856</docId>
|
58
|
+
<userId/>
|
59
|
+
<status/>
|
60
|
+
</Tag>
|
61
|
+
<Tag>
|
62
|
+
<value>tag 5</value>
|
63
|
+
<docId>nyu_aleph000062856</docId>
|
64
|
+
<userId/>
|
65
|
+
<status/>
|
66
|
+
</Tag>
|
67
|
+
</MyTags>
|
68
|
+
<EverybodyTags>
|
69
|
+
<Tag>
|
70
|
+
<value>tag2</value>
|
71
|
+
<docId>nyu_aleph000062856</docId>
|
72
|
+
<userId/>
|
73
|
+
<status/>
|
74
|
+
</Tag>
|
75
|
+
<Tag>
|
76
|
+
<value>tag1</value>
|
77
|
+
<docId>nyu_aleph000062856</docId>
|
78
|
+
<userId/>
|
79
|
+
<status/>
|
80
|
+
</Tag>
|
81
|
+
<Tag>
|
82
|
+
<value>tag 3</value>
|
83
|
+
<docId>nyu_aleph000062856</docId>
|
84
|
+
<userId/>
|
85
|
+
<status/>
|
86
|
+
</Tag>
|
87
|
+
<Tag>
|
88
|
+
<value>tag4</value>
|
89
|
+
<docId>nyu_aleph000062856</docId>
|
90
|
+
<userId/>
|
91
|
+
<status/>
|
92
|
+
</Tag>
|
93
|
+
<Tag>
|
94
|
+
<value>tag 5</value>
|
95
|
+
<docId>nyu_aleph000062856</docId>
|
96
|
+
<userId/>
|
97
|
+
<status/>
|
98
|
+
</Tag>
|
99
|
+
</EverybodyTags>
|
100
|
+
</Tags>
|
101
|
+
</TagsAndReviews></getTagsReturn></getTagsResponse></soapenv:Body></soapenv:Envelope>
|
102
|
+
http_version:
|
103
|
+
recorded_at: Wed, 09 Jan 2013 21:17:05 GMT
|
104
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags
|
6
|
+
body:
|
7
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:wsdl="http://bobcatdev.library.nyu.edu/PrimoWebServices/services/tags" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><getAllMyTags><request><![CDATA[<getAllMyTagsRequest xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents" xmlns="http://www.exlibris.com/primo/xsd/wsRequest"><institution>NYU</institution><userId>N12162279</userId></getAllMyTagsRequest>]]></request></getAllMyTags></env:Body></env:Envelope>
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
|
+
- "*/*"
|
11
|
+
Content-Length:
|
12
|
+
- "598"
|
13
|
+
Content-Type:
|
14
|
+
- text/xml;charset=UTF-8
|
15
|
+
Soapaction:
|
16
|
+
- "\"getAllMyTags\""
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- Apache-Coyote/1.1
|
24
|
+
X-Powered-By:
|
25
|
+
- Servlet 2.5; JBoss-5.0/JBossWeb-2.1
|
26
|
+
Date:
|
27
|
+
- Wed, 09 Jan 2013 21:17:04 GMT
|
28
|
+
Content-Type:
|
29
|
+
- text/xml;charset=utf-8
|
30
|
+
Transfer-Encoding:
|
31
|
+
- chunked
|
32
|
+
body:
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getAllMyTagsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><getAllMyTagsReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
|
35
|
+
<Tags>
|
36
|
+
<MyTags>
|
37
|
+
<Tag>
|
38
|
+
<value>tag2</value>
|
39
|
+
<docId>nyu_aleph000062856</docId>
|
40
|
+
<userId/>
|
41
|
+
<status/>
|
42
|
+
</Tag>
|
43
|
+
<Tag>
|
44
|
+
<value>tag1</value>
|
45
|
+
<docId>nyu_aleph000062856</docId>
|
46
|
+
<userId/>
|
47
|
+
<status/>
|
48
|
+
</Tag>
|
49
|
+
<Tag>
|
50
|
+
<value>tag 3</value>
|
51
|
+
<docId>nyu_aleph000062856</docId>
|
52
|
+
<userId/>
|
53
|
+
<status/>
|
54
|
+
</Tag>
|
55
|
+
<Tag>
|
56
|
+
<value>tag4</value>
|
57
|
+
<docId>nyu_aleph000062856</docId>
|
58
|
+
<userId/>
|
59
|
+
<status/>
|
60
|
+
</Tag>
|
61
|
+
<Tag>
|
62
|
+
<value>tag 5</value>
|
63
|
+
<docId>nyu_aleph000062856</docId>
|
64
|
+
<userId/>
|
65
|
+
<status/>
|
66
|
+
</Tag>
|
67
|
+
</MyTags>
|
68
|
+
<EverybodyTags/>
|
69
|
+
</Tags>
|
70
|
+
</TagsAndReviews></getAllMyTagsReturn></getAllMyTagsResponse></soapenv:Body></soapenv:Envelope>
|
71
|
+
http_version:
|
72
|
+
recorded_at: Wed, 09 Jan 2013 21:17:05 GMT
|
73
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module WebService
|
2
|
+
module Client
|
3
|
+
require 'test_helper'
|
4
|
+
class AbstractTest < Test::Unit::TestCase
|
5
|
+
def setup
|
6
|
+
@base_url = "http://bobcatdev.library.nyu.edu"
|
7
|
+
@user_id = "N12162279"
|
8
|
+
@institution = "NYU"
|
9
|
+
@doc_id = "nyu_aleph000062856"
|
10
|
+
@dedupmgr_id = "dedupmrg17343091"
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_abstract_raise
|
14
|
+
assert_raise(NotImplementedError) {
|
15
|
+
Exlibris::Primo::WebService::Client::Base.new
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_non_abstract_nothing_raised
|
20
|
+
assert_nothing_raised {
|
21
|
+
Exlibris::Primo::WebService::Client::Eshelf.new :base_url => @base_url
|
22
|
+
Exlibris::Primo::WebService::Client::Reviews.new :base_url => @base_url
|
23
|
+
Exlibris::Primo::WebService::Client::Search.new :base_url => @base_url
|
24
|
+
Exlibris::Primo::WebService::Client::Tags.new :base_url => @base_url
|
25
|
+
}
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module WebService
|
2
|
+
module Client
|
3
|
+
require 'test_helper'
|
4
|
+
class EshelfTest < Test::Unit::TestCase
|
5
|
+
def setup
|
6
|
+
@base_url = "http://bobcatdev.library.nyu.edu"
|
7
|
+
@doc_id = "nyu_aleph000062856"
|
8
|
+
@user_id = "N12162279"
|
9
|
+
@institution = "NYU"
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_get_eshelf
|
13
|
+
assert_nothing_raised {
|
14
|
+
VCR.use_cassette('client get eshelf') do
|
15
|
+
client = Exlibris::Primo::WebService::Client::Eshelf.new :base_url => @base_url
|
16
|
+
response = client.get_eshelf "<request><![CDATA[<getEshelfRequest xmlns=\"http://www.exlibris.com/primo/xsd/wsRequest\" xmlns:uic=\"http://www.exlibris.com/primo/xsd/primoview/uicomponents\"><institution>NYU</institution><userId>N12162279</userId></getEshelfRequest>]]></request>"
|
17
|
+
end
|
18
|
+
}
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module WebService
|
2
|
+
module Client
|
3
|
+
require 'test_helper'
|
4
|
+
class ReviewsTest < Test::Unit::TestCase
|
5
|
+
def setup
|
6
|
+
@base_url = "http://bobcatdev.library.nyu.edu"
|
7
|
+
@doc_id = "nyu_aleph000062856"
|
8
|
+
@user_id = "N12162279"
|
9
|
+
@institution = "NYU"
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_get_reviews
|
13
|
+
assert_nothing_raised {
|
14
|
+
VCR.use_cassette('client get reviews') do
|
15
|
+
client = Exlibris::Primo::WebService::Client::Reviews.new :base_url => @base_url
|
16
|
+
response = client.get_reviews "<request><![CDATA[<getReviewsRequest xmlns=\"http://www.exlibris.com/primo/xsd/wsRequest\" xmlns:uic=\"http://www.exlibris.com/primo/xsd/primoview/uicomponents\"><institution>NYU</institution><docId>nyu_aleph000062856</docId><userId>N12162279</userId></getReviewsRequest>]]></request>"
|
17
|
+
end
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_get_all_my_reviews
|
22
|
+
assert_nothing_raised {
|
23
|
+
VCR.use_cassette('client get all my reviews') do
|
24
|
+
client = Exlibris::Primo::WebService::Client::Reviews.new :base_url => @base_url
|
25
|
+
response = client.get_all_my_reviews "<request><![CDATA[<getAllMyReviewsRequest xmlns=\"http://www.exlibris.com/primo/xsd/wsRequest\" xmlns:uic=\"http://www.exlibris.com/primo/xsd/primoview/uicomponents\"><institution>NYU</institution><userId>N12162279</userId></getAllMyReviewsRequest>]]></request>"
|
26
|
+
end
|
27
|
+
}
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|