Skip to content

Commit

Permalink
don't hit Fedora for IrusAnalytics parent id
Browse files Browse the repository at this point in the history
  • Loading branch information
conorom committed Jan 25, 2023
1 parent 93b8cc9 commit 2014a90
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 2014a90

Please sign in to comment.