TAMULib / CatalogService

A service for interfacing with Library Catalogs
MIT License
0 stars 1 forks source link

Return Discovery Display Name on loan response #167

Closed jcreel closed 1 year ago

jcreel commented 2 years ago

Use the "discoveryDisplayName" in from the FOLIO response like this one: { "id" : "1d1ca55a-86a1-489b-a645-2d52742c196a", "name" : "Evans stk", "code" : "stk", "discoveryDisplayName" : "Evans: Library Stacks", "isActive" : true, "institutionId" : "786bccb0-1795-4896-9452-a6e5bd5f28ac", "campusId" : "addb918a-5b84-48a2-81d2-0a086948c347", "libraryId" : "e19f62b7-5e0d-490f-b469-80a2b0940e74", "details" : { }, "primaryServicePoint" : "3b80cfdf-438b-48c1-aadc-57965a0d7680", "servicePointIds" : [ "3b80cfdf-438b-48c1-aadc-57965a0d7680" ], "servicePoints" : [ ], "metadata" : { "createdDate" : "2022-01-06T23:55:48.360+00:00", "createdByUserId" : "41199828-e6a3-444d-82d1-be838dea67d4", "updatedDate" : "2022-01-06T23:55:48.360+00:00", "updatedByUserId" : "41199828-e6a3-444d-82d1-be838dea67d4" } } This is being done here: https://github.com/TAMULib/CatalogService/blob/cf9e0dd903b028dc0c58cd46bad05606c7f24b42/service/src/main/java/edu/tamu/catalog/service/FolioCatalogService.java#L525

The change will simply amount to this: -builder.location(getText(location, "/name")) +builder.location(getText(location, "/discoveryDisplayName"))