Skip to content

Commit

Permalink
contrib dros no name reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Aug 7, 2023
1 parent a44c7e4 commit 4939797
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/reports/contributor_without_name_dros.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ class ContributorWithoutNameDros
# JSONB_PATH = 'strict $.**.contributor[*] ? (!(exists(@.name.**.value))) ? ((exists(@.role.code)) || (exists(@.role.value)) || (exists(@.role.uri)))'
# JSONB_PATH = 'strict $.**.contributor[*] ? ( !exists(@.name.**.value) && ( exists(@.role.code) || exists(@.role.value) || exists(@.role.uri) ) )'
# JSONB_PATH = 'strict $.**.contributor[*] ? ( ( exists(@.role.code) ) && ( !exists(@.name.**.value) ) )'
JSONB_PATH = 'strict $.**.contributor[*] ? ( !exists(@.name.**.value) )' # works
# JSONB_PATH = 'strict $.**.contributor[*] ? ( exists(@.role.code) ? ( exists(@.role.value) ) )'
# JSONB_PATH = 'strict $.**.contributor[*] ? ( !exists(@.name.**.value) )' # works
# JSONB_PATH = 'strict $.contributor[*] ? ( !exists(@.name.**.value) )' # works
# JSONB_PATH = 'strict $.**.event.contributor[*] ? ( !exists(@.name.**.value) )' # works
JSONB_PATH = 'strict $.**.adminMetadata.contributor[*] ? ( !exists(@.name.**.value) )' # works
# JSONB_PATH = 'strict $.**.relatedResource.contributor[*] ? ( !exists(@.name.**.value) )' # works
SQL = <<~SQL.squish.freeze
SELECT dros.external_identifier as item_druid,
desc_value->'role'->'code' as role_code,
Expand Down

0 comments on commit 4939797

Please sign in to comment.