Skip to content

Commit 1a95946

Browse files
committed
[MODFQMMGR-1038] Add composite_instance_srs_bib entity
1 parent 3901573 commit 1a95946

3 files changed

Lines changed: 69 additions & 5 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
id: 'bce8ea43-1271-54ca-99ad-aa185e8b5b1b',
3+
name: 'composite_instance_srs_bib',
4+
private: false,
5+
crossTenantQueriesEnabled: true,
6+
sources: [
7+
{
8+
alias: 'instance',
9+
type: 'entity-type',
10+
targetId: '8fc4a9d2-7ccf-4233-afb8-796911839862', // simple_instance
11+
useIdColumns: true,
12+
essentialOnly: true,
13+
order: 100,
14+
},
15+
{
16+
type: 'entity-type',
17+
alias: 'marc_bib',
18+
name: 'MARC Bibliographic',
19+
order: 200,
20+
sourceField: 'instance.id',
21+
targetId: 'd5449a05-fd57-45e5-9383-ea615246f6f9', // simple_srs_record
22+
targetField: 'external_id',
23+
overrideJoinDirection: 'left',
24+
useIdColumns: true,
25+
essentialOnly: true,
26+
},
27+
{
28+
type: 'entity-type',
29+
alias: 'simple_folio_user_create',
30+
name: 'MARC created by',
31+
order: 300,
32+
sourceField: 'marc_bib.created_by_user_id',
33+
targetId: 'f2615ea6-450b-425d-804d-6a495afd9308', // simple_FOLIO_user
34+
targetField: 'id',
35+
essentialOnly: true,
36+
},
37+
{
38+
type: 'entity-type',
39+
alias: 'simple_folio_user_update',
40+
name: 'MARC updated by',
41+
order: 400,
42+
sourceField: 'marc_bib.updated_by_user_id',
43+
targetId: 'f2615ea6-450b-425d-804d-6a495afd9308', // simple_FOLIO_user
44+
targetField: 'id',
45+
essentialOnly: true,
46+
},
47+
],
48+
defaultSort: [
49+
{
50+
columnName: '"instance.inst".id',
51+
direction: 'ASC',
52+
},
53+
],
54+
filterConditions: [":marc_bib.record_lb.record_type = 'MARC_BIB'"],
55+
additionalEcsConditions: [
56+
'"left"(lower("instance.inst".jsonb ->> \'source\'::text), 600) != \'consortium-folio\' AND "left"(lower("instance.inst".jsonb ->> \'source\'::text), 600) != \'consortium-marc\'',
57+
],
58+
}

src/main/resources/entity-types/srs/simple_srs_record.json5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
queryable: true,
4242
visibleByDefault: false,
43-
essential: true,
43+
essential: false,
4444
valueGetter: ':record_lb.snapshot_id',
4545
},
4646
{
@@ -51,7 +51,7 @@
5151
isIdColumn: true,
5252
queryable: true,
5353
visibleByDefault: false,
54-
essential: true,
54+
essential: false,
5555
valueGetter: ':record_lb.matched_id',
5656
},
5757
{
@@ -72,7 +72,7 @@
7272
},
7373
queryable: true,
7474
visibleByDefault: true,
75-
essential: true,
75+
essential: false,
7676
valueGetter: ':record_lb.record_type',
7777
values: [
7878
{
@@ -183,7 +183,7 @@
183183
dataType: {
184184
dataType: 'rangedUUIDType',
185185
},
186-
queryable: true,
186+
hidden: true,
187187
visibleByDefault: false,
188188
essential: true,
189189
sourceAlias: 'record_lb',
@@ -219,7 +219,7 @@
219219
dataType: {
220220
dataType: 'rangedUUIDType',
221221
},
222-
queryable: true,
222+
hidden: true,
223223
visibleByDefault: false,
224224
essential: true,
225225
sourceAlias: 'record_lb',

translations/mod-fqm-manager/en.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@
275275
"entityType.composite_holdings_record.permanent_location": "Holdings permanent location",
276276
"entityType.composite_holdings_record.temporary_location": "Holdings temporary location",
277277
"entityType.composite_holdings_record.updated_by": "Holdings updated by",
278+
"entityType.composite_instance_srs_bib": "Instances with MARC bibliographies",
279+
"entityType.composite_instance_srs_bib._description": "Composite entity that returns instance data with associated SRS bibliographical data (when available)",
280+
"entityType.composite_instance_srs_bib.instance": "Instance",
281+
"entityType.composite_instance_srs_bib.marc_bib": "MARC bibliographic",
282+
"entityType.composite_instance_srs_bib.simple_folio_user_create": "MARC created by",
283+
"entityType.composite_instance_srs_bib.simple_folio_user_update": "MARC updated by",
278284
"entityType.composite_instances": "Instances",
279285
"entityType.composite_instances._description": "Composite entity type where each record is an instance. Records include instance data along with related instance type, status, date type, created_by and updated_by user data when present.",
280286
"entityType.composite_instances.created_by": "Instance created by",

0 commit comments

Comments
 (0)