commonwealth-vlr-engine 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +91 -0
- data/.gitmodules +3 -0
- data/Gemfile +20 -0
- data/LICENSE +202 -0
- data/README.md +38 -0
- data/Rakefile +43 -0
- data/app/assets/images/commonwealth-vlr-engine/bplLoginButton.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/dc_audio-icon.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/dc_collection-icon.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/dc_image-icon.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/dc_institution-icon.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/dc_moving-image-icon.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/dc_text-icon.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/facebookLoginButton.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/loading-wdl-grid.gif +0 -0
- data/app/assets/images/commonwealth-vlr-engine/loading-wdl.gif +0 -0
- data/app/assets/images/commonwealth-vlr-engine/loading.gif +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/fullpage_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/fullpage_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/fullpage_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/fullpage_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/home_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/home_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/home_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/home_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/next_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/next_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/next_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/next_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/previous_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/previous_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/previous_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/previous_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateleft_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateleft_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateleft_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateleft_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateright_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateright_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateright_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/rotateright_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomin_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomin_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomin_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomin_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomout_grouphover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomout_hover.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomout_pressed.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/openseadragon/zoomout_rest.png +0 -0
- data/app/assets/images/commonwealth-vlr-engine/vlr_logo_img.png +0 -0
- data/app/assets/javascripts/blacklight_gallery.js +1 -0
- data/app/assets/javascripts/blacklight_google_analytics/blacklight_google_analytics.js.erb +165 -0
- data/app/assets/javascripts/bootstrap-accessibility-plugin/bootstrap-accessibility.js +586 -0
- data/app/assets/javascripts/commonwealth-vlr-engine.js +22 -0
- data/app/assets/javascripts/commonwealth-vlr-engine/collection_facets.js +5 -0
- data/app/assets/javascripts/commonwealth-vlr-engine/disable_dropdown_nav.js +21 -0
- data/app/assets/javascripts/commonwealth-vlr-engine/feedback_alerts.js.erb +19 -0
- data/app/assets/javascripts/commonwealth-vlr-engine/folder_tools.js +26 -0
- data/app/assets/javascripts/commonwealth-vlr-engine/multi_img_viewer.js.erb +20 -0
- data/app/assets/javascripts/commonwealth-vlr-engine/ocr_search_utils.js.erb +32 -0
- data/app/assets/javascripts/commonwealth-vlr-engine/volumes_list.js +5 -0
- data/app/assets/javascripts/openseadragon.js +2 -0
- data/app/assets/javascripts/respond/respond.min.js +6 -0
- data/app/assets/javascripts/wdl-viewer/fd-slider.js +1303 -0
- data/app/assets/javascripts/wdl-viewer/jquery-deparam.js +113 -0
- data/app/assets/javascripts/wdl-viewer/jquery.ba-throttle-debounce.min.js +9 -0
- data/app/assets/javascripts/wdl-viewer/jquery.hammer.min.js +7 -0
- data/app/assets/javascripts/wdl-viewer/modernizr-wdl.min.js +3 -0
- data/app/assets/javascripts/wdl-viewer/wdl-search.js +33 -0
- data/app/assets/javascripts/wdl-viewer/wdl-viewer_commonwealth.js +1147 -0
- data/app/assets/stylesheets/blacklight_advanced_search.css +5 -0
- data/app/assets/stylesheets/blacklight_gallery.css +1 -0
- data/app/assets/stylesheets/blacklight_maps.css +1 -0
- data/app/assets/stylesheets/bootstrap-accessibility-plugin/bootstrap-accessibility.css +105 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/advanced_search.scss +139 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/basic_search.scss +47 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/book_viewer.scss +576 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/carousel.scss +94 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/cmmnwlth_defaults.scss +45 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/cmmnwlth_shared.scss +75 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/collections.scss +563 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/commonwealth-vlr-engine.css +32 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/facets.scss +111 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/feedback.scss +10 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/folders.scss +276 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/footer.scss +47 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/header.scss +329 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/home.scss +269 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/index.scss +580 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/institutions.scss +246 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/pages.scss +31 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/search_inside.scss +172 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/searches.scss +55 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/show.scss +840 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/signin.scss +43 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/users.scss +18 -0
- data/app/assets/stylesheets/commonwealth-vlr-engine/vlr_dependencies.css +8 -0
- data/app/assets/stylesheets/ie_fixes.css +16 -0
- data/app/assets/stylesheets/openseadragon.css +1 -0
- data/app/assets/stylesheets/wdl-viewer/fd-slider.min.css +2 -0
- data/app/controllers/blacklight_advanced_search/advanced_controller.rb +66 -0
- data/app/controllers/bookmarks_controller.rb +38 -0
- data/app/controllers/collections_controller.rb +128 -0
- data/app/controllers/commonwealth_vlr_engine/application_controller.rb +8 -0
- data/app/controllers/feedback_controller.rb +39 -0
- data/app/controllers/folder_items_actions_controller.rb +72 -0
- data/app/controllers/folder_items_controller.rb +90 -0
- data/app/controllers/folders_controller.rb +132 -0
- data/app/controllers/iiif_manifest_controller.rb +74 -0
- data/app/controllers/image_viewer_controller.rb +34 -0
- data/app/controllers/institutions_controller.rb +62 -0
- data/app/controllers/ocr_search_controller.rb +78 -0
- data/app/controllers/pages_controller.rb +5 -0
- data/app/controllers/users/omniauth_callbacks_controller.rb +10 -0
- data/app/controllers/users/registrations_controller.rb +3 -0
- data/app/controllers/users/sessions_controller.rb +3 -0
- data/app/controllers/users_controller.rb +27 -0
- data/app/helpers/blacklight_maps_helper.rb +3 -0
- data/app/helpers/collections_helper.rb +3 -0
- data/app/helpers/commonwealth_vlr_engine/application_helper.rb +200 -0
- data/app/helpers/commonwealth_vlr_engine/blacklight_helper.rb +35 -0
- data/app/helpers/commonwealth_vlr_engine/blacklight_url_helper.rb +53 -0
- data/app/helpers/commonwealth_vlr_engine/catalog_helper.rb +414 -0
- data/app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb +19 -0
- data/app/helpers/commonwealth_vlr_engine/component_helper.rb +22 -0
- data/app/helpers/commonwealth_vlr_engine/facets_helper.rb +20 -0
- data/app/helpers/commonwealth_vlr_engine/feedback_helper_behavior.rb +14 -0
- data/app/helpers/commonwealth_vlr_engine/folders_helper_behavior.rb +9 -0
- data/app/helpers/commonwealth_vlr_engine/image_viewer_helper_behavior.rb +14 -0
- data/app/helpers/commonwealth_vlr_engine/institutions_helper_behavior.rb +31 -0
- data/app/helpers/commonwealth_vlr_engine/layout_helper.rb +22 -0
- data/app/helpers/commonwealth_vlr_engine/ocr_search_helper_behavior.rb +48 -0
- data/app/helpers/commonwealth_vlr_engine/pages_helper_behavior.rb +38 -0
- data/app/helpers/commonwealth_vlr_engine/vlr_blacklight_maps_helper_behavior.rb +59 -0
- data/app/helpers/feedback_helper.rb +3 -0
- data/app/helpers/folders_helper.rb +3 -0
- data/app/helpers/image_viewer_helper.rb +3 -0
- data/app/helpers/institutions_helper.rb +3 -0
- data/app/helpers/ocr_search_helper.rb +3 -0
- data/app/helpers/pages_helper.rb +3 -0
- data/app/mailers/notifier.rb +5 -0
- data/app/models/carousel_slide.rb +7 -0
- data/app/models/record_mailer.rb +18 -0
- data/app/models/user.rb +15 -0
- data/app/views/advanced/_advanced_search_date.html.erb +23 -0
- data/app/views/advanced/_advanced_search_facets.html.erb +5 -0
- data/app/views/advanced/_advanced_search_fields.html.erb +39 -0
- data/app/views/advanced/_advanced_search_form.html.erb +51 -0
- data/app/views/advanced/_advanced_search_help.html.erb +13 -0
- data/app/views/advanced/_facet_layout.html.erb +9 -0
- data/app/views/advanced/_facet_limit.html.erb +15 -0
- data/app/views/advanced/index.html.erb +29 -0
- data/app/views/blacklight_advanced_search/_facet_limit.html.erb +12 -0
- data/app/views/bookmarks/_tools.html.erb +25 -0
- data/app/views/bookmarks/index.html.erb +64 -0
- data/app/views/bookmarks/update.js.erb +1 -0
- data/app/views/bpluser/folders/_folder.html.erb +36 -0
- data/app/views/catalog/_add_this.html.erb +10 -0
- data/app/views/catalog/_az_links.html.erb +15 -0
- data/app/views/catalog/_basic_search.html.erb +67 -0
- data/app/views/catalog/_citation.html.erb +50 -0
- data/app/views/catalog/_constraints.html.erb +26 -0
- data/app/views/catalog/_document_collections_gallery.html.erb +7 -0
- data/app/views/catalog/_facet_limit_series.html.erb +21 -0
- data/app/views/catalog/_facets.html.erb +31 -0
- data/app/views/catalog/_facets_series.html.erb +4 -0
- data/app/views/catalog/_folder_item_control.html.erb +64 -0
- data/app/views/catalog/_index_collections_gallery.html.erb +12 -0
- data/app/views/catalog/_index_gallery.html.erb +11 -0
- data/app/views/catalog/_index_header_default.html.erb +22 -0
- data/app/views/catalog/_index_list_collection.html.erb +33 -0
- data/app/views/catalog/_index_list_default.html.erb +13 -0
- data/app/views/catalog/_index_map_institutions.html.erb +10 -0
- data/app/views/catalog/_index_masonry.html.erb +8 -0
- data/app/views/catalog/_index_slideshow.html.erb +18 -0
- data/app/views/catalog/_more_like_this.html.erb +9 -0
- data/app/views/catalog/_opengraph.html.erb +16 -0
- data/app/views/catalog/_previous_next_doc.html.erb +22 -0
- data/app/views/catalog/_results_pagination.html.erb +9 -0
- data/app/views/catalog/_search_form.html.erb +23 -0
- data/app/views/catalog/_search_header.html.erb +5 -0
- data/app/views/catalog/_show_default.html.erb +75 -0
- data/app/views/catalog/_show_main_content.html.erb +27 -0
- data/app/views/catalog/_show_more_like_this.html.erb +15 -0
- data/app/views/catalog/_show_partials/_show_book_viewer_link.html.erb +25 -0
- data/app/views/catalog/_show_partials/_show_default_img.html.erb +32 -0
- data/app/views/catalog/_show_partials/_show_default_metadata.html.erb +486 -0
- data/app/views/catalog/_show_partials/_show_default_simple_img_viewer.html.erb +45 -0
- data/app/views/catalog/_show_partials/_show_downloads.html.erb +14 -0
- data/app/views/catalog/_show_partials/_show_flagged_notice.html.erb +29 -0
- data/app/views/catalog/_show_partials/_show_multi_img.html.erb +42 -0
- data/app/views/catalog/_show_partials/_show_multi_img_pagination.html.erb +20 -0
- data/app/views/catalog/_show_partials/_show_oai_item_img.html.erb +5 -0
- data/app/views/catalog/_show_partials/_show_oai_item_link.html.erb +8 -0
- data/app/views/catalog/_show_partials/_show_prev_next_carousel_links.html.erb +17 -0
- data/app/views/catalog/_show_partials/_show_volumes.html.erb +52 -0
- data/app/views/catalog/_show_sidebar.html.erb +1 -0
- data/app/views/catalog/_show_tools.html.erb +42 -0
- data/app/views/catalog/_zero_results.html.erb +20 -0
- data/app/views/catalog/email.html.erb +6 -0
- data/app/views/catalog/index.html.erb +17 -0
- data/app/views/catalog/metadata_view.html.erb +7 -0
- data/app/views/catalog/show.html.erb +13 -0
- data/app/views/collections/_search_form_collection.html.erb +23 -0
- data/app/views/collections/index.html.erb +30 -0
- data/app/views/collections/show.html.erb +116 -0
- data/app/views/devise/confirmations/new.html.erb +14 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +13 -0
- data/app/views/devise/passwords/edit.html.erb +33 -0
- data/app/views/devise/passwords/new.html.erb +31 -0
- data/app/views/devise/registrations/edit.html.erb +83 -0
- data/app/views/devise/registrations/new.html.erb +53 -0
- data/app/views/devise/sessions/new.html.erb +75 -0
- data/app/views/devise/shared/_links.erb +29 -0
- data/app/views/feedback/complete.html.erb +9 -0
- data/app/views/feedback/show.html.erb +61 -0
- data/app/views/folder_items/create.js.erb +1 -0
- data/app/views/folder_items/destroy.js.erb +1 -0
- data/app/views/folder_items/item_actions.js.erb +2 -0
- data/app/views/folder_items/update.js.erb +1 -0
- data/app/views/folders/_in_folder.html.erb +2 -0
- data/app/views/folders/_new_edit_form_fields.html.erb +36 -0
- data/app/views/folders/edit.html.erb +25 -0
- data/app/views/folders/index.html.erb +73 -0
- data/app/views/folders/new.html.erb +27 -0
- data/app/views/folders/public_list.html.erb +44 -0
- data/app/views/folders/show.html.erb +98 -0
- data/app/views/image_viewer/_book_viewer_help.html.erb +125 -0
- data/app/views/image_viewer/_render_book_viewer.html.erb +185 -0
- data/app/views/image_viewer/book_viewer.html.erb +57 -0
- data/app/views/image_viewer/show.js.erb +19 -0
- data/app/views/institutions/_intro_text.html.erb +1 -0
- data/app/views/institutions/_map_institutions_search.html.erb +9 -0
- data/app/views/institutions/_search_form_institution.html.erb +24 -0
- data/app/views/institutions/index.html.erb +31 -0
- data/app/views/institutions/show.html.erb +104 -0
- data/app/views/layouts/_google_analytics.html.erb +9 -0
- data/app/views/layouts/book_viewer.html.erb +37 -0
- data/app/views/layouts/commonwealth-vlr-engine.html.erb +59 -0
- data/app/views/notifier/feedback.text.erb +6 -0
- data/app/views/ocr_search/_index_ocr_list.html.erb +17 -0
- data/app/views/ocr_search/_search_form_ocr.html.erb +23 -0
- data/app/views/ocr_search/_snippets_more.html.erb +15 -0
- data/app/views/ocr_search/_zero_results_ocr.html.erb +9 -0
- data/app/views/ocr_search/index.html.erb +49 -0
- data/app/views/pages/_carousel.html.erb +46 -0
- data/app/views/pages/_home_partials/_banner.html.erb +23 -0
- data/app/views/pages/_home_partials/_browse.html.erb +55 -0
- data/app/views/pages/_home_partials/_context.html.erb +24 -0
- data/app/views/pages/_home_partials/_home_content.html.erb +14 -0
- data/app/views/pages/about.html.erb +10 -0
- data/app/views/pages/about_site.html.erb +6 -0
- data/app/views/pages/explore.html.erb +32 -0
- data/app/views/pages/home.html.erb +3 -0
- data/app/views/record_mailer/email_record.text.erb +7 -0
- data/app/views/saved_searches/index.html.erb +60 -0
- data/app/views/search_history/index.html.erb +59 -0
- data/app/views/shared/_error_messages.html.erb +9 -0
- data/app/views/shared/_flash_msg_maintenance.html.erb +6 -0
- data/app/views/shared/_folder_item_actions.html.erb +66 -0
- data/app/views/shared/_folder_tools.html.erb +4 -0
- data/app/views/shared/_footer.html.erb +14 -0
- data/app/views/shared/_header_navbar.html.erb +34 -0
- data/app/views/shared/_nav_links.html.erb +58 -0
- data/app/views/shared/_search_form_header.html.erb +16 -0
- data/app/views/shared/_tools.html.erb +14 -0
- data/app/views/shared/_user_util_links.html.erb +43 -0
- data/app/views/users/show.html.erb +33 -0
- data/commonwealth-vlr-engine.gemspec +47 -0
- data/config/initializers/patch_blacklight_advanced_search.rb +74 -0
- data/config/initializers/patch_blacklight_maps.rb +20 -0
- data/config/jetty.yml +7 -0
- data/config/locales/commonwealth-vlr-engine.en.yml +463 -0
- data/config/routes.rb +92 -0
- data/lib/commonwealth-vlr-engine.rb +55 -0
- data/lib/commonwealth-vlr-engine/commonwealth_search_builder.rb +66 -0
- data/lib/commonwealth-vlr-engine/controller.rb +69 -0
- data/lib/commonwealth-vlr-engine/controller_override.rb +238 -0
- data/lib/commonwealth-vlr-engine/engine.rb +40 -0
- data/lib/commonwealth-vlr-engine/finder.rb +285 -0
- data/lib/commonwealth-vlr-engine/iiif_manifest.rb +189 -0
- data/lib/commonwealth-vlr-engine/notifier.rb +33 -0
- data/lib/commonwealth-vlr-engine/pages.rb +33 -0
- data/lib/commonwealth-vlr-engine/render_constraints_override.rb +57 -0
- data/lib/commonwealth-vlr-engine/route_sets.rb +49 -0
- data/lib/commonwealth-vlr-engine/routes.rb +21 -0
- data/lib/commonwealth-vlr-engine/version.rb +3 -0
- data/lib/generators/commonwealth_vlr_engine/controller_generator.rb +92 -0
- data/lib/generators/commonwealth_vlr_engine/environment_generator.rb +49 -0
- data/lib/generators/commonwealth_vlr_engine/install_generator.rb +57 -0
- data/lib/generators/commonwealth_vlr_engine/localassets_generator.rb +29 -0
- data/lib/generators/commonwealth_vlr_engine/model_generator.rb +65 -0
- data/lib/generators/commonwealth_vlr_engine/routes_generator.rb +39 -0
- data/lib/generators/commonwealth_vlr_engine/templates/commonwealth_vlr_engine.css.scss +4 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/contact_emails.yml.sample +13 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/fedora.yml.sample +6 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/geojson_static_file.yml.sample +11 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/google_analytics.yml.sample +10 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/iiif_server.yml.sample +10 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/initializers/a_load_commonwealth_vlr_configs.rb +14 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/initializers/devise.rb +269 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/initializers/secret_token.rb +8 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/locales/blacklight.en.yml +44 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/locales/devise.en.yml +12 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/omniauth-facebook.yml.sample +14 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/omniauth-polaris.yml.sample +20 -0
- data/lib/generators/commonwealth_vlr_engine/templates/config/vlr.yml +13 -0
- data/lib/generators/commonwealth_vlr_engine/yml_generator.rb +29 -0
- data/lib/railties/commonwealth_vlr_engine.rake +6 -0
- data/solr_conf/conf/schema.xml +476 -0
- data/solr_conf/conf/solrconfig.xml +286 -0
- data/spec/controllers/catalog_controller_spec.rb +67 -0
- data/spec/controllers/collections_controller_spec.rb +127 -0
- data/spec/controllers/feedback_controller_spec.rb +51 -0
- data/spec/controllers/folder_items_actions_controller_spec.rb +99 -0
- data/spec/controllers/folder_items_controller_spec.rb +90 -0
- data/spec/controllers/folders_controller_spec.rb +368 -0
- data/spec/controllers/iiif_manifest_controller_spec.rb +85 -0
- data/spec/controllers/image_viewer_controller_spec.rb +50 -0
- data/spec/controllers/institutions_controller_spec.rb +64 -0
- data/spec/controllers/ocr_search_controller_spec.rb +71 -0
- data/spec/controllers/pages_controller_spec.rb +58 -0
- data/spec/controllers/users_controller_spec.rb +62 -0
- data/spec/features/catalog/_az_links_spec.rb +27 -0
- data/spec/features/catalog/_show_partials/_show_book_viewer_link_spec.rb +47 -0
- data/spec/features/catalog/_show_partials/_show_default_simple_img_viewer_spec.rb +19 -0
- data/spec/features/catalog/_show_partials/_show_flagged_notice_spec.rb +23 -0
- data/spec/features/catalog/_show_partials/_show_multi_img_spec.rb +18 -0
- data/spec/features/catalog/_show_partials/_show_volumes_spec.rb +24 -0
- data/spec/features/collections/index_spec.rb +35 -0
- data/spec/features/feedback/show_spec.rb +47 -0
- data/spec/features/image_viewer/book_viewer_spec.rb +67 -0
- data/spec/features/institutions/index_spec.rb +31 -0
- data/spec/features/institutions/map_view_spec.rb +37 -0
- data/spec/features/more_like_this_search_spec.rb +23 -0
- data/spec/features/ocr_search/index_spec.rb +89 -0
- data/spec/fixtures/sample_rss_feed.xml +56 -0
- data/spec/fixtures/sample_solr_documents.yml +2748 -0
- data/spec/helpers/application_helper_spec.rb +114 -0
- data/spec/helpers/catalog_helper_spec.rb +386 -0
- data/spec/helpers/collections_helper_spec.rb +28 -0
- data/spec/helpers/component_helper_spec.rb +34 -0
- data/spec/helpers/folders_helper_spec.rb +31 -0
- data/spec/helpers/image_viewer_helper_spec.rb +15 -0
- data/spec/helpers/institutions_helper_spec.rb +53 -0
- data/spec/helpers/ocr_search_helper_spec.rb +70 -0
- data/spec/helpers/pages_helper_spec.rb +21 -0
- data/spec/lib/commonwealth-vlr-engine/commonwealth_search_builder_spec.rb +101 -0
- data/spec/lib/commonwealth-vlr-engine/controller_override_spec.rb +41 -0
- data/spec/lib/commonwealth-vlr-engine/controller_spec.rb +33 -0
- data/spec/lib/commonwealth-vlr-engine/finder_spec.rb +140 -0
- data/spec/lib/commonwealth-vlr-engine/iiif_manifest_spec.rb +157 -0
- data/spec/lib/commonwealth-vlr-engine/render_constraints_override_spec.rb +97 -0
- data/spec/mailers/notifier_spec.rb +31 -0
- data/spec/models/carousel_slide_spec.rb +38 -0
- data/spec/spec_helper.rb +40 -0
- data/spec/tasks/vlr_engine_rake_spec.rb +28 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +23 -0
- data/tasks/vlr_engine.rake +46 -0
- metadata +788 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
<%= form_tag catalog_index_path, :id => 'advanced_search_form', :class => 'advanced form-horizontal', :method => :get do %>
|
2
|
+
<%# search_as_hidden_fields(:params => advanced_search_context,
|
3
|
+
:op => 'AND' ) %>
|
4
|
+
<div class="row">
|
5
|
+
|
6
|
+
<div class="col-sm-8">
|
7
|
+
|
8
|
+
<div id="advanced_search_fields" class="input_columns">
|
9
|
+
<p>Enter search terms in the fields below.</p>
|
10
|
+
<%= render 'advanced/advanced_search_fields' %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div id="advanced_search_limits" class="well">
|
14
|
+
<h4><%= t('blacklight.advanced_search.limit') %></h4>
|
15
|
+
|
16
|
+
<%= render 'advanced/advanced_search_date' %>
|
17
|
+
|
18
|
+
<%= render 'advanced/advanced_search_facets' %>
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="sort_submit_buttons">
|
23
|
+
<div class="pull-left">
|
24
|
+
<%# label_tag(:sort, "Sort results by") %>
|
25
|
+
<%# select_tag(:sort, options_for_select(sort_fields, h(params[:sort]))) %>
|
26
|
+
<%= hidden_field_tag(:search_field, blacklight_config.advanced_search[:url_key]) %>
|
27
|
+
</div>
|
28
|
+
<div class="pull-right">
|
29
|
+
<%= submit_tag 'Search', :class=>'btn btn-primary advanced_submit' %>
|
30
|
+
<%= link_to 'Start over',
|
31
|
+
{:controller => 'advanced', :action => 'index'},
|
32
|
+
:class => 'reset btn btn-default' %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="col-sm-4">
|
39
|
+
<%= render 'advanced/advanced_search_help' %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<% unless (search_context_str = render_search_to_s( advanced_search_context)).blank? %>
|
43
|
+
<div class="constraints">
|
44
|
+
<h4>Within search:</h4>
|
45
|
+
<%= search_context_str %>
|
46
|
+
</div>
|
47
|
+
<% end %>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
|
51
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div id="advanced_search_help">
|
2
|
+
<h5>Advanced Search tips:</h5>
|
3
|
+
<ul class="advanced_help">
|
4
|
+
<li>Use quotation marks to search as a phrase.
|
5
|
+
<li>Use "+" before a term to make it required.</li>
|
6
|
+
<li>Use "-" before a word or phrase to exclude it.</li>
|
7
|
+
<li>Use "OR", "AND", and "NOT" within a search field to create complex boolean logic. You can also use parentheses.</li>
|
8
|
+
<li>Truncation and wildcards are not supported (word-stemming is done automatically).</li>
|
9
|
+
<li>For an open-ended date range limit (e.g. before 1850, after 1900, etc.) leave either the 'Start' or 'End' field blank in the 'Year' section.</li>
|
10
|
+
<li>If a date range is entered in the form in the 'Year' section, undated items will not be included in the search results.</li>
|
11
|
+
<li>If no boxes are checked in the 'Format' or 'Institution' limit, all values will be included.</li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<div class="form-group facet_item blacklight-<%= facet_field.field.parameterize %>">
|
2
|
+
<label class="control-label col-sm-2"><%= facet_field.label %></label>
|
3
|
+
<div class="col-sm-8 facet_scrollbox_wrapper well">
|
4
|
+
<div class="facet_limit_scrollbox col-sm-12">
|
5
|
+
<%= yield %>
|
6
|
+
</div>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<ul class="facet-values list-unstyled blacklight-advanced-facet-select">
|
2
|
+
<% display_facet.items.each do |item| -%>
|
3
|
+
<li>
|
4
|
+
<span class="facet-checkbox">
|
5
|
+
<%= check_box_tag "f_inclusive[#{solr_field}][]", item.value.to_sym, facet_value_checked?(solr_field, item.value), :id => "f_inclusive_#{solr_field}_#{item.value.parameterize}"%>
|
6
|
+
</span>
|
7
|
+
|
8
|
+
<span class="label-and-count">
|
9
|
+
<%= label_tag "f_inclusive_#{solr_field}_#{item.value.parameterize}" do %>
|
10
|
+
<%= render_facet_value(solr_field, item, :suppress_link => true) %>
|
11
|
+
<% end %>
|
12
|
+
</span>
|
13
|
+
</li>
|
14
|
+
<% end %>
|
15
|
+
</ul>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<% @page_title = t('blacklight.advanced_search.title', :application_name => application_name) %>
|
2
|
+
<!--
|
3
|
+
<script type="text/javascript">
|
4
|
+
$(document).ready(function(){$("form.advanced input:first").focus();});
|
5
|
+
</script>
|
6
|
+
-->
|
7
|
+
|
8
|
+
<div id="content" class="col-sm-12 advanced-search-form">
|
9
|
+
|
10
|
+
<h2><%= t('blacklight.advanced_search.page_title') %></h2>
|
11
|
+
|
12
|
+
<ul id="search_mode_tabs" class="nav nav-tabs">
|
13
|
+
<li>
|
14
|
+
<%= link_to 'Basic', catalog_index_path %>
|
15
|
+
</li>
|
16
|
+
<li class="active"><a href="#">Advanced</a></li>
|
17
|
+
</ul>
|
18
|
+
|
19
|
+
<div class="tab-content">
|
20
|
+
|
21
|
+
<div class="tab-pane active" id="advanced_search_wrapper">
|
22
|
+
|
23
|
+
<%= render 'advanced_search_form' %>
|
24
|
+
|
25
|
+
</div>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="advanced_facet_limit">
|
2
|
+
<div class="inclusive_or">
|
3
|
+
<h4>Any of:</h4>
|
4
|
+
<ul>
|
5
|
+
<% advanced_query.filters[solr_field].each do |value| %>
|
6
|
+
<li><span class="selected"><%= h(value) %></span> <%= link_to(content_tag(:span, '', :class => 'glyphicon glyphicon-remove') + content_tag(:span, '[remove]', :class => 'sr-only'), remove_advanced_facet_param(solr_field, value, params), :class => 'remove') %></li>
|
7
|
+
<% end %>
|
8
|
+
</ul>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<%= render_facet_limit display_facet, :layout => nil, :partial => advanced_search_facet_partial_name(display_facet) %>
|
12
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<ul class="bookmarkTools nav nav-pills">
|
2
|
+
<li class="cite">
|
3
|
+
<%= link_to t('blacklight.tools.citation'),
|
4
|
+
citation_catalog_path(:sort=>params[:sort],
|
5
|
+
:per_page=>params[:per_page],
|
6
|
+
:id => @response.documents.map {|doc| doc.id}),
|
7
|
+
{:id => 'citeLink', :name => 'citation', :class => 'btn btn-default', :data => {:ajax_modal => 'trigger'}} %>
|
8
|
+
</li>
|
9
|
+
<li class="email">
|
10
|
+
<%= link_to t('blacklight.tools.email'),
|
11
|
+
email_catalog_path(:sort=>params[:sort],
|
12
|
+
:per_page=>params[:per_page],
|
13
|
+
:id => @response.documents.map {|doc| doc.id}),
|
14
|
+
:class => 'lightboxLink btn btn-default',
|
15
|
+
:id => 'emailLink',
|
16
|
+
:data => {:ajax_modal => 'trigger'} %>
|
17
|
+
</li>
|
18
|
+
<li>
|
19
|
+
<%= link_to t('blacklight.bookmarks.clear.action_title'),
|
20
|
+
clear_bookmarks_path,
|
21
|
+
:method => :delete,
|
22
|
+
:data => { :confirm => t('blacklight.bookmarks.clear.action_confirm') },
|
23
|
+
:class => 'btn btn-default' %>
|
24
|
+
</li>
|
25
|
+
</ul>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<% @page_title = t('blacklight.bookmarks.title') + ' - ' + application_name %>
|
2
|
+
|
3
|
+
<%= javascript_include_tag 'commonwealth-vlr-engine/folder_tools' %>
|
4
|
+
|
5
|
+
<div id="content" class="folder_show_container col-sm-9">
|
6
|
+
|
7
|
+
<div id="breadcrumb">
|
8
|
+
<ul class="breadcrumb">
|
9
|
+
<% if current_user %>
|
10
|
+
<li>
|
11
|
+
<%= link_to(t('blacklight.users.account_heading'), current_user) %>
|
12
|
+
<span class="divider"><%= t('blacklight.breadcrumb.separator') %></span>
|
13
|
+
</li>
|
14
|
+
<% end %>
|
15
|
+
<li>
|
16
|
+
<%= link_to(t('blacklight.folders.list_title'), folders_path) %>
|
17
|
+
<span class="divider"><%= t('blacklight.breadcrumb.separator') %></span>
|
18
|
+
</li>
|
19
|
+
<li class="active">
|
20
|
+
<%= t('blacklight.bookmarks.title') %>
|
21
|
+
</li>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<h2><%= t('blacklight.bookmarks.title') %>
|
26
|
+
<% unless !current_or_guest_user || @document_list.blank? %>
|
27
|
+
<small id="folder_tools">
|
28
|
+
<%# link_to(content_tag(:span,'',:class=>'glyphicon glyphicon-remove') + ' ' + t('blacklight.folder_items.clear.action'),
|
29
|
+
clear_bookmarks_path,
|
30
|
+
:id => 'remove_all_link',
|
31
|
+
:class => 'btn btn-default btn-sm',
|
32
|
+
:method => :delete,
|
33
|
+
:data => { :confirm => t('blacklight.folder_items.clear.confirm') }) %>
|
34
|
+
</small>
|
35
|
+
<% end %>
|
36
|
+
</h2>
|
37
|
+
|
38
|
+
<div id="folder_description">
|
39
|
+
<%= t('blacklight.bookmarks.description') %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<%- if current_or_guest_user.blank? -%>
|
43
|
+
<div id="empty_folder" class="well">
|
44
|
+
<h5><%= t('blacklight.bookmarks.need_login') %></h5>
|
45
|
+
</div>
|
46
|
+
<%- elsif @document_list.blank? -%>
|
47
|
+
<div id="empty_folder" class="well">
|
48
|
+
<h4><%= t('blacklight.bookmarks.no_bookmarks') %></h4>
|
49
|
+
<p><%= t('blacklight.folders.help.add_items') %></p>
|
50
|
+
</div>
|
51
|
+
<% else %>
|
52
|
+
|
53
|
+
<%= render 'sort_and_per_page' %>
|
54
|
+
|
55
|
+
<%= form_tag selected_bookmarks_actions_path, :method => :put, :id => "item_actions_form" do %>
|
56
|
+
|
57
|
+
<%= render :partial => 'shared/folder_item_actions' %>
|
58
|
+
|
59
|
+
<%= render_document_index %>
|
60
|
+
|
61
|
+
<% end %>
|
62
|
+
<%= render 'results_pagination' %>
|
63
|
+
<% end %>
|
64
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
$('#folder_item_toggle').replaceWith("<%= escape_javascript(render(:partial => 'folders/in_folder')) %>")
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<li class="folders_index_list_item">
|
2
|
+
<h4>
|
3
|
+
<%= link_to folder.title, folder, :class => "folder_title" %>
|
4
|
+
<small class="folder_visibility">
|
5
|
+
<% if folder.visibility == 'public' %>
|
6
|
+
<%= content_tag(:span, '', :class => 'glyphicon glyphicon-eye-open') %>
|
7
|
+
<span class="visibility_public"><%= folder.visibility %></span>
|
8
|
+
<% else %>
|
9
|
+
<%= content_tag(:span, '', :class => 'glyphicon glyphicon-lock') %>
|
10
|
+
<span class="visibility_private"><%= folder.visibility %></span>
|
11
|
+
<% end %>
|
12
|
+
</small>
|
13
|
+
</h4>
|
14
|
+
<% if current_user %>
|
15
|
+
<!--
|
16
|
+
<div class="delete_folder">
|
17
|
+
<%# link_to content_tag(:span, '',:class => 'glyphicon glyphicon-remove'),
|
18
|
+
folder,
|
19
|
+
:method => :delete,
|
20
|
+
:data => { :confirm => t('blacklight.folders.delete.confirm') },
|
21
|
+
:title => "delete this folder" %>
|
22
|
+
</div>
|
23
|
+
-->
|
24
|
+
<% end %>
|
25
|
+
<div class="folder_status">
|
26
|
+
<span class="folder_item_count">
|
27
|
+
<%= pluralize(folder.folder_items.length.to_s,'item') %>
|
28
|
+
</span>
|
29
|
+
<span class="folder_updated_at">
|
30
|
+
updated <%= time_ago_in_words(folder.updated_at) %> ago
|
31
|
+
</span>
|
32
|
+
</div>
|
33
|
+
<% if folder.description %>
|
34
|
+
<%= folder.description %>
|
35
|
+
<% end %>
|
36
|
+
</li>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<!-- AddThis Button BEGIN -->
|
2
|
+
<div id="social_media_links" class="addthis_toolbox addthis_default_style addthis_32x32_style">
|
3
|
+
<a class="addthis_button_facebook" style="cursor:pointer"></a>
|
4
|
+
<a class="addthis_button_twitter" style="cursor:pointer"></a>
|
5
|
+
<!-- <a class="addthis_button_google_plusone_badge" style="cursor:pointer"></a> -->
|
6
|
+
<a class="addthis_button_pinterest_share" style="cursor:pointer"></a>
|
7
|
+
<a class="addthis_button_compact"></a>
|
8
|
+
</div>
|
9
|
+
<script type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=xa-505226a67a68dc99"></script>
|
10
|
+
<!-- AddThis Button END -->
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div class="item_az_links well well-sm">
|
2
|
+
<%= content_tag(:span,
|
3
|
+
az_label,
|
4
|
+
:class => 'az_label') %>
|
5
|
+
<%= link_to 'All', send(az_link_path), :class => 'az_link' %>
|
6
|
+
<% ('A'..'Z').each do |letter| %>
|
7
|
+
<% if az_exclude.include? letter %>
|
8
|
+
<%= content_tag(:span, letter, :class => 'az_nolink') %>
|
9
|
+
<% elsif params[:q] && params[:q].match(/ssort:#{letter}\*/) %>
|
10
|
+
<%= content_tag(:span, letter, :class => 'az_active') %>
|
11
|
+
<% else %>
|
12
|
+
<%= link_to_az_value(letter, 'title_info_primary_ssort', az_link_path, 'az_link') %>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<% @page_title = t('blacklight.advanced_search.title', :application_name => application_name) %>
|
2
|
+
|
3
|
+
<div id="content" class="col-sm-12 basic-search">
|
4
|
+
<h2><%= t('blacklight.advanced_search.page_title') %></h2>
|
5
|
+
|
6
|
+
<ul id="search_mode_tabs" class="nav nav-tabs">
|
7
|
+
<li class="active"><a href="#">Basic</a></li>
|
8
|
+
<li class="hidden-xs"><%= link_to 'Advanced', advanced_search_path %></li>
|
9
|
+
</ul>
|
10
|
+
|
11
|
+
<div class="tab-content">
|
12
|
+
|
13
|
+
<div class="tab-pane active" id="basic_search">
|
14
|
+
|
15
|
+
<div class="row">
|
16
|
+
|
17
|
+
<div class="col-sm-9">
|
18
|
+
|
19
|
+
<div id="basic_search_wrapper" class="well">
|
20
|
+
|
21
|
+
<%= form_tag search_action_url,
|
22
|
+
:method => :get,
|
23
|
+
:id => 'basic_search_form',
|
24
|
+
:class => 'basic-search-form form-inline' do %>
|
25
|
+
<%= render_hash_as_hidden_fields(params_for_search().except(:q, :qt, :page, :f, :sort)) %>
|
26
|
+
<label for="q_basic" class="sr-only">
|
27
|
+
<%= t('blacklight.search.form.search.label') %>
|
28
|
+
</label>
|
29
|
+
<%= text_field_tag :q,
|
30
|
+
nil,
|
31
|
+
:placeholder => t('blacklight.search.basic_search.form.q'),
|
32
|
+
:class => 'search_q q form-control',
|
33
|
+
:id => 'q_basic',
|
34
|
+
:autofocus => should_autofocus_on_search_box? %>
|
35
|
+
|
36
|
+
<% unless search_fields.empty? %>
|
37
|
+
<label for="search_field" class="sr-only">
|
38
|
+
<%= t('blacklight.search.basic_search.form.select') %>
|
39
|
+
</label>
|
40
|
+
<%= select_tag(:search_field,
|
41
|
+
options_for_select(search_fields,
|
42
|
+
h(params[:search_field])),
|
43
|
+
:title => t('blacklight.search.basic_search.form.search_indexes'),
|
44
|
+
:id => 'basic_search_indexes',
|
45
|
+
:class=> 'btn btn-default search_index_select') %>
|
46
|
+
<% end %>
|
47
|
+
|
48
|
+
<button type="submit" class="btn btn-primary search-btn" id="search">
|
49
|
+
<span class="submit-search-text">
|
50
|
+
<%=t('blacklight.search.form.submit')%>
|
51
|
+
</span>
|
52
|
+
<span class="glyphicon glyphicon-search glyphicon-white"></span>
|
53
|
+
</button>
|
54
|
+
|
55
|
+
<% end %>
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
</div>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<h4><%= t('blacklight.citation.chicago') %></h4>
|
2
|
+
|
3
|
+
<% @documents.each do |document| %>
|
4
|
+
|
5
|
+
<div class="citation-content">
|
6
|
+
<p>
|
7
|
+
<%# TODO: If there is a preferred citation note, render it here %>
|
8
|
+
|
9
|
+
<% if document[:name_personal_tsim] || document[:name_corporate_tsim] %>
|
10
|
+
<% names = [] %>
|
11
|
+
<% if document[:name_personal_tsim] %>
|
12
|
+
<% pers_names = [] %>
|
13
|
+
<% document[:name_personal_tsim].each do |pers_name| %>
|
14
|
+
<% pers_names << pers_name.gsub(/, \d.*/,'') %>
|
15
|
+
<% end %>
|
16
|
+
<% names.concat(pers_names) %>
|
17
|
+
<% end %>
|
18
|
+
<% names.concat(document[:name_corporate_tsim]) if document[:name_corporate_tsim] %>
|
19
|
+
<%# if multiple creators, put ', ' between each, but ', and ' before last one %>
|
20
|
+
<% if names.length > 1 %>
|
21
|
+
<% 0.upto names.length-1 do |index| %>
|
22
|
+
<% if index == names.length-1 %>
|
23
|
+
and <%= names[index] %>.
|
24
|
+
<% else %>
|
25
|
+
<%= names[index] %>,
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
<% else %>
|
29
|
+
<%= names.first %>.
|
30
|
+
<% end %>
|
31
|
+
<% end %>
|
32
|
+
<% if document[blacklight_config.index.title_field.to_sym] %>
|
33
|
+
"<%= document[blacklight_config.index.title_field.to_sym] %>."
|
34
|
+
<% end %>
|
35
|
+
<% if document[:genre_basic_ssim] %>
|
36
|
+
<%= document[:genre_basic_ssim].first.gsub(/s\z/,'') %>.
|
37
|
+
<% end %>
|
38
|
+
<%# if date, add it here, period+space at end %>
|
39
|
+
<% if document[:date_start_dtsi] %>
|
40
|
+
<%= Time.new(document[:date_start_dtsi]).year %>.
|
41
|
+
<% end %>
|
42
|
+
<em><%= t('blacklight.application_name') %></em>,
|
43
|
+
<% if document[:identifier_uri_ss] %>
|
44
|
+
<%= document[:identifier_uri_ss] %>
|
45
|
+
<% end %>
|
46
|
+
(accessed <%= Date.today.strftime('%B %d, %Y') %>).
|
47
|
+
</p>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<% end %>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<% if query_has_constraints? %>
|
2
|
+
<div id="appliedParams" class="clearfix constraints-container">
|
3
|
+
<div class="pull-right">
|
4
|
+
<ul id="constraintsLinks" class="list-inline">
|
5
|
+
<li>
|
6
|
+
<%= link_to t('blacklight.search.start_over'),
|
7
|
+
start_over_path,
|
8
|
+
:class => 'catalog_startOverLink btn btn-sm btn-default',
|
9
|
+
:id=> 'startOverLink' %>
|
10
|
+
</li>
|
11
|
+
<% if current_user %>
|
12
|
+
<li>
|
13
|
+
<%= link_to t('blacklight.saved_searches.save'),
|
14
|
+
save_search_path( session[:history].first ),
|
15
|
+
:method => :put,
|
16
|
+
:id=>'saveSearchLink',
|
17
|
+
:class=>'catalog_saveSearchLink btn btn-sm btn-default' %>
|
18
|
+
</li>
|
19
|
+
<% end %>
|
20
|
+
</ul>
|
21
|
+
</div>
|
22
|
+
<span class="constraints-label"><%= t('blacklight.search.filters.title') %></span>
|
23
|
+
<%= render_constraints(params) %>
|
24
|
+
<%= render :partial => 'did_you_mean' %>
|
25
|
+
</div>
|
26
|
+
<% end %>
|