Skip to content

Commit

Permalink
Merge pull request #361 from folio-org/MODFQMMGR-329
Browse files Browse the repository at this point in the history
MODFQMMGR-329:Modify Operators for statistical codes in Holdings and …
  • Loading branch information
kjain110 authored Aug 13, 2024
2 parents 8db7e97 + b752eb8 commit a804727
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
},
},
isIdColumn: false,
queryable: false,
queryable: true,
visibleByDefault: false,
valueGetter: "(\
SELECT\
Expand All @@ -300,7 +300,7 @@
},
},
idColumnName: 'statistical_code_ids',
queryable: false,
queryable: true,
visibleByDefault: true,
valueGetter: "( SELECT array_agg(statcode.statistical_code) FILTER (WHERE (statcode.statistical_code) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'statisticalCodeIds'::text)) record(value) JOIN drv_inventory_statistical_code_full statcode ON (record.value::text) = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FILTER (WHERE (statcode.statistical_code) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'statisticalCodeIds'::text)) record(value) JOIN drv_inventory_statistical_code_full statcode ON (record.value::text) = statcode.id::text)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,19 +557,19 @@
},
},
isIdColumn: false,
queryable: false,
queryable: true,
visibleByDefault: false,
valueGetter: "(\
SELECT\
array_agg(elems.value::text)\
FROM\
jsonb_array_elements(:sourceAlias.jsonb->'statisticalCodeIds') AS elems\
jsonb_array_elements_text(:sourceAlias.jsonb->'statisticalCodeIds') AS elems\
)",
filterValueGetter: "(\
SELECT\
array_agg(lower(elems.value::text))\
FROM\
jsonb_array_elements(:sourceAlias.jsonb->'statisticalCodeIds') AS elems\
jsonb_array_elements_text(:sourceAlias.jsonb->'statisticalCodeIds') AS elems\
)",
valueFunction: 'lower(:value)',
},
Expand All @@ -584,7 +584,7 @@
},
idColumnName: 'statistical_code_ids',
isIdColumn: false,
queryable: false,
queryable: true,
visibleByDefault: false,
valueGetter: "( SELECT array_agg(statcode.statistical_code) FILTER (WHERE (statcode.statistical_code) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'statisticalCodeIds'::text)) record(value) JOIN drv_inventory_statistical_code_full statcode ON (record.value::text) = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FILTER (WHERE (statcode.statistical_code) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'statisticalCodeIds'::text)) record(value) JOIN drv_inventory_statistical_code_full statcode ON (record.value::text) = statcode.id::text)",
Expand Down

0 comments on commit a804727

Please sign in to comment.