commonwealth-vlr-engine 0.0.4 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_120x120.png +0 -0
  4. data/app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_152x152.png +0 -0
  5. data/app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_60x60.png +0 -0
  6. data/app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_76x76.png +0 -0
  7. data/app/assets/javascripts/blacklight_google_analytics/blacklight_google_analytics.js.erb +11 -0
  8. data/app/assets/javascripts/commonwealth-vlr-engine.js +3 -0
  9. data/app/assets/javascripts/commonwealth-vlr-engine/download_utils.js +4 -0
  10. data/app/assets/stylesheets/commonwealth-vlr-engine/commonwealth-vlr-engine.css +1 -0
  11. data/app/assets/stylesheets/commonwealth-vlr-engine/downloads.scss +18 -0
  12. data/app/assets/stylesheets/commonwealth-vlr-engine/facets.scss +64 -0
  13. data/app/assets/stylesheets/commonwealth-vlr-engine/vlr_dependencies.css +3 -1
  14. data/app/controllers/bookmarks_controller.rb +7 -2
  15. data/app/controllers/collections_controller.rb +1 -109
  16. data/app/controllers/concerns/commonwealth_vlr_engine/collections_controller_behavior.rb +132 -0
  17. data/app/controllers/concerns/commonwealth_vlr_engine/downloads_controller_behavior.rb +184 -0
  18. data/app/controllers/concerns/commonwealth_vlr_engine/institutions_controller_behavior.rb +70 -0
  19. data/app/controllers/downloads_controller.rb +4 -0
  20. data/app/controllers/iiif_manifest_controller.rb +2 -7
  21. data/app/controllers/image_viewer_controller.rb +3 -13
  22. data/app/controllers/institutions_controller.rb +1 -65
  23. data/app/controllers/ocr_search_controller.rb +1 -1
  24. data/app/controllers/saved_searches_controller.rb +2 -0
  25. data/app/controllers/search_history_controller.rb +2 -0
  26. data/app/helpers/commonwealth_vlr_engine/application_helper.rb +20 -2
  27. data/app/helpers/commonwealth_vlr_engine/catalog_helper.rb +36 -53
  28. data/app/helpers/commonwealth_vlr_engine/downloads_helper_behavior.rb +192 -0
  29. data/app/helpers/commonwealth_vlr_engine/facets_helper.rb +3 -1
  30. data/app/helpers/commonwealth_vlr_engine/ocr_search_helper_behavior.rb +5 -0
  31. data/app/helpers/commonwealth_vlr_engine/search_history_constraints_helper.rb +25 -0
  32. data/app/helpers/downloads_helper.rb +3 -0
  33. data/app/views/catalog/_add_this.html.erb +3 -1
  34. data/app/views/catalog/_folder_item_control.html.erb +2 -1
  35. data/app/views/catalog/_index_mapview.html.erb +9 -0
  36. data/app/views/catalog/_more_like_this.html.erb +1 -1
  37. data/app/views/catalog/_show_cite_tools.html.erb +3 -0
  38. data/app/views/catalog/_show_default.html.erb +13 -12
  39. data/app/views/catalog/_show_partials/_show_book_viewer_link.html.erb +1 -1
  40. data/app/views/catalog/_show_partials/_show_default_metadata.html.erb +3 -3
  41. data/app/views/catalog/_show_partials/_show_downloads.html.erb +1 -1
  42. data/app/views/catalog/_show_partials/_show_volumes.html.erb +1 -1
  43. data/app/views/catalog/_show_sharing_tools.html.erb +3 -0
  44. data/app/views/collections/show.html.erb +1 -0
  45. data/app/views/downloads/_terms_of_use.html.erb +29 -0
  46. data/app/views/downloads/show.html.erb +29 -0
  47. data/app/views/image_viewer/_render_book_viewer.html.erb +1 -1
  48. data/app/views/institutions/show.html.erb +2 -10
  49. data/app/views/layouts/commonwealth-vlr-engine.html.erb +1 -4
  50. data/app/views/ocr_search/_index_ocr_list.html.erb +3 -3
  51. data/app/views/shared/_mobile_icon_tags.html.erb +4 -0
  52. data/app/views/shared/_search_form_header.html.erb +1 -1
  53. data/app/views/shared/_tools.html.erb +5 -5
  54. data/commonwealth-vlr-engine.gemspec +8 -6
  55. data/config/initializers/patch_blacklight_advanced_search.rb +6 -6
  56. data/config/initializers/patch_blacklight_range_limit.rb +18 -0
  57. data/config/jetty.yml +1 -1
  58. data/config/locales/commonwealth-vlr-engine.en.yml +12 -0
  59. data/config/routes.rb +6 -0
  60. data/lib/commonwealth-vlr-engine.rb +1 -0
  61. data/lib/commonwealth-vlr-engine/controller.rb +18 -3
  62. data/lib/commonwealth-vlr-engine/controller_override.rb +79 -21
  63. data/lib/commonwealth-vlr-engine/engine.rb +1 -0
  64. data/lib/commonwealth-vlr-engine/render_constraints_override.rb +15 -14
  65. data/lib/commonwealth-vlr-engine/search_builder/collections_search_builder.rb +1 -1
  66. data/lib/commonwealth-vlr-engine/search_builder/commonwealth_search_builder_behavior.rb +13 -1
  67. data/lib/commonwealth-vlr-engine/search_builder/flagged_search_builder.rb +1 -1
  68. data/lib/commonwealth-vlr-engine/search_builder/institutions_search_builder.rb +1 -1
  69. data/lib/commonwealth-vlr-engine/search_builder/mlt_search_builder.rb +2 -1
  70. data/lib/commonwealth-vlr-engine/streaming.rb +50 -0
  71. data/lib/commonwealth-vlr-engine/version.rb +1 -1
  72. data/lib/generators/commonwealth_vlr_engine/routes_generator.rb +8 -0
  73. data/lib/generators/commonwealth_vlr_engine/templates/commonwealth_search_builder.rb +4 -3
  74. data/lib/generators/commonwealth_vlr_engine/templates/config/vlr.yml +3 -0
  75. data/solr_conf/conf/solrconfig.xml +42 -5
  76. data/spec/controllers/collections_controller_spec.rb +20 -0
  77. data/spec/controllers/downloads_controller_spec.rb +65 -0
  78. data/spec/controllers/image_viewer_controller_spec.rb +0 -18
  79. data/spec/controllers/institutions_controller_spec.rb +7 -0
  80. data/spec/features/advanced_search_date_range_spec.rb +36 -0
  81. data/spec/features/collections/index_spec.rb +6 -0
  82. data/spec/features/collections/show_spec.rb +38 -0
  83. data/spec/features/more_like_this_search_spec.rb +18 -1
  84. data/spec/fixtures/sample_solr_documents.yml +107 -19
  85. data/spec/helpers/application_helper_spec.rb +9 -2
  86. data/spec/helpers/catalog_helper_spec.rb +26 -42
  87. data/spec/helpers/downloads_helper_spec.rb +173 -0
  88. data/spec/helpers/ocr_search_helper_spec.rb +15 -7
  89. data/spec/helpers/range_limit_helper_spec.rb +20 -0
  90. data/spec/helpers/search_history_constraints_helper_spec.rb +39 -0
  91. data/spec/lib/commonwealth-vlr-engine/controller_override_spec.rb +37 -0
  92. data/spec/lib/commonwealth-vlr-engine/render_constraints_override_spec.rb +0 -10
  93. data/spec/lib/commonwealth-vlr-engine/search_builder/commonwealth_search_builder_behavior_spec.rb +21 -3
  94. data/spec/lib/commonwealth-vlr-engine/search_builder/mlt_search_builder_spec.rb +1 -1
  95. metadata +99 -12
  96. data/app/helpers/commonwealth_vlr_engine/component_helper.rb +0 -22
  97. data/app/views/catalog/_show_tools.html.erb +0 -42
  98. data/spec/helpers/component_helper_spec.rb +0 -34
@@ -80,16 +80,6 @@ describe CommonwealthVlrEngine::RenderConstraintsOverride do
80
80
 
81
81
  end
82
82
 
83
- describe "render_search_to_s_mlt" do
84
-
85
- it "should return render_search_to_s_element when mlt params are present" do
86
- expect(@fake_controller).to receive(:render_search_to_s_element)
87
- expect(@fake_controller).to receive(:render_filter_value)
88
- @fake_controller.render_search_to_s_mlt(@test_params)
89
- end
90
-
91
- end
92
-
93
83
  end
94
84
 
95
85
 
@@ -20,6 +20,14 @@ describe CommonwealthVlrEngine::CommonwealthSearchBuilderBehavior do
20
20
 
21
21
  let(:search_builder) { search_builder_class.new(context) }
22
22
 
23
+ describe 'site_filter' do
24
+
25
+ it 'should add parameters to filter items with the correct site' do
26
+ expect(search_builder.site_filter(solr_parameters).to_s).to include('destination_site_ssim')
27
+ end
28
+
29
+ end
30
+
23
31
  describe 'exclude_unwanted_models' do
24
32
 
25
33
  it 'should add parameters to exclude unwanted models' do
@@ -72,12 +80,22 @@ describe CommonwealthVlrEngine::CommonwealthSearchBuilderBehavior do
72
80
 
73
81
  end
74
82
 
75
- describe 'set_solr_id_for_mlt' do
83
+ describe 'mlt_params' do
76
84
 
77
- subject { search_builder.with({mlt_id: 'bpl-dev:12345678'}) }
85
+ let(:builder_with_params) { search_builder.with({mlt_id: 'bpl-dev:12345678'}) }
86
+
87
+ before do
88
+ builder_with_params.mlt_params(solr_parameters)
89
+ end
78
90
 
79
91
  it 'should set the id param to the mlt_id value' do
80
- expect(subject.set_solr_id_for_mlt(solr_parameters)).to eq('bpl-dev:12345678')
92
+ expect(solr_parameters['id']).to eq('bpl-dev:12345678')
93
+ end
94
+
95
+ it 'should set the mlt query params' do
96
+ expect(solr_parameters['qt']).to eq('mlt')
97
+ expect(solr_parameters['mlt.fl']).to be_truthy
98
+ expect(solr_parameters['mlt.qf']).to be_truthy
81
99
  end
82
100
 
83
101
  end
@@ -10,7 +10,7 @@ describe CommonwealthMltSearchBuilder do
10
10
  describe 'processor chain' do
11
11
 
12
12
  it 'should add the right methods to the processor chain' do
13
- expect(@obj.processor_chain).to include(:set_solr_id_for_mlt)
13
+ expect(@obj.processor_chain).to include(:mlt_params)
14
14
  end
15
15
 
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonwealth-vlr-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eben English
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-24 00:00:00.000000000 Z
12
+ date: 2017-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -31,42 +31,42 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 6.1.0
34
+ version: 6.3.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 6.1.0
41
+ version: 6.3.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: blacklight_advanced_search
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 6.0.2
48
+ version: 6.2.1
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 6.0.2
55
+ version: 6.2.1
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: blacklight-gallery
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.5.0
62
+ version: 0.6.1
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.5.0
69
+ version: 0.6.1
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: blacklight-maps
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +81,48 @@ dependencies:
81
81
  - - '='
82
82
  - !ruby/object:Gem::Version
83
83
  version: 0.5.0
84
+ - !ruby/object:Gem::Dependency
85
+ name: leaflet-rails
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 0.7.3
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 0.7.3
98
+ - !ruby/object:Gem::Dependency
99
+ name: blacklight_range_limit
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '='
103
+ - !ruby/object:Gem::Version
104
+ version: 6.0.0
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '='
110
+ - !ruby/object:Gem::Version
111
+ version: 6.0.0
112
+ - !ruby/object:Gem::Dependency
113
+ name: openseadragon
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '='
117
+ - !ruby/object:Gem::Version
118
+ version: 0.3.1
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - '='
124
+ - !ruby/object:Gem::Version
125
+ version: 0.3.1
84
126
  - !ruby/object:Gem::Dependency
85
127
  name: bootstrap-sass
86
128
  requirement: !ruby/object:Gem::Requirement
@@ -249,6 +291,20 @@ dependencies:
249
291
  - - ">="
250
292
  - !ruby/object:Gem::Version
251
293
  version: '0'
294
+ - !ruby/object:Gem::Dependency
295
+ name: zipline
296
+ requirement: !ruby/object:Gem::Requirement
297
+ requirements:
298
+ - - ">="
299
+ - !ruby/object:Gem::Version
300
+ version: '0'
301
+ type: :runtime
302
+ prerelease: false
303
+ version_requirements: !ruby/object:Gem::Requirement
304
+ requirements:
305
+ - - ">="
306
+ - !ruby/object:Gem::Version
307
+ version: '0'
252
308
  - !ruby/object:Gem::Dependency
253
309
  name: bundler
254
310
  requirement: !ruby/object:Gem::Requirement
@@ -405,12 +461,17 @@ files:
405
461
  - app/assets/images/commonwealth-vlr-engine/openseadragon/zoomout_pressed.png
406
462
  - app/assets/images/commonwealth-vlr-engine/openseadragon/zoomout_rest.png
407
463
  - app/assets/images/commonwealth-vlr-engine/vlr_logo_img.png
464
+ - app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_120x120.png
465
+ - app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_152x152.png
466
+ - app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_60x60.png
467
+ - app/assets/images/commonwealth-vlr-engine/vlr_mobile-icons_76x76.png
408
468
  - app/assets/javascripts/blacklight_gallery.js
409
469
  - app/assets/javascripts/blacklight_google_analytics/blacklight_google_analytics.js.erb
410
470
  - app/assets/javascripts/bootstrap-accessibility-plugin/bootstrap-accessibility.js
411
471
  - app/assets/javascripts/commonwealth-vlr-engine.js
412
472
  - app/assets/javascripts/commonwealth-vlr-engine/collection_facets.js
413
473
  - app/assets/javascripts/commonwealth-vlr-engine/disable_dropdown_nav.js
474
+ - app/assets/javascripts/commonwealth-vlr-engine/download_utils.js
414
475
  - app/assets/javascripts/commonwealth-vlr-engine/feedback_alerts.js.erb
415
476
  - app/assets/javascripts/commonwealth-vlr-engine/folder_tools.js
416
477
  - app/assets/javascripts/commonwealth-vlr-engine/multi_img_viewer.js.erb
@@ -437,6 +498,7 @@ files:
437
498
  - app/assets/stylesheets/commonwealth-vlr-engine/cmmnwlth_shared.scss
438
499
  - app/assets/stylesheets/commonwealth-vlr-engine/collections.scss
439
500
  - app/assets/stylesheets/commonwealth-vlr-engine/commonwealth-vlr-engine.css
501
+ - app/assets/stylesheets/commonwealth-vlr-engine/downloads.scss
440
502
  - app/assets/stylesheets/commonwealth-vlr-engine/facets.scss
441
503
  - app/assets/stylesheets/commonwealth-vlr-engine/feedback.scss
442
504
  - app/assets/stylesheets/commonwealth-vlr-engine/folders.scss
@@ -460,6 +522,10 @@ files:
460
522
  - app/controllers/bookmarks_controller.rb
461
523
  - app/controllers/collections_controller.rb
462
524
  - app/controllers/commonwealth_vlr_engine/application_controller.rb
525
+ - app/controllers/concerns/commonwealth_vlr_engine/collections_controller_behavior.rb
526
+ - app/controllers/concerns/commonwealth_vlr_engine/downloads_controller_behavior.rb
527
+ - app/controllers/concerns/commonwealth_vlr_engine/institutions_controller_behavior.rb
528
+ - app/controllers/downloads_controller.rb
463
529
  - app/controllers/feedback_controller.rb
464
530
  - app/controllers/folder_items_actions_controller.rb
465
531
  - app/controllers/folder_items_controller.rb
@@ -482,7 +548,7 @@ files:
482
548
  - app/helpers/commonwealth_vlr_engine/blacklight_url_helper.rb
483
549
  - app/helpers/commonwealth_vlr_engine/catalog_helper.rb
484
550
  - app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb
485
- - app/helpers/commonwealth_vlr_engine/component_helper.rb
551
+ - app/helpers/commonwealth_vlr_engine/downloads_helper_behavior.rb
486
552
  - app/helpers/commonwealth_vlr_engine/facets_helper.rb
487
553
  - app/helpers/commonwealth_vlr_engine/feedback_helper_behavior.rb
488
554
  - app/helpers/commonwealth_vlr_engine/folders_helper_behavior.rb
@@ -491,7 +557,9 @@ files:
491
557
  - app/helpers/commonwealth_vlr_engine/layout_helper.rb
492
558
  - app/helpers/commonwealth_vlr_engine/ocr_search_helper_behavior.rb
493
559
  - app/helpers/commonwealth_vlr_engine/pages_helper_behavior.rb
560
+ - app/helpers/commonwealth_vlr_engine/search_history_constraints_helper.rb
494
561
  - app/helpers/commonwealth_vlr_engine/vlr_blacklight_maps_helper_behavior.rb
562
+ - app/helpers/downloads_helper.rb
495
563
  - app/helpers/feedback_helper.rb
496
564
  - app/helpers/folders_helper.rb
497
565
  - app/helpers/image_viewer_helper.rb
@@ -528,6 +596,7 @@ files:
528
596
  - app/views/catalog/_index_gallery.html.erb
529
597
  - app/views/catalog/_index_header_default.html.erb
530
598
  - app/views/catalog/_index_list_collection.html.erb
599
+ - app/views/catalog/_index_mapview.html.erb
531
600
  - app/views/catalog/_index_mapview_institutions.html.erb
532
601
  - app/views/catalog/_index_masonry.html.erb
533
602
  - app/views/catalog/_index_slideshow.html.erb
@@ -537,6 +606,7 @@ files:
537
606
  - app/views/catalog/_results_pagination.html.erb
538
607
  - app/views/catalog/_search_form.html.erb
539
608
  - app/views/catalog/_search_header.html.erb
609
+ - app/views/catalog/_show_cite_tools.html.erb
540
610
  - app/views/catalog/_show_default.html.erb
541
611
  - app/views/catalog/_show_main_content.html.erb
542
612
  - app/views/catalog/_show_more_like_this.html.erb
@@ -552,8 +622,8 @@ files:
552
622
  - app/views/catalog/_show_partials/_show_oai_item_link.html.erb
553
623
  - app/views/catalog/_show_partials/_show_prev_next_carousel_links.html.erb
554
624
  - app/views/catalog/_show_partials/_show_volumes.html.erb
625
+ - app/views/catalog/_show_sharing_tools.html.erb
555
626
  - app/views/catalog/_show_sidebar.html.erb
556
- - app/views/catalog/_show_tools.html.erb
557
627
  - app/views/catalog/_zero_results.html.erb
558
628
  - app/views/catalog/email.html.erb
559
629
  - app/views/catalog/index.html.erb
@@ -570,6 +640,8 @@ files:
570
640
  - app/views/devise/registrations/new.html.erb
571
641
  - app/views/devise/sessions/new.html.erb
572
642
  - app/views/devise/shared/_links.erb
643
+ - app/views/downloads/_terms_of_use.html.erb
644
+ - app/views/downloads/show.html.erb
573
645
  - app/views/feedback/complete.html.erb
574
646
  - app/views/feedback/show.html.erb
575
647
  - app/views/folder_items/create.js.erb
@@ -619,6 +691,7 @@ files:
619
691
  - app/views/shared/_folder_tools.html.erb
620
692
  - app/views/shared/_footer.html.erb
621
693
  - app/views/shared/_header_navbar.html.erb
694
+ - app/views/shared/_mobile_icon_tags.html.erb
622
695
  - app/views/shared/_nav_links.html.erb
623
696
  - app/views/shared/_search_form_header.html.erb
624
697
  - app/views/shared/_sitelinks_search_box.html.erb
@@ -629,6 +702,7 @@ files:
629
702
  - config/initializers/assets.rb
630
703
  - config/initializers/patch_blacklight_advanced_search.rb
631
704
  - config/initializers/patch_blacklight_maps.rb
705
+ - config/initializers/patch_blacklight_range_limit.rb
632
706
  - config/jetty.yml
633
707
  - config/locales/commonwealth-vlr-engine.en.yml
634
708
  - config/routes.rb
@@ -647,6 +721,7 @@ files:
647
721
  - lib/commonwealth-vlr-engine/search_builder/institutions_search_builder.rb
648
722
  - lib/commonwealth-vlr-engine/search_builder/mlt_search_builder.rb
649
723
  - lib/commonwealth-vlr-engine/search_builder/ocr_search_builder.rb
724
+ - lib/commonwealth-vlr-engine/streaming.rb
650
725
  - lib/commonwealth-vlr-engine/version.rb
651
726
  - lib/generators/commonwealth_vlr_engine/controller_generator.rb
652
727
  - lib/generators/commonwealth_vlr_engine/environment_generator.rb
@@ -675,6 +750,7 @@ files:
675
750
  - solr_conf/conf/solrconfig.xml
676
751
  - spec/controllers/catalog_controller_spec.rb
677
752
  - spec/controllers/collections_controller_spec.rb
753
+ - spec/controllers/downloads_controller_spec.rb
678
754
  - spec/controllers/feedback_controller_spec.rb
679
755
  - spec/controllers/folder_items_actions_controller_spec.rb
680
756
  - spec/controllers/folder_items_controller_spec.rb
@@ -685,6 +761,7 @@ files:
685
761
  - spec/controllers/ocr_search_controller_spec.rb
686
762
  - spec/controllers/pages_controller_spec.rb
687
763
  - spec/controllers/users_controller_spec.rb
764
+ - spec/features/advanced_search_date_range_spec.rb
688
765
  - spec/features/catalog/_az_links_spec.rb
689
766
  - spec/features/catalog/_show_partials/_show_book_viewer_link_spec.rb
690
767
  - spec/features/catalog/_show_partials/_show_default_simple_img_viewer_spec.rb
@@ -692,6 +769,7 @@ files:
692
769
  - spec/features/catalog/_show_partials/_show_multi_img_spec.rb
693
770
  - spec/features/catalog/_show_partials/_show_volumes_spec.rb
694
771
  - spec/features/collections/index_spec.rb
772
+ - spec/features/collections/show_spec.rb
695
773
  - spec/features/feedback/show_spec.rb
696
774
  - spec/features/image_viewer/book_viewer_spec.rb
697
775
  - spec/features/institutions/index_spec.rb
@@ -703,12 +781,15 @@ files:
703
781
  - spec/helpers/application_helper_spec.rb
704
782
  - spec/helpers/catalog_helper_spec.rb
705
783
  - spec/helpers/collections_helper_spec.rb
706
- - spec/helpers/component_helper_spec.rb
784
+ - spec/helpers/downloads_helper_spec.rb
707
785
  - spec/helpers/folders_helper_spec.rb
708
786
  - spec/helpers/image_viewer_helper_spec.rb
709
787
  - spec/helpers/institutions_helper_spec.rb
710
788
  - spec/helpers/ocr_search_helper_spec.rb
711
789
  - spec/helpers/pages_helper_spec.rb
790
+ - spec/helpers/range_limit_helper_spec.rb
791
+ - spec/helpers/search_history_constraints_helper_spec.rb
792
+ - spec/lib/commonwealth-vlr-engine/controller_override_spec.rb
712
793
  - spec/lib/commonwealth-vlr-engine/controller_spec.rb
713
794
  - spec/lib/commonwealth-vlr-engine/finder_spec.rb
714
795
  - spec/lib/commonwealth-vlr-engine/iiif_manifest_spec.rb
@@ -752,6 +833,7 @@ summary: Blacklight plugin for virtual local repositories from Digital Commonwea
752
833
  test_files:
753
834
  - spec/controllers/catalog_controller_spec.rb
754
835
  - spec/controllers/collections_controller_spec.rb
836
+ - spec/controllers/downloads_controller_spec.rb
755
837
  - spec/controllers/feedback_controller_spec.rb
756
838
  - spec/controllers/folder_items_actions_controller_spec.rb
757
839
  - spec/controllers/folder_items_controller_spec.rb
@@ -762,6 +844,7 @@ test_files:
762
844
  - spec/controllers/ocr_search_controller_spec.rb
763
845
  - spec/controllers/pages_controller_spec.rb
764
846
  - spec/controllers/users_controller_spec.rb
847
+ - spec/features/advanced_search_date_range_spec.rb
765
848
  - spec/features/catalog/_az_links_spec.rb
766
849
  - spec/features/catalog/_show_partials/_show_book_viewer_link_spec.rb
767
850
  - spec/features/catalog/_show_partials/_show_default_simple_img_viewer_spec.rb
@@ -769,6 +852,7 @@ test_files:
769
852
  - spec/features/catalog/_show_partials/_show_multi_img_spec.rb
770
853
  - spec/features/catalog/_show_partials/_show_volumes_spec.rb
771
854
  - spec/features/collections/index_spec.rb
855
+ - spec/features/collections/show_spec.rb
772
856
  - spec/features/feedback/show_spec.rb
773
857
  - spec/features/image_viewer/book_viewer_spec.rb
774
858
  - spec/features/institutions/index_spec.rb
@@ -780,12 +864,15 @@ test_files:
780
864
  - spec/helpers/application_helper_spec.rb
781
865
  - spec/helpers/catalog_helper_spec.rb
782
866
  - spec/helpers/collections_helper_spec.rb
783
- - spec/helpers/component_helper_spec.rb
867
+ - spec/helpers/downloads_helper_spec.rb
784
868
  - spec/helpers/folders_helper_spec.rb
785
869
  - spec/helpers/image_viewer_helper_spec.rb
786
870
  - spec/helpers/institutions_helper_spec.rb
787
871
  - spec/helpers/ocr_search_helper_spec.rb
788
872
  - spec/helpers/pages_helper_spec.rb
873
+ - spec/helpers/range_limit_helper_spec.rb
874
+ - spec/helpers/search_history_constraints_helper_spec.rb
875
+ - spec/lib/commonwealth-vlr-engine/controller_override_spec.rb
789
876
  - spec/lib/commonwealth-vlr-engine/controller_spec.rb
790
877
  - spec/lib/commonwealth-vlr-engine/finder_spec.rb
791
878
  - spec/lib/commonwealth-vlr-engine/iiif_manifest_spec.rb
@@ -1,22 +0,0 @@
1
- module CommonwealthVlrEngine
2
-
3
- module ComponentHelper
4
- include Blacklight::ComponentHelperBehavior
5
-
6
- # add extra tools to show view -- folders, social sharing, etc.
7
- def render_show_doc_actions(document=@document, options={})
8
- wrapping_class = options.delete(:documentFunctions) || options.delete(:wrapping_class) || 'documentFunctions'
9
- content = []
10
- #content << render(:partial => 'catalog/bookmark_control', :locals => {:document=> document}.merge(options)) if render_bookmarks_control?
11
-
12
- # social media:
13
- content << render(:partial => 'catalog/add_this')
14
- if has_user_authentication_provider? and current_or_guest_user
15
- content << render(:partial => 'catalog/folder_item_control', :locals => {:document => document})
16
- end
17
- content_tag('div', content.join("\n").html_safe, :class=> wrapping_class)
18
- end
19
-
20
- end
21
-
22
- end
@@ -1,42 +0,0 @@
1
- <%-
2
- # Compare with render_document_functions_partial helper, and
3
- # _document_functions partial. BL actually has two groups
4
- # of document-related tools. "document functions" by default
5
- # contains Bookmark functionality shown on both results and
6
- # item view. While "document tools" contains external export type
7
- # functions by default only on detail.
8
-
9
- -%>
10
- <div class="panel panel-default show-tools">
11
- <div class="panel-heading">
12
- <%= t('blacklight.tools.title') %>
13
- </div>
14
-
15
- <div class="panel-body">
16
- <ul class="nav">
17
- <li>
18
- <%= render_show_doc_actions @document %>
19
- </li>
20
- <% if @document.respond_to?( :to_email_text ) %>
21
- <li class="email">
22
- <%= link_to content_tag(:span, '', :class => 'glyphicon glyphicon-envelope') + ' ' + t('blacklight.tools.email'),
23
- email_solr_document_path(:id => @document),
24
- {:id => 'emailLink', :data => {:ajax_modal => 'trigger'}} %>
25
- </li>
26
- <%- end -%>
27
- <%# if (@document.respond_to?(:export_as_mla_citation_txt) || @document.respond_to?(:export_as_apa_citation_txt)) %>
28
- <li class="cite">
29
- <%= link_to content_tag(:span, '', :class => 'glyphicon glyphicon-list-alt') + ' ' + t('blacklight.tools.citation'),
30
- citation_solr_document_path(:id => @document),
31
- {:id => 'citeLink', :data => {:ajax_modal => 'trigger'}} %>
32
- </li>
33
- <%# end %>
34
-
35
- <%# if @document.respond_to?(:to_marc) %>
36
- <!-- <li class="librarian_view">
37
- <%# link_to t('blacklight.tools.librarian_view.link'), librarian_view_catalog_path(@document), {:id => 'librarianLink', :class => 'lightboxLink'} %>
38
- </li> -->
39
- <%# end %>
40
- </ul>
41
- </div>
42
- </div>