blacklight-hierarchy 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +13 -0
- data/Gemfile +35 -0
- data/LICENSE +13 -0
- data/README.md +5 -5
- data/app/helpers/blacklight/hierarchy_helper.rb +17 -6
- data/blacklight-hierarchy.gemspec +31 -0
- data/lib/blacklight/hierarchy/engine.rb +2 -1
- data/lib/blacklight/hierarchy/version.rb +1 -1
- data/spec/features/basic_spec.rb +4 -5
- data/spec/spec_helper.rb +4 -8
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -2
- metadata +48 -450
- data/MIT-LICENSE +0 -20
- data/spec/internal/Gemfile +0 -47
- data/spec/internal/Gemfile.lock +0 -188
- data/spec/internal/README.rdoc +0 -28
- data/spec/internal/Rakefile +0 -6
- data/spec/internal/app/assets/javascripts/application.js +0 -19
- data/spec/internal/app/assets/javascripts/blacklight_hierarchy.js +0 -1
- data/spec/internal/app/assets/stylesheets/application.css +0 -15
- data/spec/internal/app/assets/stylesheets/blacklight.css.scss +0 -5
- data/spec/internal/app/assets/stylesheets/blacklight_hierarchy.css.scss +0 -3
- data/spec/internal/app/controllers/application_controller.rb +0 -9
- data/spec/internal/app/controllers/catalog_controller.rb +0 -181
- data/spec/internal/app/helpers/application_helper.rb +0 -2
- data/spec/internal/app/models/search_builder.rb +0 -3
- data/spec/internal/app/models/solr_document.rb +0 -21
- data/spec/internal/app/views/layouts/application.html.erb +0 -14
- data/spec/internal/bin/bundle +0 -3
- data/spec/internal/bin/rails +0 -4
- data/spec/internal/bin/rake +0 -4
- data/spec/internal/bin/setup +0 -29
- data/spec/internal/config.ru +0 -4
- data/spec/internal/config/application.rb +0 -26
- data/spec/internal/config/blacklight.yml +0 -21
- data/spec/internal/config/boot.rb +0 -3
- data/spec/internal/config/database.yml +0 -25
- data/spec/internal/config/environment.rb +0 -5
- data/spec/internal/config/environments/development.rb +0 -41
- data/spec/internal/config/environments/production.rb +0 -79
- data/spec/internal/config/environments/test.rb +0 -42
- data/spec/internal/config/initializers/assets.rb +0 -11
- data/spec/internal/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/internal/config/initializers/blacklight_initializer.rb +0 -7
- data/spec/internal/config/initializers/cookies_serializer.rb +0 -3
- data/spec/internal/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/internal/config/initializers/inflections.rb +0 -16
- data/spec/internal/config/initializers/mime_types.rb +0 -4
- data/spec/internal/config/initializers/session_store.rb +0 -3
- data/spec/internal/config/initializers/wrap_parameters.rb +0 -14
- data/spec/internal/config/locales/blacklight.en.yml +0 -3
- data/spec/internal/config/locales/en.yml +0 -23
- data/spec/internal/config/routes.rb +0 -58
- data/spec/internal/config/secrets.yml +0 -22
- data/spec/internal/db/development.sqlite3 +0 -0
- data/spec/internal/db/migrate/20150401202514_create_searches.blacklight.rb +0 -19
- data/spec/internal/db/migrate/20150401202515_create_bookmarks.blacklight.rb +0 -18
- data/spec/internal/db/migrate/20150401202516_add_polymorphic_type_to_bookmarks.blacklight.rb +0 -9
- data/spec/internal/db/schema.rb +0 -38
- data/spec/internal/db/seeds.rb +0 -7
- data/spec/internal/db/test.sqlite3 +0 -0
- data/spec/internal/lib/generators/test_app_generator.rb +0 -28
- data/spec/internal/log/development.log +0 -51
- data/spec/internal/log/test.log +0 -106
- data/spec/internal/public/404.html +0 -67
- data/spec/internal/public/422.html +0 -67
- data/spec/internal/public/500.html +0 -66
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/internal/public/robots.txt +0 -5
- data/spec/internal/test/test_helper.rb +0 -10
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_alerts.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_badges.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_breadcrumbs.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_button-groups.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_buttons.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_carousel.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_close.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_code.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_component-animations.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_dropdowns.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_forms.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_glyphicons.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_grid.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_input-groups.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_jumbotron.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_labels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_list-group.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_media.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_mixins.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_modals.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_navbar.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_navs.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_normalize.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_pager.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_pagination.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_panels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_popovers.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_print.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_progress-bars.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_responsive-embed.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_responsive-utilities.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_scaffolding.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_tables.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_thumbnails.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_tooltip.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_type.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_utilities.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_variables.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/445c993f9badd85eed8054a0d95fd224ae71a349/_wells.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/51fd2eea4473e30fb7c6f38005b3e0e68e0051b7/_bootstrap-sprockets.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/51fd2eea4473e30fb7c6f38005b3e0e68e0051b7/_bootstrap.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_blacklight_base.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_bookmark.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_catalog.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_facets.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_group.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_header.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_layout.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_modal.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/_search_history.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/blacklight.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/57179add66901e7071e270eb3dcbffbd94509626/blacklight_defaults.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/640fe784801b6579b3cc7c5076d10c17a3d1fa15/blacklight.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/640fe784801b6579b3cc7c5076d10c17a3d1fa15/blacklight_hierarchy.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/66d46d89a6f50778e9d7c47153c7e4120d2e7ab9/hierarchy.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_alerts.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_background-variant.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_border-radius.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_buttons.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_center-block.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_clearfix.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_forms.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_gradients.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_grid-framework.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_grid.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_hide-text.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_image.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_labels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_list-group.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_nav-divider.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_nav-vertical-align.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_opacity.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_pagination.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_panels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_progress-bar.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_reset-filter.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_resize.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_responsive-visibility.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_size.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_tab-focus.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_table-row.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_text-emphasis.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_text-overflow.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/71aaf5883ae684c0f08620e833c1400f6f31a6f7/_vendor-prefixes.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/08609bfe1ae1902b7f1717d982e5b4a7 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/08b1239c43458e285871d83216975134 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/0b10e5cb4a9a51090f43651fbd877bee +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/15ef05c24f1f8ef3039f46b33ab8edcd +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/174b5a39e5091e8d7c78775e7e2070fe +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/20933494402377b5a4ae573ec38089e3 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/212cef43c60c9d3e8ac8f88415b6f973 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/229fc8ab6865660e396cf9fd1cb39c10 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/23cb18a699ce7dbdcf465be2a7a41811 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/24614ebd6d6f61f3b5b5319379d7fa46 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/274904ae6b05d982033ae9d6d5dbe862 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/2bfec80b4e6c87e27f88b9ee5d0bb41b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/368b41619b173f4a9f545b6da21f928f +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/3f47167a7fb0c564a3e4822aa5a5dbdd +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/489789028348d4668912dadfced5664c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/48c6aa23a63fcb0eb2abfd9851ee34ea +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/59747ade9c2bc4b15b9a5def26f510f9 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/5c287dfee4faa9e30f836a57d9230e5c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/5fa08d97b81ec0ae7f19f95006c5fc8c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6b2bccdce0b8a30bb633cfe11539e914 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6b91422aae1939a2f363892dfc4616df +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6cb2d81cef71f0c48fc9389b6afe01c5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6e78d84dc664ac4afa16415e2872cb60 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/701b5a3b8142388e7371a6801cc44623 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/73232ffd4ba56c978aee3fb5ab28c5d2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/83d2f436240b85f626ec119f7c9a5272 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/8625349bd7300eb9c9103e0155e3a8c3 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/86492dd478a290aac1a6e1beaac746ea +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/883e4c9f2e7b94cece65d21ba64eac7c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/8e5a76c17a713f0b722cf054454f1ecc +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/9125893025f624d16a8d8e052d0dbfcd +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/93aaa9231a32901266b05632f3d35ecd +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/98d74d6877c75d0df7a07d751af1252b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/9902d40f2d5719439375b71e9f92ccd1 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/9e17b7435224b4d2ca900240c32c195d +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a015684db07b197ed1856307abd82f42 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a05e957ff61060c057debd8dc7b6ef3b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a08976ed55e815f763dfcb22a7376ed7 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a432d9a6dad3588381eee9808663e060 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a7cfb2dc6e31842e16886d8fe5e565a6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a83ecb9fd5ef9f4cd480816fd1991c63 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ad4a54c43c2a4c3874bfde1c9f08c248 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b7b953d2bbbc2ed0afa90bfd470970bf +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b83ff1ff283372c8b643d490698ac5f2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b9cf057f4c9bbc89f7f1666bb9bc51ed +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b9d34fb62a7133c9e354e15be8b97fd2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/bb0e475cafd86ebdab11f01efe623dbe +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/beafdda6cada3ea47ad16bddbd74147e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c45db95ac3b02d061b390954bd9f49d0 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c545819b3e92e7cc0180242c111f2b5b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c6f2d2b6b4ff8b16bb9e7d39898c7de2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cb4976fa305e0f3f830cc11a68490abe +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d04cb44fedf1d7f934c4d82447e5d7be +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d6fd3dc20efb1e4fe8fa3b90ad6d36da +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/dad1adba3c9893641803fe598ecbbbcf +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/db0799ffdd25f3b4b984c162e7da469e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/dcb5e2fe8f8ba6cdad3ec3331bdea0df +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ddb8d8d3afcc4384d2590acf090215f8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/df08d3c909c62ecba152cdc7b11d9fb3 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e0663a4141d11a3841014005025172eb +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e47ed05c114e67acb8ad43d2a2db784d +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e5eba0b50c4b277172db0f9f699a1d76 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ea022fee7bf6ba46a533438b49309665 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/efd0d28ea7420593f6323280daec5d94 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f2a04b4afd8e701562135671116b3452 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f2cf4862b1e7a04fd29eb30605f08979 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f600496bff33972f86dc55b9f75df124 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ffa439acb56ac6162efb387270e055f2 +0 -0
- data/test/blacklight_hierarchy_test.rb +0 -7
- data/test/fixtures/facet_data.json +0 -1
- data/test/test_helper.rb +0 -10
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2012 YOURNAME
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/spec/internal/Gemfile
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
|
4
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
5
|
-
gem 'rails', '4.2.1'
|
6
|
-
# Use sqlite3 as the database for Active Record
|
7
|
-
gem 'sqlite3'
|
8
|
-
# Use SCSS for stylesheets
|
9
|
-
gem 'sass-rails', '~> 5.0'
|
10
|
-
# Use Uglifier as compressor for JavaScript assets
|
11
|
-
gem 'uglifier', '>= 1.3.0'
|
12
|
-
# Use CoffeeScript for .coffee assets and views
|
13
|
-
gem 'coffee-rails', '~> 4.1.0'
|
14
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
15
|
-
# gem 'therubyracer', platforms: :ruby
|
16
|
-
|
17
|
-
# Use jquery as the JavaScript library
|
18
|
-
gem 'jquery-rails'
|
19
|
-
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
20
|
-
gem 'turbolinks'
|
21
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
22
|
-
gem 'jbuilder', '~> 2.0'
|
23
|
-
# bundle exec rake doc:rails generates the API under doc/api.
|
24
|
-
gem 'sdoc', '~> 0.4.0', group: :doc
|
25
|
-
|
26
|
-
# Use ActiveModel has_secure_password
|
27
|
-
# gem 'bcrypt', '~> 3.1.7'
|
28
|
-
|
29
|
-
# Use Unicorn as the app server
|
30
|
-
# gem 'unicorn'
|
31
|
-
|
32
|
-
# Use Capistrano for deployment
|
33
|
-
# gem 'capistrano-rails', group: :development
|
34
|
-
|
35
|
-
group :development, :test do
|
36
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
37
|
-
gem 'byebug'
|
38
|
-
|
39
|
-
# Access an IRB console on exception pages or by using <%= console %> in views
|
40
|
-
gem 'web-console', '~> 2.0'
|
41
|
-
end
|
42
|
-
|
43
|
-
|
44
|
-
gem 'blacklight-hierarchy', :path => '/Users/ndushay/searchworks/blacklight-hierarchy'
|
45
|
-
|
46
|
-
gem 'blacklight'
|
47
|
-
gem 'rsolr', '~> 1.0.6'
|
data/spec/internal/Gemfile.lock
DELETED
@@ -1,188 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /Users/ndushay/searchworks/blacklight-hierarchy
|
3
|
-
specs:
|
4
|
-
blacklight-hierarchy (0.1.1)
|
5
|
-
blacklight (~> 5, < 6)
|
6
|
-
rails (~> 4.1)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionmailer (4.2.1)
|
12
|
-
actionpack (= 4.2.1)
|
13
|
-
actionview (= 4.2.1)
|
14
|
-
activejob (= 4.2.1)
|
15
|
-
mail (~> 2.5, >= 2.5.4)
|
16
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
17
|
-
actionpack (4.2.1)
|
18
|
-
actionview (= 4.2.1)
|
19
|
-
activesupport (= 4.2.1)
|
20
|
-
rack (~> 1.6)
|
21
|
-
rack-test (~> 0.6.2)
|
22
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
24
|
-
actionview (4.2.1)
|
25
|
-
activesupport (= 4.2.1)
|
26
|
-
builder (~> 3.1)
|
27
|
-
erubis (~> 2.7.0)
|
28
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
29
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
30
|
-
activejob (4.2.1)
|
31
|
-
activesupport (= 4.2.1)
|
32
|
-
globalid (>= 0.3.0)
|
33
|
-
activemodel (4.2.1)
|
34
|
-
activesupport (= 4.2.1)
|
35
|
-
builder (~> 3.1)
|
36
|
-
activerecord (4.2.1)
|
37
|
-
activemodel (= 4.2.1)
|
38
|
-
activesupport (= 4.2.1)
|
39
|
-
arel (~> 6.0)
|
40
|
-
activesupport (4.2.1)
|
41
|
-
i18n (~> 0.7)
|
42
|
-
json (~> 1.7, >= 1.7.7)
|
43
|
-
minitest (~> 5.1)
|
44
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
45
|
-
tzinfo (~> 1.1)
|
46
|
-
arel (6.0.0)
|
47
|
-
autoprefixer-rails (5.1.8)
|
48
|
-
execjs
|
49
|
-
json
|
50
|
-
binding_of_caller (0.7.2)
|
51
|
-
debug_inspector (>= 0.0.1)
|
52
|
-
blacklight (5.12.1)
|
53
|
-
bootstrap-sass (~> 3.2)
|
54
|
-
deprecation
|
55
|
-
kaminari (>= 0.15)
|
56
|
-
nokogiri (~> 1.6)
|
57
|
-
rails (>= 3.2.6, < 5)
|
58
|
-
rsolr (~> 1.0.11)
|
59
|
-
bootstrap-sass (3.3.4.1)
|
60
|
-
autoprefixer-rails (>= 5.0.0.1)
|
61
|
-
sass (>= 3.2.19)
|
62
|
-
builder (3.2.2)
|
63
|
-
byebug (4.0.4)
|
64
|
-
columnize (= 0.9.0)
|
65
|
-
coffee-rails (4.1.0)
|
66
|
-
coffee-script (>= 2.2.0)
|
67
|
-
railties (>= 4.0.0, < 5.0)
|
68
|
-
coffee-script (2.3.0)
|
69
|
-
coffee-script-source
|
70
|
-
execjs
|
71
|
-
coffee-script-source (1.9.1)
|
72
|
-
columnize (0.9.0)
|
73
|
-
debug_inspector (0.0.2)
|
74
|
-
deprecation (0.2.2)
|
75
|
-
activesupport
|
76
|
-
erubis (2.7.0)
|
77
|
-
execjs (2.4.0)
|
78
|
-
globalid (0.3.3)
|
79
|
-
activesupport (>= 4.1.0)
|
80
|
-
hike (1.2.3)
|
81
|
-
i18n (0.7.0)
|
82
|
-
jbuilder (2.2.12)
|
83
|
-
activesupport (>= 3.0.0, < 5)
|
84
|
-
multi_json (~> 1.2)
|
85
|
-
jquery-rails (4.0.3)
|
86
|
-
rails-dom-testing (~> 1.0)
|
87
|
-
railties (>= 4.2.0)
|
88
|
-
thor (>= 0.14, < 2.0)
|
89
|
-
json (1.8.2)
|
90
|
-
kaminari (0.16.3)
|
91
|
-
actionpack (>= 3.0.0)
|
92
|
-
activesupport (>= 3.0.0)
|
93
|
-
loofah (2.0.1)
|
94
|
-
nokogiri (>= 1.5.9)
|
95
|
-
mail (2.6.3)
|
96
|
-
mime-types (>= 1.16, < 3)
|
97
|
-
mime-types (2.4.3)
|
98
|
-
mini_portile (0.6.2)
|
99
|
-
minitest (5.5.1)
|
100
|
-
multi_json (1.11.0)
|
101
|
-
nokogiri (1.6.6.2)
|
102
|
-
mini_portile (~> 0.6.0)
|
103
|
-
rack (1.6.0)
|
104
|
-
rack-test (0.6.3)
|
105
|
-
rack (>= 1.0)
|
106
|
-
rails (4.2.1)
|
107
|
-
actionmailer (= 4.2.1)
|
108
|
-
actionpack (= 4.2.1)
|
109
|
-
actionview (= 4.2.1)
|
110
|
-
activejob (= 4.2.1)
|
111
|
-
activemodel (= 4.2.1)
|
112
|
-
activerecord (= 4.2.1)
|
113
|
-
activesupport (= 4.2.1)
|
114
|
-
bundler (>= 1.3.0, < 2.0)
|
115
|
-
railties (= 4.2.1)
|
116
|
-
sprockets-rails
|
117
|
-
rails-deprecated_sanitizer (1.0.3)
|
118
|
-
activesupport (>= 4.2.0.alpha)
|
119
|
-
rails-dom-testing (1.0.6)
|
120
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
121
|
-
nokogiri (~> 1.6.0)
|
122
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
123
|
-
rails-html-sanitizer (1.0.2)
|
124
|
-
loofah (~> 2.0)
|
125
|
-
railties (4.2.1)
|
126
|
-
actionpack (= 4.2.1)
|
127
|
-
activesupport (= 4.2.1)
|
128
|
-
rake (>= 0.8.7)
|
129
|
-
thor (>= 0.18.1, < 2.0)
|
130
|
-
rake (10.4.2)
|
131
|
-
rdoc (4.2.0)
|
132
|
-
json (~> 1.4)
|
133
|
-
rsolr (1.0.12)
|
134
|
-
builder (>= 2.1.2)
|
135
|
-
sass (3.4.13)
|
136
|
-
sass-rails (5.0.3)
|
137
|
-
railties (>= 4.0.0, < 5.0)
|
138
|
-
sass (~> 3.1)
|
139
|
-
sprockets (>= 2.8, < 4.0)
|
140
|
-
sprockets-rails (>= 2.0, < 4.0)
|
141
|
-
tilt (~> 1.1)
|
142
|
-
sdoc (0.4.1)
|
143
|
-
json (~> 1.7, >= 1.7.7)
|
144
|
-
rdoc (~> 4.0)
|
145
|
-
sprockets (2.12.3)
|
146
|
-
hike (~> 1.2)
|
147
|
-
multi_json (~> 1.0)
|
148
|
-
rack (~> 1.0)
|
149
|
-
tilt (~> 1.1, != 1.3.0)
|
150
|
-
sprockets-rails (2.2.4)
|
151
|
-
actionpack (>= 3.0)
|
152
|
-
activesupport (>= 3.0)
|
153
|
-
sprockets (>= 2.8, < 4.0)
|
154
|
-
sqlite3 (1.3.10)
|
155
|
-
thor (0.19.1)
|
156
|
-
thread_safe (0.3.5)
|
157
|
-
tilt (1.4.1)
|
158
|
-
turbolinks (2.5.3)
|
159
|
-
coffee-rails
|
160
|
-
tzinfo (1.2.2)
|
161
|
-
thread_safe (~> 0.1)
|
162
|
-
uglifier (2.7.1)
|
163
|
-
execjs (>= 0.3.0)
|
164
|
-
json (>= 1.8.0)
|
165
|
-
web-console (2.1.2)
|
166
|
-
activemodel (>= 4.0)
|
167
|
-
binding_of_caller (>= 0.7.2)
|
168
|
-
railties (>= 4.0)
|
169
|
-
sprockets-rails (>= 2.0, < 4.0)
|
170
|
-
|
171
|
-
PLATFORMS
|
172
|
-
ruby
|
173
|
-
|
174
|
-
DEPENDENCIES
|
175
|
-
blacklight
|
176
|
-
blacklight-hierarchy!
|
177
|
-
byebug
|
178
|
-
coffee-rails (~> 4.1.0)
|
179
|
-
jbuilder (~> 2.0)
|
180
|
-
jquery-rails
|
181
|
-
rails (= 4.2.1)
|
182
|
-
rsolr (~> 1.0.6)
|
183
|
-
sass-rails (~> 5.0)
|
184
|
-
sdoc (~> 0.4.0)
|
185
|
-
sqlite3
|
186
|
-
turbolinks
|
187
|
-
uglifier (>= 1.3.0)
|
188
|
-
web-console (~> 2.0)
|
data/spec/internal/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/spec/internal/Rakefile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require turbolinks
|
16
|
-
//
|
17
|
-
// Required by Blacklight
|
18
|
-
//= require blacklight/blacklight
|
19
|
-
//= require_tree .
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require blacklight/hierarchy/hierarchy
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,9 +0,0 @@
|
|
1
|
-
class ApplicationController < ActionController::Base
|
2
|
-
# Adds a few additional behaviors into the application controller
|
3
|
-
include Blacklight::Controller
|
4
|
-
layout 'blacklight'
|
5
|
-
|
6
|
-
# Prevent CSRF attacks by raising an exception.
|
7
|
-
# For APIs, you may want to use :null_session instead.
|
8
|
-
protect_from_forgery with: :exception
|
9
|
-
end
|
@@ -1,181 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class CatalogController < ApplicationController
|
3
|
-
|
4
|
-
include Blacklight::Catalog
|
5
|
-
|
6
|
-
configure_blacklight do |config|
|
7
|
-
## Default parameters to send to solr for all search-like requests. See also SearchBuilder#processed_parameters
|
8
|
-
config.default_solr_params = {
|
9
|
-
:qt => 'search',
|
10
|
-
:rows => 10
|
11
|
-
}
|
12
|
-
|
13
|
-
# solr path which will be added to solr base url before the other solr params.
|
14
|
-
#config.solr_path = 'select'
|
15
|
-
|
16
|
-
# items to show per page, each number in the array represent another option to choose from.
|
17
|
-
#config.per_page = [10,20,50,100]
|
18
|
-
|
19
|
-
## Default parameters to send on single-document requests to Solr. These settings are the Blackligt defaults (see SearchHelper#solr_doc_params) or
|
20
|
-
## parameters included in the Blacklight-jetty document requestHandler.
|
21
|
-
#
|
22
|
-
#config.default_document_solr_params = {
|
23
|
-
# :qt => 'document',
|
24
|
-
# ## These are hard-coded in the blacklight 'document' requestHandler
|
25
|
-
# # :fl => '*',
|
26
|
-
# # :rows => 1
|
27
|
-
# # :q => '{!raw f=id v=$id}'
|
28
|
-
#}
|
29
|
-
|
30
|
-
# solr field configuration for search results/index views
|
31
|
-
config.index.title_field = 'title_display'
|
32
|
-
config.index.display_type_field = 'format'
|
33
|
-
|
34
|
-
# solr field configuration for document/show views
|
35
|
-
#config.show.title_field = 'title_display'
|
36
|
-
#config.show.display_type_field = 'format'
|
37
|
-
|
38
|
-
# solr fields that will be treated as facets by the blacklight application
|
39
|
-
# The ordering of the field names is the order of the display
|
40
|
-
#
|
41
|
-
# Setting a limit will trigger Blacklight's 'more' facet values link.
|
42
|
-
# * If left unset, then all facet values returned by solr will be displayed.
|
43
|
-
# * If set to an integer, then "f.somefield.facet.limit" will be added to
|
44
|
-
# solr request, with actual solr request being +1 your configured limit --
|
45
|
-
# you configure the number of items you actually want _displayed_ in a page.
|
46
|
-
# * If set to 'true', then no additional parameters will be sent to solr,
|
47
|
-
# but any 'sniffed' request limit parameters will be used for paging, with
|
48
|
-
# paging at requested limit -1. Can sniff from facet.limit or
|
49
|
-
# f.specific_field.facet.limit solr request params. This 'true' config
|
50
|
-
# can be used if you set limits in :default_solr_params, or as defaults
|
51
|
-
# on the solr side in the request handler itself. Request handler defaults
|
52
|
-
# sniffing requires solr requests to be made with "echoParams=all", for
|
53
|
-
# app code to actually have it echo'd back to see it.
|
54
|
-
#
|
55
|
-
# :show may be set to false if you don't want the facet to be drawn in the
|
56
|
-
# facet bar
|
57
|
-
config.add_facet_field 'format', :label => 'Format'
|
58
|
-
config.add_facet_field 'pub_date', :label => 'Publication Year', :single => true
|
59
|
-
config.add_facet_field 'subject_topic_facet', :label => 'Topic', :limit => 20
|
60
|
-
config.add_facet_field 'language_facet', :label => 'Language', :limit => true
|
61
|
-
config.add_facet_field 'lc_1letter_facet', :label => 'Call Number'
|
62
|
-
config.add_facet_field 'subject_geo_facet', :label => 'Region'
|
63
|
-
config.add_facet_field 'subject_era_facet', :label => 'Era'
|
64
|
-
|
65
|
-
config.add_facet_field 'example_pivot_field', :label => 'Pivot Field', :pivot => ['format', 'language_facet']
|
66
|
-
|
67
|
-
config.add_facet_field 'example_query_facet_field', :label => 'Publish Date', :query => {
|
68
|
-
:years_5 => { :label => 'within 5 Years', :fq => "pub_date:[#{Time.now.year - 5 } TO *]" },
|
69
|
-
:years_10 => { :label => 'within 10 Years', :fq => "pub_date:[#{Time.now.year - 10 } TO *]" },
|
70
|
-
:years_25 => { :label => 'within 25 Years', :fq => "pub_date:[#{Time.now.year - 25 } TO *]" }
|
71
|
-
}
|
72
|
-
|
73
|
-
|
74
|
-
# Have BL send all facet field names to Solr, which has been the default
|
75
|
-
# previously. Simply remove these lines if you'd rather use Solr request
|
76
|
-
# handler defaults, or have no facets.
|
77
|
-
config.add_facet_fields_to_solr_request!
|
78
|
-
|
79
|
-
# solr fields to be displayed in the index (search results) view
|
80
|
-
# The ordering of the field names is the order of the display
|
81
|
-
config.add_index_field 'title_display', :label => 'Title'
|
82
|
-
config.add_index_field 'title_vern_display', :label => 'Title'
|
83
|
-
config.add_index_field 'author_display', :label => 'Author'
|
84
|
-
config.add_index_field 'author_vern_display', :label => 'Author'
|
85
|
-
config.add_index_field 'format', :label => 'Format'
|
86
|
-
config.add_index_field 'language_facet', :label => 'Language'
|
87
|
-
config.add_index_field 'published_display', :label => 'Published'
|
88
|
-
config.add_index_field 'published_vern_display', :label => 'Published'
|
89
|
-
config.add_index_field 'lc_callnum_display', :label => 'Call number'
|
90
|
-
|
91
|
-
# solr fields to be displayed in the show (single result) view
|
92
|
-
# The ordering of the field names is the order of the display
|
93
|
-
config.add_show_field 'title_display', :label => 'Title'
|
94
|
-
config.add_show_field 'title_vern_display', :label => 'Title'
|
95
|
-
config.add_show_field 'subtitle_display', :label => 'Subtitle'
|
96
|
-
config.add_show_field 'subtitle_vern_display', :label => 'Subtitle'
|
97
|
-
config.add_show_field 'author_display', :label => 'Author'
|
98
|
-
config.add_show_field 'author_vern_display', :label => 'Author'
|
99
|
-
config.add_show_field 'format', :label => 'Format'
|
100
|
-
config.add_show_field 'url_fulltext_display', :label => 'URL'
|
101
|
-
config.add_show_field 'url_suppl_display', :label => 'More Information'
|
102
|
-
config.add_show_field 'language_facet', :label => 'Language'
|
103
|
-
config.add_show_field 'published_display', :label => 'Published'
|
104
|
-
config.add_show_field 'published_vern_display', :label => 'Published'
|
105
|
-
config.add_show_field 'lc_callnum_display', :label => 'Call number'
|
106
|
-
config.add_show_field 'isbn_t', :label => 'ISBN'
|
107
|
-
|
108
|
-
# "fielded" search configuration. Used by pulldown among other places.
|
109
|
-
# For supported keys in hash, see rdoc for Blacklight::SearchFields
|
110
|
-
#
|
111
|
-
# Search fields will inherit the :qt solr request handler from
|
112
|
-
# config[:default_solr_parameters], OR can specify a different one
|
113
|
-
# with a :qt key/value. Below examples inherit, except for subject
|
114
|
-
# that specifies the same :qt as default for our own internal
|
115
|
-
# testing purposes.
|
116
|
-
#
|
117
|
-
# The :key is what will be used to identify this BL search field internally,
|
118
|
-
# as well as in URLs -- so changing it after deployment may break bookmarked
|
119
|
-
# urls. A display label will be automatically calculated from the :key,
|
120
|
-
# or can be specified manually to be different.
|
121
|
-
|
122
|
-
# This one uses all the defaults set by the solr request handler. Which
|
123
|
-
# solr request handler? The one set in config[:default_solr_parameters][:qt],
|
124
|
-
# since we aren't specifying it otherwise.
|
125
|
-
|
126
|
-
config.add_search_field 'all_fields', :label => 'All Fields'
|
127
|
-
|
128
|
-
|
129
|
-
# Now we see how to over-ride Solr request handler defaults, in this
|
130
|
-
# case for a BL "search field", which is really a dismax aggregate
|
131
|
-
# of Solr search fields.
|
132
|
-
|
133
|
-
config.add_search_field('title') do |field|
|
134
|
-
# solr_parameters hash are sent to Solr as ordinary url query params.
|
135
|
-
field.solr_parameters = { :'spellcheck.dictionary' => 'title' }
|
136
|
-
|
137
|
-
# :solr_local_parameters will be sent using Solr LocalParams
|
138
|
-
# syntax, as eg {! qf=$title_qf }. This is neccesary to use
|
139
|
-
# Solr parameter de-referencing like $title_qf.
|
140
|
-
# See: http://wiki.apache.org/solr/LocalParams
|
141
|
-
field.solr_local_parameters = {
|
142
|
-
:qf => '$title_qf',
|
143
|
-
:pf => '$title_pf'
|
144
|
-
}
|
145
|
-
end
|
146
|
-
|
147
|
-
config.add_search_field('author') do |field|
|
148
|
-
field.solr_parameters = { :'spellcheck.dictionary' => 'author' }
|
149
|
-
field.solr_local_parameters = {
|
150
|
-
:qf => '$author_qf',
|
151
|
-
:pf => '$author_pf'
|
152
|
-
}
|
153
|
-
end
|
154
|
-
|
155
|
-
# Specifying a :qt only to show it's possible, and so our internal automated
|
156
|
-
# tests can test it. In this case it's the same as
|
157
|
-
# config[:default_solr_parameters][:qt], so isn't actually neccesary.
|
158
|
-
config.add_search_field('subject') do |field|
|
159
|
-
field.solr_parameters = { :'spellcheck.dictionary' => 'subject' }
|
160
|
-
field.qt = 'search'
|
161
|
-
field.solr_local_parameters = {
|
162
|
-
:qf => '$subject_qf',
|
163
|
-
:pf => '$subject_pf'
|
164
|
-
}
|
165
|
-
end
|
166
|
-
|
167
|
-
# "sort results by" select (pulldown)
|
168
|
-
# label in pulldown is followed by the name of the SOLR field to sort by and
|
169
|
-
# whether the sort is ascending or descending (it must be asc or desc
|
170
|
-
# except in the relevancy case).
|
171
|
-
config.add_sort_field 'score desc, pub_date_sort desc, title_sort asc', :label => 'relevance'
|
172
|
-
config.add_sort_field 'pub_date_sort desc, title_sort asc', :label => 'year'
|
173
|
-
config.add_sort_field 'author_sort asc, title_sort asc', :label => 'author'
|
174
|
-
config.add_sort_field 'title_sort asc, pub_date_sort desc', :label => 'title'
|
175
|
-
|
176
|
-
# If there are more than this many search results, no spelling ("did you
|
177
|
-
# mean") suggestion is offered.
|
178
|
-
config.spell_max = 5
|
179
|
-
end
|
180
|
-
|
181
|
-
end
|