Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/channels/application_cable/channel.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ApplicationCable
class Channel < ActionCable::Channel::Base
end
Expand Down
2 changes: 2 additions & 0 deletions app/channels/application_cable/connection.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ApplicationCable
class Connection < ActionCable::Connection::Base
end
Expand Down
10 changes: 4 additions & 6 deletions app/components/blacklight/facet_field_pagination_component.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
=begin
Origin: https://github.com/projectblacklight/blacklight/blob/v7.37.0/app/components/blacklight/facet_field_pagination_component.rb

Re-defines Blacklight's FacetFieldPaginationComponent class so we can override its corresponding template. No changes/overrides made to this file other than adding comments.
=end
# Origin: https://github.com/projectblacklight/blacklight/blob/v7.37.0/app/components/blacklight/facet_field_pagination_component.rb
#
# Re-defines Blacklight's FacetFieldPaginationComponent class so we can override its corresponding template. No changes/overrides made to this file other than adding comments.

# frozen_string_literal: true

Expand All @@ -24,4 +22,4 @@ def render?
@facet_field.paginator
end
end
end
end
12 changes: 5 additions & 7 deletions app/components/blacklight/search_context_component.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
=begin
Origin: https://github.com/projectblacklight/blacklight/blob/v7.37.0/app/components/blacklight/search_context_component.rb

Re-defines and overrides Blacklight's SearchContextComponent class to call ual_link_to_previous_document and ual_link_to_next_document, so that we can modify it to use the appropriate markup.
ual_link_to_previous_document and ual_link_to_next_document are defined in application_helper.rb.
=end
# Origin: https://github.com/projectblacklight/blacklight/blob/v7.37.0/app/components/blacklight/search_context_component.rb
#
# Re-defines and overrides Blacklight's SearchContextComponent class to call ual_link_to_previous_document and ual_link_to_next_document, so that we can modify it to use the appropriate markup.
# ual_link_to_previous_document and ual_link_to_next_document are defined in application_helper.rb.

# frozen_string_literal: true

Expand Down Expand Up @@ -40,4 +38,4 @@ def ual_link_to_next_document(document = nil, *args, **kwargs)
end
end
end
end
end
15 changes: 7 additions & 8 deletions app/components/blacklight/start_over_button_component.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
=begin
Origin: https://github.com/projectblacklight/blacklight/blob/v7.37.0/app/components/blacklight/start_over_button_component.rb

Re-defines and overrides Blacklight's StartOverButtonComponent class to add AZ Bootstrap classes and add html_safe for use of icons.
=end
# Origin: https://github.com/projectblacklight/blacklight/blob/v7.37.0/app/components/blacklight/start_over_button_component.rb
#
# Re-defines and overrides Blacklight's StartOverButtonComponent class to add AZ Bootstrap classes and add html_safe for use of icons.

# frozen_string_literal: true

module Blacklight
class StartOverButtonComponent < Blacklight::Component
def call
link_to t('blacklight.search.start_over').html_safe, start_over_path, class: 'catalog_startOverLink btn btn-outline-blue'
link_to t('blacklight.search.start_over').html_safe, start_over_path,
class: 'catalog_startOverLink btn btn-outline-blue'
end

private

##
# Get the path to the search action with any parameters (e.g. view type)
# that should be persisted across search sessions.
def start_over_path query_params = params
def start_over_path(query_params = params)
Deprecation.silence(Blacklight::UrlHelperBehavior) do
helpers.start_over_path(query_params)
end
end
end
end
end
10 changes: 4 additions & 6 deletions app/components/geoblacklight/homepage_feature_facet_component.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
=begin
Origin: https://github.com/geoblacklight/geoblacklight/blob/v4.4.0/app/components/geoblacklight/homepage_feature_facet_component.rb

Re-defines GeoBlacklight's HomepageFeatureFacetComponent class so we can override its corresponding template. No changes/overrides made to this file other than adding comments.
=end
# Origin: https://github.com/geoblacklight/geoblacklight/blob/v4.4.0/app/components/geoblacklight/homepage_feature_facet_component.rb
#
# Re-defines GeoBlacklight's HomepageFeatureFacetComponent class so we can override its corresponding template. No changes/overrides made to this file other than adding comments.

# frozen_string_literal: true

Expand All @@ -16,4 +14,4 @@ def initialize(icon:, label:, facet_field:, response:)
super
end
end
end
end
12 changes: 7 additions & 5 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# frozen_string_literal: true

class ApplicationController < ActionController::Base
# Adds a few additional behaviors into the application controller
include Blacklight::Controller
layout :determine_layout if respond_to? :layout

before_action :allow_geoblacklight_params
before_action :allow_geoblacklight_params

def allow_geoblacklight_params
# Blacklight::Parameters will pass these to params.permit
blacklight_config.search_state_fields.append(Settings.GBL_PARAMS)
end
def allow_geoblacklight_params
# Blacklight::Parameters will pass these to params.permit
blacklight_config.search_state_fields.append(Settings.GBL_PARAMS)
end

# Status page for Pingdom
def status
Expand Down
Loading