Skip to content

Commit

Permalink
holdings source id lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
mis306lu committed Nov 28, 2022
1 parent cef7039 commit 4e262d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ public JsonObject acceptItem(AcceptItemInitiationData initData, UserId userId, S
JsonObject holdings = new JsonObject();
String holdingsPermLocation = ncipProperties.getProperty(requesterAgencyId + ".holdings.perm.location.id");
holdings.put("id", holdingsUuid.toString());
holdings.put("sourceId", ncipProperties.get(requesterAgencyId + ".holdings.source"));
holdings.put("sourceId", ncipProperties.get(requesterAgencyId + ".holdings.source.id"));
holdings.put("instanceId", instanceUuid.toString());
holdings.put("discoverySuppress", true);
// REQUIRED, ELSE IT WILL NOT SHOW UP IN INVENTORY SEARCH BY LOCA.
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/init-values.properties
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@
"url": "/service-points?query=(code={lookup})&limit=1",
"returnArray": "servicepoints",
"identifier": "id"
},
{
"lookup": "holdings.source.name",
"id": "holdings.source.id",
"url": "/holdings-sources?query=(name={lookup})&limit=1",
"returnArray": "holdingsRecordsSources",
"identifier": "id"
}

]
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/ncip.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#accept item
instance.type.name
instance.source
holdings.source=FOLIO
holdings.source.name=FOLIO
item.material.type.name
item.perm.loan.type.name
item.status.name
Expand Down

0 comments on commit 4e262d1

Please sign in to comment.