Skip to content

Commit

Permalink
Merge pull request #3418 from mlibrary/HELIO-4409/irus_analytics_pare…
Browse files Browse the repository at this point in the history
…nt_id

HELIO-4409 don't hit Fedora for IrusAnalytics parent id
  • Loading branch information
sethaj authored Jan 26, 2023
2 parents 93b8cc9 + 2014a90 commit cda36d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/overrides/hyrax/downloads_controller_overrides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def should_be_watermarked?
end

def item_identifier_for_irus_analytics
CatalogController.blacklight_config.oai[:provider][:record_prefix] + ":" + FileSet.find(params[:id]).parent.id
CatalogController.blacklight_config.oai[:provider][:record_prefix] + ":" + presenter&.parent&.id
end

def disposition(presenter)
Expand Down
2 changes: 1 addition & 1 deletion app/overrides/hyrax/file_sets_controller_overrides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def show # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComple

# HELIO-4143
def item_identifier_for_irus_analytics
CatalogController.blacklight_config.oai[:provider][:record_prefix] + ":" + FileSet.find(params[:id]).parent.id
CatalogController.blacklight_config.oai[:provider][:record_prefix] + ":" + presenter&.parent&.id
end

def edit
Expand Down

0 comments on commit cda36d8

Please sign in to comment.