Skip to content

Commit

Permalink
Add catalogueCodes to ManifestationsSimpleFields
Browse files Browse the repository at this point in the history
This is needed to determine if the manifestation can be reserved at another library (overbygningsmaterialer).
  • Loading branch information
kasperbirch1 committed Sep 18, 2023
1 parent c9764b3 commit a4c3d2b
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 8 deletions.
4 changes: 4 additions & 0 deletions src/core/dbc-gateway/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ fragment ManifestationsSimpleFields on Manifestation {
workYear {
year
}
catalogueCodes {
nationalBibliography
otherCatalogues
}
}

fragment ManifestationReviewFields on Manifestation {
Expand Down
136 changes: 129 additions & 7 deletions src/core/dbc-gateway/generated/graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,49 @@
"description": "Search Filters",
"fields": null,
"inputFields": [
{
"name": "agencyId",
"description": "Id of agency.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "branch",
"description": "Name of the branch.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "branchId",
"description": null,
"description": "BranchId. ",
"type": {
"kind": "LIST",
"name": null,
Expand All @@ -665,7 +705,47 @@
},
{
"name": "department",
"description": null,
"description": "Overall location in library (eg. Voksne).",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "issueId",
"description": "Id of publishing issue.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "itemId",
"description": "Local id of the item.",
"type": {
"kind": "LIST",
"name": null,
Expand All @@ -685,7 +765,7 @@
},
{
"name": "location",
"description": null,
"description": "Where is the book physically located (eg. skønlitteratur).",
"type": {
"kind": "LIST",
"name": null,
Expand All @@ -705,7 +785,7 @@
},
{
"name": "status",
"description": null,
"description": "Onloan or OnShelf.",
"type": {
"kind": "LIST",
"name": null,
Expand All @@ -725,7 +805,7 @@
},
{
"name": "sublocation",
"description": null,
"description": "More specific location (eg. Fantasy).",
"type": {
"kind": "LIST",
"name": null,
Expand Down Expand Up @@ -1110,6 +1190,24 @@
"inputFields": null,
"interfaces": null,
"enumValues": [
{
"name": "BORCHK_USER_BLOCKED_BY_AGENCY",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "BORCHK_USER_NOT_VERIFIED",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "BORCHK_USER_NO_LONGER_EXIST_ON_AGENCY",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ERROR_AGENCY_NOT_SUBSCRIBED",
"description": null,
Expand All @@ -1128,6 +1226,12 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ERROR_MUNICIPALITYAGENCYID_NOT_FOUND",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ERROR_PID_NOT_RESERVABLE",
"description": null,
Expand All @@ -1145,6 +1249,12 @@
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "UNKNOWN_USER",
"description": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"possibleTypes": null
Expand Down Expand Up @@ -4643,8 +4753,8 @@
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
"isDeprecated": true,
"deprecationReason": "Use 'Elba.placeCopyRequest' instead"
}
],
"inputFields": null,
Expand Down Expand Up @@ -6046,6 +6156,18 @@
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "search_exact",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
Expand Down
Loading

0 comments on commit a4c3d2b

Please sign in to comment.