Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the scope issue for the private method #167

Merged
merged 2 commits into from
Oct 24, 2023
Merged
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
5 changes: 0 additions & 5 deletions lib/bolognese/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ def descriptions
@descriptions ||= meta.fetch("descriptions", nil)
end

def abstract_description
# Fetch the first description with descriptionType "Abstract"
@abstract_description ||= descriptions&.find { |d| d["descriptionType"] == "Abstract" }
end

def rights_list
@rights_list ||= meta.fetch("rights_list", nil)
end
Expand Down
5 changes: 5 additions & 0 deletions lib/bolognese/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1410,5 +1410,10 @@ def dfg_ids_to_fos(dfg_ids)
}
end
end

def abstract_description
# Fetch the first description with descriptionType "Abstract"
descriptions&.find { |d| d["descriptionType"] == "Abstract" }
end
end
end