bento_search 1.4.4 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +41 -19
- data/app/models/bento_search/result_item.rb +1 -1
- data/app/models/bento_search/search_engine.rb +36 -3
- data/app/models/bento_search/search_engine/capabilities.rb +14 -0
- data/app/search_engines/bento_search/doaj_articles_engine.rb +279 -0
- data/app/search_engines/bento_search/ebsco_host_engine.rb +27 -7
- data/app/search_engines/bento_search/google_books_engine.rb +8 -1
- data/app/search_engines/bento_search/mock_engine.rb +8 -2
- data/app/search_engines/bento_search/scopus_engine.rb +27 -8
- data/app/search_engines/bento_search/summon_engine.rb +1 -1
- data/app/search_engines/bento_search/worldcat_sru_dc_engine.rb +22 -3
- data/config/locales/en.yml +5 -2
- data/lib/bento_search/version.rb +1 -1
- data/test/dummy/config/environments/development.rb +0 -4
- data/test/dummy/config/environments/production.rb +0 -4
- data/test/search_engines/doaj_articles_engine_test.rb +200 -0
- data/test/search_engines/ebsco_host_engine_test.rb +38 -0
- data/test/search_engines/google_books_engine_test.rb +18 -2
- data/test/search_engines/scopus_engine_test.rb +45 -1
- data/test/search_engines/search_engine_base_test.rb +59 -0
- data/test/search_engines/worldcat_sru_dc_engine_test.rb +17 -0
- data/test/vcr_cassettes/doaj_articles/basic_search.yml +97 -0
- data/test/vcr_cassettes/doaj_articles/catches_errors.yml +42 -0
- data/test/vcr_cassettes/doaj_articles/complex_multi-field.yml +67 -0
- data/test/vcr_cassettes/doaj_articles/live__get_identifier__round_trip.yml +387 -0
- data/test/vcr_cassettes/doaj_articles/live_get_identifier__raises_on_no_results.yml +41 -0
- data/test/vcr_cassettes/doaj_articles/multifield_author-title.yml +79 -0
- data/test/vcr_cassettes/doaj_articles/pagination.yml +691 -0
- data/test/vcr_cassettes/ebscohost/affiliation_search.yml +929 -0
- data/test/vcr_cassettes/ebscohost/multi-field_author_title.yml +122 -0
- data/test/vcr_cassettes/ebscohost/multi-field_citation_numbers.yml +122 -0
- data/test/vcr_cassettes/scopus/multi-field_search.yml +55 -0
- data/test/vcr_cassettes/scopus/multi-fielded_citation_details_search.yml +86 -0
- data/test/vcr_cassettes/worldcat_sru_dc/multi_field_search.yml +1839 -0
- metadata +31 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bento_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -237,6 +237,7 @@ files:
|
|
237
237
|
- app/models/bento_search/ris_creator.rb
|
238
238
|
- app/models/bento_search/search_engine.rb
|
239
239
|
- app/models/bento_search/search_engine/capabilities.rb
|
240
|
+
- app/search_engines/bento_search/doaj_articles_engine.rb
|
240
241
|
- app/search_engines/bento_search/ebsco_host_engine.rb
|
241
242
|
- app/search_engines/bento_search/eds_engine.rb
|
242
243
|
- app/search_engines/bento_search/google_books_engine.rb
|
@@ -301,6 +302,7 @@ files:
|
|
301
302
|
- test/functional/bento_search/search_controller_test.rb
|
302
303
|
- test/helper/bento_search_helper_test.rb
|
303
304
|
- test/helper/bento_truncate_helper_test.rb
|
305
|
+
- test/search_engines/doaj_articles_engine_test.rb
|
304
306
|
- test/search_engines/ebsco_host_engine_test.rb
|
305
307
|
- test/search_engines/eds_engine_test.rb
|
306
308
|
- test/search_engines/google_books_engine_test.rb
|
@@ -325,7 +327,15 @@ files:
|
|
325
327
|
- test/unit/result_item_test.rb
|
326
328
|
- test/unit/ris_creator_test.rb
|
327
329
|
- test/unit/serialization_test.rb
|
330
|
+
- test/vcr_cassettes/doaj_articles/basic_search.yml
|
331
|
+
- test/vcr_cassettes/doaj_articles/catches_errors.yml
|
332
|
+
- test/vcr_cassettes/doaj_articles/complex_multi-field.yml
|
333
|
+
- test/vcr_cassettes/doaj_articles/live__get_identifier__round_trip.yml
|
334
|
+
- test/vcr_cassettes/doaj_articles/live_get_identifier__raises_on_no_results.yml
|
335
|
+
- test/vcr_cassettes/doaj_articles/multifield_author-title.yml
|
336
|
+
- test/vcr_cassettes/doaj_articles/pagination.yml
|
328
337
|
- test/vcr_cassettes/ebscohost/RILM_record_with_ISSN_in__jid__element.yml
|
338
|
+
- test/vcr_cassettes/ebscohost/affiliation_search.yml
|
329
339
|
- test/vcr_cassettes/ebscohost/another_dissertation.yml
|
330
340
|
- test/vcr_cassettes/ebscohost/dissertation_example.yml
|
331
341
|
- test/vcr_cassettes/ebscohost/error_bad_db.yml
|
@@ -340,6 +350,8 @@ files:
|
|
340
350
|
- test/vcr_cassettes/ebscohost/live_pathological_book_item_example.yml
|
341
351
|
- test/vcr_cassettes/ebscohost/live_search.yml
|
342
352
|
- test/vcr_cassettes/ebscohost/live_search_smoke_test.yml
|
353
|
+
- test/vcr_cassettes/ebscohost/multi-field_author_title.yml
|
354
|
+
- test/vcr_cassettes/ebscohost/multi-field_citation_numbers.yml
|
343
355
|
- test/vcr_cassettes/eds/basic_search_smoke_test.yml
|
344
356
|
- test/vcr_cassettes/eds/get_auth_token.yml
|
345
357
|
- test/vcr_cassettes/eds/get_auth_token_failure.yml
|
@@ -369,6 +381,8 @@ files:
|
|
369
381
|
- test/vcr_cassettes/scopus/bad_api_key_should_return_error_response.yml
|
370
382
|
- test/vcr_cassettes/scopus/escaped_chars.yml
|
371
383
|
- test/vcr_cassettes/scopus/fielded_search.yml
|
384
|
+
- test/vcr_cassettes/scopus/multi-field_search.yml
|
385
|
+
- test/vcr_cassettes/scopus/multi-fielded_citation_details_search.yml
|
372
386
|
- test/vcr_cassettes/scopus/simple_search.yml
|
373
387
|
- test/vcr_cassettes/scopus/zero_results_search.yml
|
374
388
|
- test/vcr_cassettes/summon/bad_auth.yml
|
@@ -380,6 +394,7 @@ files:
|
|
380
394
|
- test/vcr_cassettes/worldcat_sru_dc/live_get_id_.yml
|
381
395
|
- test/vcr_cassettes/worldcat_sru_dc/live_get_id__for_bad_id.yml
|
382
396
|
- test/vcr_cassettes/worldcat_sru_dc/max_out_pagination.yml
|
397
|
+
- test/vcr_cassettes/worldcat_sru_dc/multi_field_search.yml
|
383
398
|
- test/vcr_cassettes/worldcat_sru_dc/smoke_test.yml
|
384
399
|
- test/vcr_cassettes/xerxes/live_search.yml
|
385
400
|
- test/view/atom_results_test.rb
|
@@ -444,6 +459,7 @@ test_files:
|
|
444
459
|
- test/functional/bento_search/search_controller_test.rb
|
445
460
|
- test/helper/bento_search_helper_test.rb
|
446
461
|
- test/helper/bento_truncate_helper_test.rb
|
462
|
+
- test/search_engines/doaj_articles_engine_test.rb
|
447
463
|
- test/search_engines/ebsco_host_engine_test.rb
|
448
464
|
- test/search_engines/eds_engine_test.rb
|
449
465
|
- test/search_engines/google_books_engine_test.rb
|
@@ -468,6 +484,14 @@ test_files:
|
|
468
484
|
- test/unit/result_item_test.rb
|
469
485
|
- test/unit/ris_creator_test.rb
|
470
486
|
- test/unit/serialization_test.rb
|
487
|
+
- test/vcr_cassettes/doaj_articles/basic_search.yml
|
488
|
+
- test/vcr_cassettes/doaj_articles/catches_errors.yml
|
489
|
+
- test/vcr_cassettes/doaj_articles/complex_multi-field.yml
|
490
|
+
- test/vcr_cassettes/doaj_articles/live__get_identifier__round_trip.yml
|
491
|
+
- test/vcr_cassettes/doaj_articles/live_get_identifier__raises_on_no_results.yml
|
492
|
+
- test/vcr_cassettes/doaj_articles/multifield_author-title.yml
|
493
|
+
- test/vcr_cassettes/doaj_articles/pagination.yml
|
494
|
+
- test/vcr_cassettes/ebscohost/affiliation_search.yml
|
471
495
|
- test/vcr_cassettes/ebscohost/another_dissertation.yml
|
472
496
|
- test/vcr_cassettes/ebscohost/dissertation_example.yml
|
473
497
|
- test/vcr_cassettes/ebscohost/error_bad_db.yml
|
@@ -482,6 +506,8 @@ test_files:
|
|
482
506
|
- test/vcr_cassettes/ebscohost/live_pathological_book_item_example.yml
|
483
507
|
- test/vcr_cassettes/ebscohost/live_search.yml
|
484
508
|
- test/vcr_cassettes/ebscohost/live_search_smoke_test.yml
|
509
|
+
- test/vcr_cassettes/ebscohost/multi-field_author_title.yml
|
510
|
+
- test/vcr_cassettes/ebscohost/multi-field_citation_numbers.yml
|
485
511
|
- test/vcr_cassettes/ebscohost/RILM_record_with_ISSN_in__jid__element.yml
|
486
512
|
- test/vcr_cassettes/eds/basic_search_smoke_test.yml
|
487
513
|
- test/vcr_cassettes/eds/get_auth_token.yml
|
@@ -512,6 +538,8 @@ test_files:
|
|
512
538
|
- test/vcr_cassettes/scopus/bad_api_key_should_return_error_response.yml
|
513
539
|
- test/vcr_cassettes/scopus/escaped_chars.yml
|
514
540
|
- test/vcr_cassettes/scopus/fielded_search.yml
|
541
|
+
- test/vcr_cassettes/scopus/multi-field_search.yml
|
542
|
+
- test/vcr_cassettes/scopus/multi-fielded_citation_details_search.yml
|
515
543
|
- test/vcr_cassettes/scopus/simple_search.yml
|
516
544
|
- test/vcr_cassettes/scopus/zero_results_search.yml
|
517
545
|
- test/vcr_cassettes/summon/bad_auth.yml
|
@@ -523,6 +551,7 @@ test_files:
|
|
523
551
|
- test/vcr_cassettes/worldcat_sru_dc/live_get_id_.yml
|
524
552
|
- test/vcr_cassettes/worldcat_sru_dc/live_get_id__for_bad_id.yml
|
525
553
|
- test/vcr_cassettes/worldcat_sru_dc/max_out_pagination.yml
|
554
|
+
- test/vcr_cassettes/worldcat_sru_dc/multi_field_search.yml
|
526
555
|
- test/vcr_cassettes/worldcat_sru_dc/smoke_test.yml
|
527
556
|
- test/vcr_cassettes/xerxes/live_search.yml
|
528
557
|
- test/view/atom_results_test.rb
|