-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
useGetHoldings
to use `useGetExternalAgencyidCatalogHoldin…
…gsLogisticsV1` `useGetExternalAgencyidCatalogHoldingsLogisticsV1` is our new hook to fetch data from `/external/agencyid/catalog/holdingsLogistics/v1`. My initial plan was to have a setting in Drupal where the library could enable the use of this API instead of `/external/agencyid/catalog/holdings/v3`. However, it is now possible to utilize a hook within an `if` statement. Therefore, I now call both APIs and, if the required data comes from `useGetExternalAgencyidCatalogHoldingsLogisticsV1`, I simply switch the data (`section`, `location`, `sublocation`, `department`) from that API into the existing data. Squash commit: should be the same
- Loading branch information
1 parent
ce9fb42
commit 7dcf07f
Showing
1 changed file
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters